1*4882a593SmuzhiyunWhat: /sys/kernel/debug/powerpc/memtrace 2*4882a593SmuzhiyunDate: Aug 2017 3*4882a593SmuzhiyunKernelVersion: 4.14 4*4882a593SmuzhiyunContact: linuxppc-dev@lists.ozlabs.org 5*4882a593SmuzhiyunDescription: This folder contains the relevant debugfs files for the 6*4882a593Smuzhiyun hardware trace macro to use. CONFIG_PPC64_HARDWARE_TRACING 7*4882a593Smuzhiyun must be set. 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunWhat: /sys/kernel/debug/powerpc/memtrace/enable 10*4882a593SmuzhiyunDate: Aug 2017 11*4882a593SmuzhiyunKernelVersion: 4.14 12*4882a593SmuzhiyunContact: linuxppc-dev@lists.ozlabs.org 13*4882a593SmuzhiyunDescription: Write an integer containing the size in bytes of the memory 14*4882a593Smuzhiyun you want removed from each NUMA node to this file - it must be 15*4882a593Smuzhiyun aligned to the memblock size. This amount of RAM will be removed 16*4882a593Smuzhiyun from each NUMA node in the kernel mappings and the following 17*4882a593Smuzhiyun debugfs files will be created. Once memory is successfully 18*4882a593Smuzhiyun removed from each node, the following files are created. To 19*4882a593Smuzhiyun re-add memory to the kernel, echo 0 into this file (it will be 20*4882a593Smuzhiyun automatically onlined). 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunWhat: /sys/kernel/debug/powerpc/memtrace/<node-id> 23*4882a593SmuzhiyunDate: Aug 2017 24*4882a593SmuzhiyunKernelVersion: 4.14 25*4882a593SmuzhiyunContact: linuxppc-dev@lists.ozlabs.org 26*4882a593SmuzhiyunDescription: This directory contains information about the removed memory 27*4882a593Smuzhiyun from the specific NUMA node. 28*4882a593Smuzhiyun 29*4882a593SmuzhiyunWhat: /sys/kernel/debug/powerpc/memtrace/<node-id>/size 30*4882a593SmuzhiyunDate: Aug 2017 31*4882a593SmuzhiyunKernelVersion: 4.14 32*4882a593SmuzhiyunContact: linuxppc-dev@lists.ozlabs.org 33*4882a593SmuzhiyunDescription: This contains the size of the memory removed from the node. 34*4882a593Smuzhiyun 35*4882a593SmuzhiyunWhat: /sys/kernel/debug/powerpc/memtrace/<node-id>/start 36*4882a593SmuzhiyunDate: Aug 2017 37*4882a593SmuzhiyunKernelVersion: 4.14 38*4882a593SmuzhiyunContact: linuxppc-dev@lists.ozlabs.org 39*4882a593SmuzhiyunDescription: This contains the start address of the removed memory. 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunWhat: /sys/kernel/debug/powerpc/memtrace/<node-id>/trace 42*4882a593SmuzhiyunDate: Aug 2017 43*4882a593SmuzhiyunKernelVersion: 4.14 44*4882a593SmuzhiyunContact: linuxppc-dev@lists.ozlabs.org 45*4882a593SmuzhiyunDescription: This is where the hardware trace macro will output the trace 46*4882a593Smuzhiyun it generates. 47