11f84c262SRashmica GuptaWhat: /sys/kernel/debug/powerpc/memtrace 21f84c262SRashmica GuptaDate: Aug 2017 31f84c262SRashmica GuptaKernelVersion: 4.14 41f84c262SRashmica GuptaContact: linuxppc-dev@lists.ozlabs.org 51f84c262SRashmica GuptaDescription: This folder contains the relevant debugfs files for the 61f84c262SRashmica Gupta hardware trace macro to use. CONFIG_PPC64_HARDWARE_TRACING 71f84c262SRashmica Gupta must be set. 81f84c262SRashmica Gupta 91f84c262SRashmica GuptaWhat: /sys/kernel/debug/powerpc/memtrace/enable 101f84c262SRashmica GuptaDate: Aug 2017 111f84c262SRashmica GuptaKernelVersion: 4.14 121f84c262SRashmica GuptaContact: linuxppc-dev@lists.ozlabs.org 131f84c262SRashmica GuptaDescription: Write an integer containing the size in bytes of the memory 141f84c262SRashmica Gupta you want removed from each NUMA node to this file - it must be 151f84c262SRashmica Gupta aligned to the memblock size. This amount of RAM will be removed 161f84c262SRashmica Gupta from the kernel mappings and the following debugfs files will be 171f84c262SRashmica Gupta created. This can only be successfully done once per boot. Once 181f84c262SRashmica Gupta memory is successfully removed from each node, the following 191f84c262SRashmica Gupta files are created. 201f84c262SRashmica Gupta 211f84c262SRashmica GuptaWhat: /sys/kernel/debug/powerpc/memtrace/<node-id> 221f84c262SRashmica GuptaDate: Aug 2017 231f84c262SRashmica GuptaKernelVersion: 4.14 241f84c262SRashmica GuptaContact: linuxppc-dev@lists.ozlabs.org 251f84c262SRashmica GuptaDescription: This directory contains information about the removed memory 261f84c262SRashmica Gupta from the specific NUMA node. 271f84c262SRashmica Gupta 281f84c262SRashmica GuptaWhat: /sys/kernel/debug/powerpc/memtrace/<node-id>/size 291f84c262SRashmica GuptaDate: Aug 2017 301f84c262SRashmica GuptaKernelVersion: 4.14 311f84c262SRashmica GuptaContact: linuxppc-dev@lists.ozlabs.org 321f84c262SRashmica GuptaDescription: This contains the size of the memory removed from the node. 331f84c262SRashmica Gupta 341f84c262SRashmica GuptaWhat: /sys/kernel/debug/powerpc/memtrace/<node-id>/start 351f84c262SRashmica GuptaDate: Aug 2017 361f84c262SRashmica GuptaKernelVersion: 4.14 371f84c262SRashmica GuptaContact: linuxppc-dev@lists.ozlabs.org 381f84c262SRashmica GuptaDescription: This contains the start address of the removed memory. 391f84c262SRashmica Gupta 401f84c262SRashmica GuptaWhat: /sys/kernel/debug/powerpc/memtrace/<node-id>/trace 411f84c262SRashmica GuptaDate: Aug 2017 421f84c262SRashmica GuptaKernelVersion: 4.14 431f84c262SRashmica GuptaContact: linuxppc-dev@lists.ozlabs.org 441f84c262SRashmica GuptaDescription: This is where the hardware trace macro will output the trace 451f84c262SRashmica Gupta it generates. 46