Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3875479pxb; Tue, 17 Nov 2020 06:00:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6Hk8ojOkz/3x+TjZ8YTJ3/zkuTi3DadKv/+IJ8vKb/e5gjtt3oqx8R9XSKutfGxaMYGJf X-Received: by 2002:a17:906:5fd9:: with SMTP id k25mr20551234ejv.166.1605621624274; Tue, 17 Nov 2020 06:00:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605621623; cv=none; d=google.com; s=arc-20160816; b=vD1LAP/bKcTWRyQ8Xoh7CZUFn3qt88IwlTFELvPQ0aBSbSH9bIG/UcujD7Jupka/KM y4vxH5TPC4VBKuzN/hMMNakypTdz7EGm2JO7nGpkItnH0/Pk/XsABoVomV/nUjmQ+bPK B7OlEPJSbtwHE0B9dP+ahgEzBazcX89jEfsZgoLg5PleTHu1ueo92a+oCDILl2DeG7Ct qSXl9yxw3VlsyPRJ0dS7EEmVWbskqkCcxZI4maITUiDKQmYdAm4NdV93sPPPkIFXqzl1 mV+YzrcbsqDsSH7IplcfbnKSG987u6MPPXIxvShgocLJhbJxKyKVjcrZ458F546Yu1IW pwvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mkkT5rOzX1T8VnwjaiDtk7ocWKA5WzktSDSpuCwj/Fw=; b=aNxy43LIOI2km49gGwbxfE4N225ysOlH7+8cbixcAQh5CP9UlNjfzLyDeHTT6Q43x4 yyZj97T23ypaNrSUjG3L4eIjxzUubd9ib5vDSogxGgiIPVigNt9lHBrpo2rLvWvvUWIl va1Zm2fm+HMMovsjFpp8Z2BX/Su9Z4sYrVR04ScacYcSjG4z8J6bdDOSCG1J95FIeWvD sHE9hFlih0pzbcMGd6io76VmjPqb+bvSdXYx2kaEIEQZCt048VbhsdilvVA2Otgzo8Fo dx9eWtavbmUq6phEs0QObqpyjLtgSfGesMwAY010N//8ddi6P89vwRLrZRls3vYOOggD IXEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f26FVqzp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si14262633eds.42.2020.11.17.06.00.00; Tue, 17 Nov 2020 06:00:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f26FVqzp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730753AbgKQN6K (ORCPT + 99 others); Tue, 17 Nov 2020 08:58:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:52126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730342AbgKQNTG (ORCPT ); Tue, 17 Nov 2020 08:19:06 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF703241A5; Tue, 17 Nov 2020 13:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619146; bh=iVmNXVvgpuvsEhl5cXeuZuMvCztFssgpKilqgSpfTc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f26FVqzpERPL1MKoqNVceaRx9jSgpm8R7sETEEVO2ZqMRG3Y9TVas08i5IEjaWMbK MUNJcEAjaUxZPSIAvI6JWimP3jH6Oylxw/MkOc8CZIgausAGJmNkvpkhM4L/AS/IPD pyRB3KZ+byGggTDSLGiI8aoLrgqoPCXARiGj4aXk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Olsa , Namhyung Kim , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.19 013/101] perf tools: Add missing swap for ino_generation Date: Tue, 17 Nov 2020 14:04:40 +0100 Message-Id: <20201117122113.750655697@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122113.128215851@linuxfoundation.org> References: <20201117122113.128215851@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Olsa [ Upstream commit fe01adb72356a4e2f8735e4128af85921ca98fa1 ] We are missing swap for ino_generation field. Fixes: 5c5e854bc760 ("perf tools: Add attr->mmap2 support") Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Link: https://lore.kernel.org/r/20201101233103.3537427-2-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- 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 f016d1b330e54..6a2037b52098b 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -488,6 +488,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.27.0