diff options
-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 | ||