xref: /linux/Documentation/ABI/testing/ppc-memtrace (revision 1f84c2624a2d75c9f69214ed83f11dd30a8ae83d)
1*1f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace
2*1f84c262SRashmica GuptaDate:		Aug 2017
3*1f84c262SRashmica GuptaKernelVersion:	4.14
4*1f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
5*1f84c262SRashmica GuptaDescription:	This folder contains the relevant debugfs files for the
6*1f84c262SRashmica Gupta		hardware trace macro to use. CONFIG_PPC64_HARDWARE_TRACING
7*1f84c262SRashmica Gupta		must be set.
8*1f84c262SRashmica Gupta
9*1f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace/enable
10*1f84c262SRashmica GuptaDate:		Aug 2017
11*1f84c262SRashmica GuptaKernelVersion:	4.14
12*1f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
13*1f84c262SRashmica GuptaDescription:	Write an integer containing the size in bytes of the memory
14*1f84c262SRashmica Gupta		you want removed from each NUMA node to this file - it must be
15*1f84c262SRashmica Gupta		aligned to the memblock size. This amount of RAM will be removed
16*1f84c262SRashmica Gupta		from the kernel mappings and the following debugfs files will be
17*1f84c262SRashmica Gupta		created. This can only be successfully done once per boot. Once
18*1f84c262SRashmica Gupta		memory is successfully removed from each node, the following
19*1f84c262SRashmica Gupta		files are created.
20*1f84c262SRashmica Gupta
21*1f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>
22*1f84c262SRashmica GuptaDate:		Aug 2017
23*1f84c262SRashmica GuptaKernelVersion:	4.14
24*1f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
25*1f84c262SRashmica GuptaDescription:	This directory contains information about the removed memory
26*1f84c262SRashmica Gupta		from the specific NUMA node.
27*1f84c262SRashmica Gupta
28*1f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>/size
29*1f84c262SRashmica GuptaDate:		Aug 2017
30*1f84c262SRashmica GuptaKernelVersion:	4.14
31*1f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
32*1f84c262SRashmica GuptaDescription:	This contains the size of the memory removed from the node.
33*1f84c262SRashmica Gupta
34*1f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>/start
35*1f84c262SRashmica GuptaDate:		Aug 2017
36*1f84c262SRashmica GuptaKernelVersion:	4.14
37*1f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
38*1f84c262SRashmica GuptaDescription:	This contains the start address of the removed memory.
39*1f84c262SRashmica Gupta
40*1f84c262SRashmica GuptaWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>/trace
41*1f84c262SRashmica GuptaDate:		Aug 2017
42*1f84c262SRashmica GuptaKernelVersion:	4.14
43*1f84c262SRashmica GuptaContact:	linuxppc-dev@lists.ozlabs.org
44*1f84c262SRashmica GuptaDescription:	This is where the hardware trace macro will output the trace
45*1f84c262SRashmica Gupta		it generates.
46