18c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/powerpc/memtrace 28c2ecf20Sopenharmony_ciDate: Aug 2017 38c2ecf20Sopenharmony_ciKernelVersion: 4.14 48c2ecf20Sopenharmony_ciContact: linuxppc-dev@lists.ozlabs.org 58c2ecf20Sopenharmony_ciDescription: This folder contains the relevant debugfs files for the 68c2ecf20Sopenharmony_ci hardware trace macro to use. CONFIG_PPC64_HARDWARE_TRACING 78c2ecf20Sopenharmony_ci must be set. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/powerpc/memtrace/enable 108c2ecf20Sopenharmony_ciDate: Aug 2017 118c2ecf20Sopenharmony_ciKernelVersion: 4.14 128c2ecf20Sopenharmony_ciContact: linuxppc-dev@lists.ozlabs.org 138c2ecf20Sopenharmony_ciDescription: Write an integer containing the size in bytes of the memory 148c2ecf20Sopenharmony_ci you want removed from each NUMA node to this file - it must be 158c2ecf20Sopenharmony_ci aligned to the memblock size. This amount of RAM will be removed 168c2ecf20Sopenharmony_ci from each NUMA node in the kernel mappings and the following 178c2ecf20Sopenharmony_ci debugfs files will be created. Once memory is successfully 188c2ecf20Sopenharmony_ci removed from each node, the following files are created. To 198c2ecf20Sopenharmony_ci re-add memory to the kernel, echo 0 into this file (it will be 208c2ecf20Sopenharmony_ci automatically onlined). 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/powerpc/memtrace/<node-id> 238c2ecf20Sopenharmony_ciDate: Aug 2017 248c2ecf20Sopenharmony_ciKernelVersion: 4.14 258c2ecf20Sopenharmony_ciContact: linuxppc-dev@lists.ozlabs.org 268c2ecf20Sopenharmony_ciDescription: This directory contains information about the removed memory 278c2ecf20Sopenharmony_ci from the specific NUMA node. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/powerpc/memtrace/<node-id>/size 308c2ecf20Sopenharmony_ciDate: Aug 2017 318c2ecf20Sopenharmony_ciKernelVersion: 4.14 328c2ecf20Sopenharmony_ciContact: linuxppc-dev@lists.ozlabs.org 338c2ecf20Sopenharmony_ciDescription: This contains the size of the memory removed from the node. 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/powerpc/memtrace/<node-id>/start 368c2ecf20Sopenharmony_ciDate: Aug 2017 378c2ecf20Sopenharmony_ciKernelVersion: 4.14 388c2ecf20Sopenharmony_ciContact: linuxppc-dev@lists.ozlabs.org 398c2ecf20Sopenharmony_ciDescription: This contains the start address of the removed memory. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciWhat: /sys/kernel/debug/powerpc/memtrace/<node-id>/trace 428c2ecf20Sopenharmony_ciDate: Aug 2017 438c2ecf20Sopenharmony_ciKernelVersion: 4.14 448c2ecf20Sopenharmony_ciContact: linuxppc-dev@lists.ozlabs.org 458c2ecf20Sopenharmony_ciDescription: This is where the hardware trace macro will output the trace 468c2ecf20Sopenharmony_ci it generates. 47