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=-11.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 5F9CCC31E40 for ; Thu, 15 Aug 2019 09:32:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2FA5721855 for ; Thu, 15 Aug 2019 09:32:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="rb0E/5V9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731312AbfHOJcA (ORCPT ); Thu, 15 Aug 2019 05:32:00 -0400 Received: from terminus.zytor.com ([198.137.202.136]:59075 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfHOJb7 (ORCPT ); Thu, 15 Aug 2019 05:31:59 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x7F9Ulo82274336 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 15 Aug 2019 02:30:47 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x7F9Ulo82274336 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1565861448; bh=ryK/i0opVEjqljhEhP68pSxQuEjiS3PvWgpRKu4s5ok=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=rb0E/5V9EvXnBe8SOu5pJE2nIgSUCtU6+WJmVB2yZxhHJcl3TLgFbTO8+nZsKAfoy GP9MNTPU1wwZaSzTjqolKYwxXJ4M2eU0VpHZtnvaxXiRWqbiz/MXgkz+f4rTJrreb4 B+n866Ho79ROiZPJCd/o0rHANDf2cEwSYdx2EL8y0+iWzkkRO9+tBjTTzKYw+9jxtj eaul/T1DDOh7R5K8ub8O/0kKog9O4dox/uYb57ywcqWY9MwLpsvy4VE3Yd7KtbltHW 7hOWIMiKkfUJmrQ2l/0K7t5Bzu0nTvkYgENKrG5Uh8liPNRVmtZxBBm88zuisr+/lF +lJZvKM21JBvw== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x7F9Ukax2274333; Thu, 15 Aug 2019 02:30:46 -0700 Date: Thu, 15 Aug 2019 02:30:46 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Adrian Hunter Message-ID: Cc: hpa@zytor.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, peterz@infradead.org, acme@redhat.com, kan.liang@linux.intel.com, jolsa@kernel.org, tglx@linutronix.de, alexander.shishkin@linux.intel.com, adrian.hunter@intel.com, mingo@kernel.org Reply-To: alexander.shishkin@linux.intel.com, kan.liang@linux.intel.com, jolsa@kernel.org, acme@redhat.com, namhyung@kernel.org, mingo@kernel.org, adrian.hunter@intel.com, tglx@linutronix.de, peterz@infradead.org, linux-kernel@vger.kernel.org, hpa@zytor.com In-Reply-To: <20190806084606.4021-5-alexander.shishkin@linux.intel.com> References: <20190806084606.4021-5-alexander.shishkin@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Add itrace option 'o' to synthesize aux-output events Git-Commit-ID: 181ebb5e23a5e480f6d6aa2816a9c4aaa65afa59 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 181ebb5e23a5e480f6d6aa2816a9c4aaa65afa59 Gitweb: https://git.kernel.org/tip/181ebb5e23a5e480f6d6aa2816a9c4aaa65afa59 Author: Adrian Hunter AuthorDate: Tue, 6 Aug 2019 11:46:03 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Aug 2019 10:59:59 -0300 perf tools: Add itrace option 'o' to synthesize aux-output events Add itrace option 'o' to synthesize events recorded in the AUX area due to the use of perf record's aux-output config term. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190806084606.4021-5-alexander.shishkin@linux.intel.com Signed-off-by: Alexander Shishkin Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/itrace.txt | 2 ++ tools/perf/util/auxtrace.c | 4 ++++ tools/perf/util/auxtrace.h | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tools/perf/Documentation/itrace.txt b/tools/perf/Documentation/itrace.txt index c2182cbabde3..82ff7dad40c2 100644 --- a/tools/perf/Documentation/itrace.txt +++ b/tools/perf/Documentation/itrace.txt @@ -5,6 +5,8 @@ x synthesize transactions events w synthesize ptwrite events p synthesize power events + o synthesize other events recorded due to the use + of aux-output (refer to perf record) e synthesize error events d create a debug log g synthesize a call chain (use with i or x) diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index 72ce4c5e7c78..60428576426e 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -974,6 +974,7 @@ void itrace_synth_opts__set_default(struct itrace_synth_opts *synth_opts, synth_opts->transactions = true; synth_opts->ptwrites = true; synth_opts->pwr_events = true; + synth_opts->other_events = true; synth_opts->errors = true; if (no_sample) { synth_opts->period_type = PERF_ITRACE_PERIOD_INSTRUCTIONS; @@ -1071,6 +1072,9 @@ int itrace_parse_synth_opts(const struct option *opt, const char *str, case 'p': synth_opts->pwr_events = true; break; + case 'o': + synth_opts->other_events = true; + break; case 'e': synth_opts->errors = true; break; diff --git a/tools/perf/util/auxtrace.h b/tools/perf/util/auxtrace.h index 8ccabacd0b11..8e637ac3918e 100644 --- a/tools/perf/util/auxtrace.h +++ b/tools/perf/util/auxtrace.h @@ -60,6 +60,8 @@ enum itrace_period_type { * @transactions: whether to synthesize events for transactions * @ptwrites: whether to synthesize events for ptwrites * @pwr_events: whether to synthesize power events + * @other_events: whether to synthesize other events recorded due to the use of + * aux_output * @errors: whether to synthesize decoder error events * @dont_decode: whether to skip decoding entirely * @log: write a decoding log @@ -86,6 +88,7 @@ struct itrace_synth_opts { bool transactions; bool ptwrites; bool pwr_events; + bool other_events; bool errors; bool dont_decode; bool log;