From: Jiri Olsa <jolsa@redhat.com>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>,
Ingo Molnar <mingo@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Clark Williams <williams@redhat.com>,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
Adrian Hunter <adrian.hunter@intel.com>,
Song Liu <songliubraving@fb.com>, Wang Nan <wangnan0@huawei.com>
Subject: Re: [RFC PATCHSET v2] Implement --switch-output-event
Date: Thu, 30 Apr 2020 11:05:06 +0200 [thread overview]
Message-ID: <20200430090506.GE1681583@krava> (raw)
In-Reply-To: <20200429131106.27974-1-acme@kernel.org>
On Wed, Apr 29, 2020 at 10:10:58AM -0300, Arnaldo Carvalho de Melo wrote:
> Hi guys,
>
> Please consider reviewing, this addresses comments by Jiri in
> the V1.
small nit posted, but overall looks good
Acked-by: Jiri Olsa <jolsa@redhat.com>
jirka
>
> Again, the example provided is too simple, using 'perf probe' to
> put probes in specific places in some workload to then get any other
> event close to the time the trigger hits comes to mind as well, using
> the signal was just to reuse the pre-existing logic and keep the
> patchkit small.
>
> One other thing that occurred to me while testing is that this
> can be combined with 'perf report/perf script' --switch-off option:
>
> $ perf report -h --switch-off
>
> Usage: perf report [<options>]
>
> --switch-off <event>
> Stop considering events after the ocurrence of this event
>
> $
>
> To remove from consideration the events that end up being
> recorded in the ring buffer after the --switch-output-event but gets in
> the ring buffer because we process the --switch-output-event
> asynchronously.
>
> Its available at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/switch-output-event
>
> Best regards,
>
> - Arnaldo
>
>
> Arnaldo Carvalho de Melo (8):
> perf record: Move sb_evlist to 'struct record'
> perf top: Move sb_evlist to 'struct perf_top'
> perf bpf: Decouple creating the evlist from adding the SB event
> perf parse-events: Add parse_events_option() variant that creates evlist
> perf evlist: Allow reusing the side band thread for more purposes
> libsubcmd: Introduce OPT_CALLBACK_SET()
> perf record: Introduce --switch-output-event
> perf record: Move side band evlist setup to separate routine
>
> tools/lib/subcmd/parse-options.h | 2 +
> tools/perf/Documentation/perf-record.txt | 13 ++++
> tools/perf/builtin-record.c | 75 ++++++++++++++++++++----
> tools/perf/builtin-top.c | 20 +++++--
> tools/perf/util/bpf-event.c | 3 +-
> tools/perf/util/bpf-event.h | 7 +--
> tools/perf/util/evlist.c | 39 +++++++-----
> tools/perf/util/evlist.h | 3 +-
> tools/perf/util/parse-events.c | 23 ++++++++
> tools/perf/util/parse-events.h | 1 +
> tools/perf/util/top.h | 2 +-
> 11 files changed, 151 insertions(+), 37 deletions(-)
>
> --
> 2.21.1
>
prev parent reply other threads:[~2020-04-30 9:05 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-29 13:10 [RFC PATCHSET v2] Implement --switch-output-event Arnaldo Carvalho de Melo
2020-04-29 13:10 ` [PATCH 1/8] perf record: Move sb_evlist to 'struct record' Arnaldo Carvalho de Melo
2020-05-08 13:05 ` [tip: perf/core] " tip-bot2 for Arnaldo Carvalho de Melo
2020-04-29 13:11 ` [PATCH 2/8] perf top: Move sb_evlist to 'struct perf_top' Arnaldo Carvalho de Melo
2020-05-08 13:05 ` [tip: perf/core] " tip-bot2 for Arnaldo Carvalho de Melo
2020-04-29 13:11 ` [PATCH 3/8] perf bpf: Decouple creating the evlist from adding the SB event Arnaldo Carvalho de Melo
2020-04-30 9:04 ` Jiri Olsa
2020-04-30 13:39 ` Arnaldo Carvalho de Melo
2020-05-08 13:05 ` [tip: perf/core] " tip-bot2 for Arnaldo Carvalho de Melo
2020-04-29 13:11 ` [PATCH 4/8] perf parse-events: Add parse_events_option() variant that creates evlist Arnaldo Carvalho de Melo
2020-05-08 13:05 ` [tip: perf/core] " tip-bot2 for Arnaldo Carvalho de Melo
2020-04-29 13:11 ` [PATCH 5/8] perf evlist: Allow reusing the side band thread for more purposes Arnaldo Carvalho de Melo
2020-05-01 11:25 ` Jiri Olsa
2020-05-01 11:31 ` Arnaldo Melo
2020-05-08 13:05 ` [tip: perf/core] " tip-bot2 for Arnaldo Carvalho de Melo
2020-04-29 13:11 ` [PATCH 6/8] libsubcmd: Introduce OPT_CALLBACK_SET() Arnaldo Carvalho de Melo
2020-05-08 13:05 ` [tip: perf/core] " tip-bot2 for Arnaldo Carvalho de Melo
2020-04-29 13:11 ` [PATCH 7/8] perf record: Introduce --switch-output-event Arnaldo Carvalho de Melo
2020-04-29 17:25 ` Ian Rogers
2020-05-11 15:04 ` Arnaldo Carvalho de Melo
2020-05-08 13:05 ` [tip: perf/core] " tip-bot2 for Arnaldo Carvalho de Melo
2020-04-29 13:11 ` [PATCH 8/8] perf record: Move side band evlist setup to separate routine Arnaldo Carvalho de Melo
2020-05-08 13:05 ` [tip: perf/core] " tip-bot2 for Arnaldo Carvalho de Melo
2020-04-30 9:05 ` Jiri Olsa [this message]
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=20200430090506.GE1681583@krava \
--to=jolsa@redhat.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@kernel.org \
--cc=songliubraving@fb.com \
--cc=tglx@linutronix.de \
--cc=wangnan0@huawei.com \
--cc=williams@redhat.com \
/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