Skip to content

Commit 0c71113

Browse files
Thomas Richteracmel
authored andcommitted
perf data: Update documentation section on cpu topology
Add an explanation of each cpu's core and socket identifier to the perf.data file format documentation. Signed-off-by: Thomas Richter <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Hendrik Brueckner <[email protected]> Cc: Martin Schwidefsky <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent e2ab285 commit 0c71113

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/perf/Documentation/perf.data-file-format.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,18 @@ struct {
153153
HEADER_CPU_TOPOLOGY = 13,
154154

155155
String lists defining the core and CPU threads topology.
156+
The string lists are followed by a variable length array
157+
which contains core_id and socket_id of each cpu.
158+
The number of entries can be determined by the size of the
159+
section minus the sizes of both string lists.
156160

157161
struct {
158162
struct perf_header_string_list cores; /* Variable length */
159163
struct perf_header_string_list threads; /* Variable length */
164+
struct {
165+
uint32_t core_id;
166+
uint32_t socket_id;
167+
} cpus[nr]; /* Variable length records */
160168
};
161169

162170
Example:

0 commit comments

Comments
 (0)