diff options
| author | Jiri Olsa <jolsa@kernel.org> | 2020-11-02 00:31:03 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-18 18:27:53 +0100 |
| commit | 836b93cf3043440408416c51b51066b2377c8b0a (patch) | |
| tree | 214506228f04a79b5d3f1de966b5344f6da69da8 /tools | |
| parent | 4cf755e9bceb0f69898bc6be10ea21e815d49659 (diff) | |
| download | linux-836b93cf3043440408416c51b51066b2377c8b0a.tar.gz linux-836b93cf3043440408416c51b51066b2377c8b0a.tar.bz2 linux-836b93cf3043440408416c51b51066b2377c8b0a.zip | |
perf tools: Add missing swap for ino_generation
[ Upstream commit fe01adb72356a4e2f8735e4128af85921ca98fa1 ]
We are missing swap for ino_generation field.
Fixes: 5c5e854bc760 ("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>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/perf/util/session.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index c49e8ea1a42c..decd5d147e81 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -492,6 +492,7 @@ static void perf_event__mmap2_swap(union perf_event *event, event->mmap2.maj = bswap_32(event->mmap2.maj); event->mmap2.min = bswap_32(event->mmap2.min); event->mmap2.ino = bswap_64(event->mmap2.ino); + event->mmap2.ino_generation = bswap_64(event->mmap2.ino_generation); if (sample_id_all) { void *data = &event->mmap2.filename; |
