xref: /linux/Documentation/ABI/testing/ppc-memtrace (revision 3eb66e91a25497065c5322b1268cbc3953642227)
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
16*24576a70SRashmica Gupta		from each NUMA node in the kernel mappings and the following
17*24576a70SRashmica Gupta		debugfs files will be created. Once memory is successfully
18*24576a70SRashmica Gupta		removed from each node, the following files are created. To
19*24576a70SRashmica Gupta		re-add memory to the kernel, echo 0 into this file (it will be
20*24576a70SRashmica Gupta		automatically onlined).
211f84c262SRashmica Gupta
221f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>
231f84c262SRashmica GuptaDate:		Aug 2017
241f84c262SRashmica GuptaKernelVersion:	4.14
251f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
261f84c262SRashmica GuptaDescription:	This directory contains information about the removed memory
271f84c262SRashmica Gupta		from the specific NUMA node.
281f84c262SRashmica Gupta
291f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>/size
301f84c262SRashmica GuptaDate:		Aug 2017
311f84c262SRashmica GuptaKernelVersion:	4.14
321f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
331f84c262SRashmica GuptaDescription:	This contains the size of the memory removed from the node.
341f84c262SRashmica Gupta
351f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>/start
361f84c262SRashmica GuptaDate:		Aug 2017
371f84c262SRashmica GuptaKernelVersion:	4.14
381f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
391f84c262SRashmica GuptaDescription:	This contains the start address of the removed memory.
401f84c262SRashmica Gupta
411f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>/trace
421f84c262SRashmica GuptaDate:		Aug 2017
431f84c262SRashmica GuptaKernelVersion:	4.14
441f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
451f84c262SRashmica GuptaDescription:	This is where the hardware trace macro will output the trace
461f84c262SRashmica Gupta		it generates.
47