Skip to content

Commit 2290175

Browse files
olsajirigregkh
authored andcommitted
perf tools: Add missing swap for ino_generation
[ Upstream commit fe01adb ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b36f78f commit 2290175

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
@@ -588,6 +588,7 @@ static void perf_event__mmap2_swap(union perf_event *event,
588588
event->mmap2.maj = bswap_32(event->mmap2.maj);
589589
event->mmap2.min = bswap_32(event->mmap2.min);
590590
event->mmap2.ino = bswap_64(event->mmap2.ino);
591+
event->mmap2.ino_generation = bswap_64(event->mmap2.ino_generation);
591592

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

0 commit comments

Comments
 (0)