From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75510C2D0A3 for ; Sun, 1 Nov 2020 23:32:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3A013206C1 for ; Sun, 1 Nov 2020 23:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604273538; bh=Ilewk8wkOwSV44CKFtGUeG+389h0JOPyDI8wzugpA7c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=c4c9VToTDpEYl3Rd4R7maddT4EvQnuLw1ZMvWJNK8ZCQ/1K3i/9/3Xc7tOa/RgnGC 9IEqDh8OXMhgMGLOyx3Oo+kaZSC2HAac4umdXuyX3zR7eANQItnxyzZ1wDb//SVU4x EcLE2q+NIjXI8LvHBXiyFAMpO0kvu0yW7sSQDNVA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727470AbgKAXbR convert rfc822-to-8bit (ORCPT ); Sun, 1 Nov 2020 18:31:17 -0500 Received: from us-smtp-delivery-44.mimecast.com ([205.139.111.44]:37552 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727062AbgKAXbQ (ORCPT ); Sun, 1 Nov 2020 18:31:16 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-550-pWeRZmRyOeaSjo_eVmFi_A-1; Sun, 01 Nov 2020 18:31:11 -0500 X-MC-Unique: pWeRZmRyOeaSjo_eVmFi_A-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BFF9557050; Sun, 1 Nov 2020 23:31:09 +0000 (UTC) Received: from krava.redhat.com (unknown [10.40.192.101]) by smtp.corp.redhat.com (Postfix) with ESMTP id 713EB55766; Sun, 1 Nov 2020 23:31:07 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , Stephane Eranian Subject: [PATCH 2/2] perf tools: Add missing swap for ino_generation Date: Mon, 2 Nov 2020 00:31:03 +0100 Message-Id: <20201101233103.3537427-2-jolsa@kernel.org> In-Reply-To: <20201101233103.3537427-1-jolsa@kernel.org> References: <20201101233103.3537427-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jolsa@kernel.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=WINDOWS-1252 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are missing swap for ino_generation field. Fixes: 5c5e854bc760 ("perf tools: Add attr->mmap2 support") Signed-off-by: Jiri Olsa --- tools/perf/util/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 7a5f03764702..d20b16ee7377 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -595,6 +595,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; -- 2.26.2