aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI/testing/ppc-memtrace
blob: 2e8b9374127002a0a82920099d23e642b89a6aa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
What:		/sys/kernel/debug/powerpc/memtrace
Date:		Aug 2017
KernelVersion:	4.14
Contact:	linuxppc-dev@lists.ozlabs.org
Description:	This folder contains the relevant debugfs files for the
		hardware trace macro to use. CONFIG_PPC64_HARDWARE_TRACING
		must be set.

What:		/sys/kernel/debug/powerpc/memtrace/enable
Date:		Aug 2017
KernelVersion:	4.14
Contact:	linuxppc-dev@lists.ozlabs.org
Description:	Write an integer containing the size in bytes of the memory
		you want removed from each NUMA node to this file - it must be
		aligned to the memblock size. This amount of RAM will be removed
		from the kernel mappings and the following debugfs files will be
		created. This can only be successfully done once per boot. Once
		memory is successfully removed from each node, the following
		files are created.

What:		/sys/kernel/debug/powerpc/memtrace/<node-id>
Date:		Aug 2017
KernelVersion:	4.14
Contact:	linuxppc-dev@lists.ozlabs.org
Description:	This directory contains information about the removed memory
		from the specific NUMA node.

What:		/sys/kernel/debug/powerpc/memtrace/<node-id>/size
Date:		Aug 2017
KernelVersion:	4.14
Contact:	linuxppc-dev@lists.ozlabs.org
Description:	This contains the size of the memory removed from the node.

What:		/sys/kernel/debug/powerpc/memtrace/<node-id>/start
Date:		Aug 2017
KernelVersion:	4.14
Contact:	linuxppc-dev@lists.ozlabs.org
Description:	This contains the start address of the removed memory.

What:		/sys/kernel/debug/powerpc/memtrace/<node-id>/trace
Date:		Aug 2017
KernelVersion:	4.14
Contact:	linuxppc-dev@lists.ozlabs.org
Description:	This is where the hardware trace macro will output the trace
		it generates.