From: Andi Kleen <andi@firstfloor.org>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>,
jolsa@kernel.org, linux-kernel@vger.kernel.org, mingo@kernel.org,
Andi Kleen <ak@linux.intel.com>
Subject: Re: [PATCH 2/2] perf, tools, list: Support matching by topic
Date: Wed, 19 Oct 2016 11:32:18 -0700 [thread overview]
Message-ID: <20161019183218.GU26852@two.firstfloor.org> (raw)
In-Reply-To: <20161019181315.GH25522@kernel.org>
> > diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c
> > index 1095a6dada66..c00b0eb343c0 100644
> > --- a/tools/perf/builtin-list.c
> > +++ b/tools/perf/builtin-list.c
> > @@ -67,9 +67,11 @@ int cmd_list(int argc, const char **argv, const char *prefix __maybe_unused)
> > print_symbol_events(NULL, PERF_TYPE_SOFTWARE,
> > event_symbols_sw, PERF_COUNT_SW_MAX, raw_dump);
> > else if (strcmp(argv[i], "cache") == 0 ||
> > - strcmp(argv[i], "hwcache") == 0)
> > + strcmp(argv[i], "hwcache") == 0) {
>
> This is changing existing behaviour, please remove it. A separate patch
> could either make it show both hwcache events and vendor cache events,
That's what the patch does: "show both hwcache and vendor cache events"
which is a reasonable default.
I can split it into a separate patch if makes you feel better.
>
> > print_hwcache_events(NULL, raw_dump);
> > - else if (strcmp(argv[i], "pmu") == 0)
> > + print_pmu_events(argv[i], raw_dump, !desc_flag,
> > + long_desc_flag, true);
> > + } else if (strcmp(argv[i], "pmu") == 0)
> > print_pmu_events(NULL, raw_dump, !desc_flag,
> > long_desc_flag, false);
>
> What is this here?
Only adding a } but diff displays it in a weird way.
-Andi
next prev parent reply other threads:[~2016-10-19 18:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 17:50 [PATCH 1/2] perf, tools, list: Make vendor event matching case insensitive Andi Kleen
2016-10-19 17:50 ` [PATCH 2/2] perf, tools, list: Support matching by topic Andi Kleen
2016-10-19 18:13 ` Arnaldo Carvalho de Melo
2016-10-19 18:32 ` Andi Kleen [this message]
2016-10-19 18:13 ` [PATCH 1/2] perf, tools, list: Make vendor event matching case insensitive Arnaldo Carvalho de Melo
2016-10-24 19:07 ` [tip:perf/core] perf " tip-bot for Andi Kleen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161019183218.GU26852@two.firstfloor.org \
--to=andi@firstfloor.org \
--cc=acme@kernel.org \
--cc=ak@linux.intel.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).