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