Skip to content

Commit fe01adb

Browse files
olsajiriacmel
authored andcommitted
perf tools: Add missing swap for ino_generation
We are missing swap for ino_generation field. Fixes: 5c5e854 ("perf tools: Add attr->mmap2 support") Signed-off-by: Jiri Olsa <jolsa@kernel.org> Acked-by: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20201101233103.3537427-2-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 6311951 commit fe01adb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/perf/util/session.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ static void perf_event__mmap2_swap(union perf_event *event,
595595
event->mmap2.maj = bswap_32(event->mmap2.maj);
596596
event->mmap2.min = bswap_32(event->mmap2.min);
597597
event->mmap2.ino = bswap_64(event->mmap2.ino);
598+
event->mmap2.ino_generation = bswap_64(event->mmap2.ino_generation);
598599

599600
if (sample_id_all) {
600601
void *data = &event->mmap2.filename;

0 commit comments

Comments
 (0)