summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2017-11-09 06:55:24 -0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-11-16 14:49:55 -0300
commit35c0a81a97692cc0afe3d005c9a737bbde06e784 (patch)
tree8f1868ebb2834ae8442311f1c5776ba65a3b7c6b
parent4359dd88afb7cac8a98e32f6bdfe0b46c79bc3cd (diff)
downloadlinux-stable-35c0a81a97692cc0afe3d005c9a737bbde06e784.tar.gz
linux-stable-35c0a81a97692cc0afe3d005c9a737bbde06e784.tar.bz2
linux-stable-35c0a81a97692cc0afe3d005c9a737bbde06e784.zip
perf tools: Document some missing perf.data headers
Document STAT and CACHE header entries. Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/20171109145528.23371-2-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Documentation/perf.data-file-format.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt
index e90c59c6d815..15e8b48077ba 100644
--- a/tools/perf/Documentation/perf.data-file-format.txt
+++ b/tools/perf/Documentation/perf.data-file-format.txt
@@ -238,6 +238,29 @@ struct auxtrace_index {
struct auxtrace_index_entry entries[PERF_AUXTRACE_INDEX_ENTRY_COUNT];
};
+ HEADER_STAT = 19,
+
+This is merely a flag signifying that the data section contains data
+recorded from perf stat record.
+
+ HEADER_CACHE = 20,
+
+Description of the cache hierarchy. Based on the Linux sysfs format
+in /sys/devices/system/cpu/cpu*/cache/
+
+ u32 version Currently always 1
+ u32 number_of_cache_levels
+
+struct {
+ u32 level;
+ u32 line_size;
+ u32 sets;
+ u32 ways;
+ struct perf_header_string type;
+ struct perf_header_string size;
+ struct perf_header_string map;
+}[number_of_cache_levels];
+
other bits are reserved and should ignored for now
HEADER_FEAT_BITS = 256,