diff options
| author | Jiri Olsa <[email protected]> | 2020-12-14 11:54:47 +0100 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-12-28 09:58:40 -0300 |
| commit | 29245ae8ff658bd8cd0d78bfb8c2801e66db6ee7 (patch) | |
| tree | 71171f0c868579b8edac3ca6bb5cb39febd1286c /tools/perf/scripts/python | |
| parent | dde587aa217484ee96de8b0f5ee29b8ccbf5c88c (diff) | |
perf tools: Do not swap mmap2 fields in case it contains build id
If the PERF_RECORD_MISC_MMAP_BUILD_ID misc bit is set, mmap2 events
carries a build id, placed in the following union:
union {
struct {
u32 maj;
u32 min;
u64 ino;
u64 ino_generation;
};
struct {
u8 build_id_size;
u8 __reserved_1;
u16 __reserved_2;
u8 build_id[20];
};
};
In this case we can't swap above fields.
Signed-off-by: Jiri Olsa <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Alexei Budankov <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions