diff options
| author | Namhyung Kim <[email protected]> | 2023-08-25 15:25:50 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-08-29 17:16:14 +0000 |
| commit | baec60800dd4a379546f3ba311574d907a01a77d (patch) | |
| tree | 7daa193bb1b98fe5b1286195293661b6eef2be09 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | perf tools: Handle old data in PERF_RECORD_ATTR (diff) | |
| download | kernel-baec60800dd4a379546f3ba311574d907a01a77d.tar.gz kernel-baec60800dd4a379546f3ba311574d907a01a77d.zip | |
libperf: Add perf_record_header_attr_id()
The HEADER_ATTR record has an event attr followed by the id array. But
perf data from a different version could have different size of attr.
So it cannot just use event->attr.id to access the array. Let's add the
perf_record_header_attr_id() macro to calculate the start of the array.
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
