162306a36Sopenharmony_ciWhat:		/sys/kernel/debug/powerpc/memtrace
262306a36Sopenharmony_ciDate:		Aug 2017
362306a36Sopenharmony_ciKernelVersion:	4.14
462306a36Sopenharmony_ciContact:	linuxppc-dev@lists.ozlabs.org
562306a36Sopenharmony_ciDescription:	This folder contains the relevant debugfs files for the
662306a36Sopenharmony_ci		hardware trace macro to use. CONFIG_PPC64_HARDWARE_TRACING
762306a36Sopenharmony_ci		must be set.
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciWhat:		/sys/kernel/debug/powerpc/memtrace/enable
1062306a36Sopenharmony_ciDate:		Aug 2017
1162306a36Sopenharmony_ciKernelVersion:	4.14
1262306a36Sopenharmony_ciContact:	linuxppc-dev@lists.ozlabs.org
1362306a36Sopenharmony_ciDescription:	Write an integer containing the size in bytes of the memory
1462306a36Sopenharmony_ci		you want removed from each NUMA node to this file - it must be
1562306a36Sopenharmony_ci		aligned to the memblock size. This amount of RAM will be removed
1662306a36Sopenharmony_ci		from each NUMA node in the kernel mappings and the following
1762306a36Sopenharmony_ci		debugfs files will be created. Once memory is successfully
1862306a36Sopenharmony_ci		removed from each node, the following files are created. To
1962306a36Sopenharmony_ci		re-add memory to the kernel, echo 0 into this file (it will be
2062306a36Sopenharmony_ci		automatically onlined).
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>
2362306a36Sopenharmony_ciDate:		Aug 2017
2462306a36Sopenharmony_ciKernelVersion:	4.14
2562306a36Sopenharmony_ciContact:	linuxppc-dev@lists.ozlabs.org
2662306a36Sopenharmony_ciDescription:	This directory contains information about the removed memory
2762306a36Sopenharmony_ci		from the specific NUMA node.
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>/size
3062306a36Sopenharmony_ciDate:		Aug 2017
3162306a36Sopenharmony_ciKernelVersion:	4.14
3262306a36Sopenharmony_ciContact:	linuxppc-dev@lists.ozlabs.org
3362306a36Sopenharmony_ciDescription:	This contains the size of the memory removed from the node.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>/start
3662306a36Sopenharmony_ciDate:		Aug 2017
3762306a36Sopenharmony_ciKernelVersion:	4.14
3862306a36Sopenharmony_ciContact:	linuxppc-dev@lists.ozlabs.org
3962306a36Sopenharmony_ciDescription:	This contains the start address of the removed memory.
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ciWhat:		/sys/kernel/debug/powerpc/memtrace/<node-id>/trace
4262306a36Sopenharmony_ciDate:		Aug 2017
4362306a36Sopenharmony_ciKernelVersion:	4.14
4462306a36Sopenharmony_ciContact:	linuxppc-dev@lists.ozlabs.org
4562306a36Sopenharmony_ciDescription:	This is where the hardware trace macro will output the trace
4662306a36Sopenharmony_ci		it generates.
47