diff options
author | Thomas Richter <tmricht@linux.ibm.com> | 2018-05-28 03:44:33 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-05-30 14:39:13 -0400 |
commit | 0c711138fa61188aa379210e9e08ac76838dea03 (patch) | |
tree | 9f07631e7aa319dcd14a1af6f445842dc8e8bf4c | |
parent | e2ab28521a588785c3e053098ffe607b5ff54634 (diff) |
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 <tmricht@linux.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Link: http://lkml.kernel.org/r/20180528074433.16652-1-tmricht@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/Documentation/perf.data-file-format.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt index d00f0d51cab8..c57904a526ce 100644 --- a/tools/perf/Documentation/perf.data-file-format.txt +++ b/tools/perf/Documentation/perf.data-file-format.txt | |||
@@ -153,10 +153,18 @@ struct { | |||
153 | HEADER_CPU_TOPOLOGY = 13, | 153 | HEADER_CPU_TOPOLOGY = 13, |
154 | 154 | ||
155 | String lists defining the core and CPU threads topology. | 155 | 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. | ||
156 | 160 | ||
157 | struct { | 161 | struct { |
158 | struct perf_header_string_list cores; /* Variable length */ | 162 | struct perf_header_string_list cores; /* Variable length */ |
159 | struct perf_header_string_list threads; /* Variable length */ | 163 | 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 */ | ||
160 | }; | 168 | }; |
161 | 169 | ||
162 | Example: | 170 | Example: |