diff options
author | Vince Weaver <vincent.weaver@maine.edu> | 2019-08-01 14:30:43 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-14 09:59:59 -0400 |
commit | 3143906c2770778d89b730e0342b745d1b4a8303 (patch) | |
tree | 3eee46ab8bf0b48ccaf2ef71dca87d4287a8e700 | |
parent | 38fe26b46f55538c2cb8b96500caed6ae9d59d46 (diff) |
perf.data documentation: Clarify HEADER_SAMPLE_TOPOLOGY format
The perf.data file format documentation for HEADER_SAMPLE_TOPOLOGY
specifies the layout in a confusing manner that doesn't match the rest
of the document. This patch attempts to describe things consistent with
the rest of the file.
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Chong Jiang <chongjiang@chromium.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Simon Que <sque@chromium.org>
Link: http://lkml.kernel.org/r/alpine.DEB.2.21.1908011425240.14303@macbook-air
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/Documentation/perf.data-file-format.txt | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt index d030c87ed9f5..b0152e1095c5 100644 --- a/tools/perf/Documentation/perf.data-file-format.txt +++ b/tools/perf/Documentation/perf.data-file-format.txt | |||
@@ -298,16 +298,21 @@ Physical memory map and its node assignments. | |||
298 | 298 | ||
299 | The format of data in MEM_TOPOLOGY is as follows: | 299 | The format of data in MEM_TOPOLOGY is as follows: |
300 | 300 | ||
301 | 0 - version | for future changes | 301 | u64 version; // Currently 1 |
302 | 8 - block_size_bytes | /sys/devices/system/memory/block_size_bytes | 302 | u64 block_size_bytes; // /sys/devices/system/memory/block_size_bytes |
303 | 16 - count | number of nodes | 303 | u64 count; // number of nodes |
304 | 304 | ||
305 | For each node we store map of physical indexes: | 305 | struct memory_node { |
306 | 306 | u64 node_id; // node index | |
307 | 32 - node id | node index | 307 | u64 size; // size of bitmap |
308 | 40 - size | size of bitmap | 308 | struct bitmap { |
309 | 48 - bitmap | bitmap of memory indexes that belongs to node | 309 | /* size of bitmap again */ |
310 | | /sys/devices/system/node/node<NODE>/memory<INDEX> | 310 | u64 bitmapsize; |
311 | /* bitmap of memory indexes that belongs to node */ | ||
312 | /* /sys/devices/system/node/node<NODE>/memory<INDEX> */ | ||
313 | u64 entries[(bitmapsize/64)+1]; | ||
314 | } | ||
315 | }[count]; | ||
311 | 316 | ||
312 | The MEM_TOPOLOGY can be displayed with following command: | 317 | The MEM_TOPOLOGY can be displayed with following command: |
313 | 318 | ||