Message ID | 20200122092809.794796388@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=TRKd=3L=vger.kernel.org=stable-owner@kernel.org> 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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT 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 B5603C2D0DB for <stable@archiver.kernel.org>; Wed, 22 Jan 2020 09:41:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 89B7724686 for <stable@archiver.kernel.org>; Wed, 22 Jan 2020 09:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579686093; bh=V66rkrlWflj1hEr6H8H1kCTKqGFbsByGYb1PUWLNqpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=FE4laOQvU6XDbWn89/LxMpVio7rrcfbS38fB4Cmfz4kemN+1/2ts1k4v4SH/0UNIJ VzSW+t58s0eEWJobH9HUBzS7kL82/ryH8b292dgCaFvutDX8rMp9RCrsFsF/ukYmSV 5gA2kmkf9S8bqtPkXMkjE9D7MbVm+fSrEffzNOnE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387583AbgAVJlc (ORCPT <rfc822;stable@archiver.kernel.org>); Wed, 22 Jan 2020 04:41:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:32792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387574AbgAVJla (ORCPT <rfc822;stable@vger.kernel.org>); Wed, 22 Jan 2020 04:41:30 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 A38932467B; Wed, 22 Jan 2020 09:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579686090; bh=V66rkrlWflj1hEr6H8H1kCTKqGFbsByGYb1PUWLNqpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s+Bf5Xhb449N1lpJ470YQK/itlNc3TzDSy6CyGEIirIs6yGSvIAuyoPJyA172f7eV BPb5dt6idDcGaQXn7YB4epudPUu16mDpKNQFPG6PBd/rYUVn/btoALGfux79IW0ZMa PNFzHCxMZIiw8C/bMAO50dp11rjQhpQl9UkLu9S0= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Jin Yao <yao.jin@linux.intel.com>, Arnaldo Carvalho de Melo <acme@redhat.com>, Jiri Olsa <jolsa@redhat.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Andi Kleen <ak@linux.intel.com>, Feng Tang <feng.tang@intel.com>, Jin Yao <yao.jin@intel.com>, Kan Liang <kan.liang@linux.intel.com>, Peter Zijlstra <peterz@infradead.org> Subject: [PATCH 4.19 039/103] perf report: Fix incorrectly added dimensions as switch perf data file Date: Wed, 22 Jan 2020 10:28:55 +0100 Message-Id: <20200122092809.794796388@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092803.587683021@linuxfoundation.org> References: <20200122092803.587683021@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -961,6 +961,7 @@ int cmd_report(int argc, const char **ar struct stat st; bool has_br_stack = false; int branch_mode = -1; + int last_key = 0; bool branch_call_mode = false; #define CALLCHAIN_DEFAULT_OPT "graph,0.5,caller,function,percent" const char report_callchain_help[] = "Display call graph (stack chain/backtrace):\n\n" @@ -1292,7 +1293,8 @@ repeat: else use_browser = 0; - if (setup_sorting(session->evlist) < 0) { + if ((last_key != K_SWITCH_INPUT_DATA) && + (setup_sorting(session->evlist) < 0)) { if (sort_order) parse_options_usage(report_usage, options, "s", 1); if (field_order) @@ -1390,6 +1392,7 @@ repeat: ret = __cmd_report(&report); if (ret == K_SWITCH_INPUT_DATA) { perf_session__delete(session); + last_key = K_SWITCH_INPUT_DATA; goto repeat; } else ret = 0;