aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-05-29 14:35:03 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-06-05 08:47:53 -0400
commit835fbf126ce0a359626bc59b8da4e7601f01fc87 (patch)
treea6870d81864d8839d6adb7a798ff96ea4b80d4b9
parent8e21be4f815ca8edfee1decd87f298f92123f719 (diff)
perf data: Document memory topology header: HEADER_MEM_TOPOLOGY
We forgot to update the perf.data file format document for the HEADER_MEM_TOPOLOGY header, do it now from comments in the patch introducing it. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Chong Jiang <chongjiang@chromium.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Simon Que <sque@chromium.org> Fixes: e2091cedd51b ("perf tools: Add MEM_TOPOLOGY feature to perf data file") Link: https://lkml.kernel.org/n/tip-h5lcm1nbe9ztxwm61gmadd56@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Documentation/perf.data-file-format.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt
index 022bb8b1c84a..99733751695b 100644
--- a/tools/perf/Documentation/perf.data-file-format.txt
+++ b/tools/perf/Documentation/perf.data-file-format.txt
@@ -272,6 +272,30 @@ struct {
272 272
273Two uint64_t for the time of first sample and the time of last sample. 273Two uint64_t for the time of first sample and the time of last sample.
274 274
275 HEADER_SAMPLE_TOPOLOGY = 22,
276
277Physical memory map and its node assignments.
278
279The format of data in MEM_TOPOLOGY is as follows:
280
281 0 - version | for future changes
282 8 - block_size_bytes | /sys/devices/system/memory/block_size_bytes
283 16 - count | number of nodes
284
285For each node we store map of physical indexes:
286
287 32 - node id | node index
288 40 - size | size of bitmap
289 48 - bitmap | bitmap of memory indexes that belongs to node
290 | /sys/devices/system/node/node<NODE>/memory<INDEX>
291
292The MEM_TOPOLOGY can be displayed with following command:
293
294$ perf report --header-only -I
295...
296# memory nodes (nr 1, block size 0x8000000):
297# 0 [7G]: 0-23,32-69
298
275 HEADER_BPF_PROG_INFO = 25, 299 HEADER_BPF_PROG_INFO = 25,
276 300
277struct bpf_prog_info_linear, which contains detailed information about 301struct bpf_prog_info_linear, which contains detailed information about