From: Peter Zijlstra <peterz@infradead.org>
To: kan.liang@intel.com
Cc: ak@linux.intel.com, eranian@google.com, vincent.weaver@maine.edu,
tglx@linutronix.de, mingo@kernel.org, acme@redhat.com,
jolsa@redhat.com, alexander.shishkin@linux.intel.com,
ying.huang@linux.intel.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2 1/1] perf/core: don't find side-band event from all pmus
Date: Tue, 29 Mar 2016 14:06:09 +0200 [thread overview]
Message-ID: <20160329120609.GG3408@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <1458757477-3781-1-git-send-email-kan.liang@intel.com>
On Wed, Mar 23, 2016 at 11:24:37AM -0700, kan.liang@intel.com wrote:
> The V2 patch is mainly based on Peter's suggestion. But I didn't rename
> perf_event_aux to perf_event_sb. Because it looks there are many aux things
> in the codes, e.g. AUX area in ring buffer. I'm not sure if we need to change
> all aux to sb. We may do the rename later in separate patch.
Right.. no problem doing that in a separate patch.
> +static void perf_event_sb_mask(unsigned int sb_mask,
> + perf_event_aux_output_cb output,
> + void *data)
> +{
> + int sb;
> +
> + for (sb = 0; sb < sb_nr; sb++) {
> + if (!(sb_mask & (1 << sb)))
> + continue;
> + perf_event_sb_iterate(sb, output, data);
> + }
> +}
> @@ -5852,7 +5910,8 @@ static void perf_event_task(struct task_struct *task,
>
> perf_event_aux(perf_event_task_output,
> &task_event,
> - task_ctx);
> + task_ctx,
> + (1 << sb_task) | (1 << sb_mmap) | (1 << sb_comm));
> }
So one side-effect of this change is that the above event can be
delivered 3 times if you're 'lucky'.
Acme; does userspace care?
next prev parent reply other threads:[~2016-03-29 12:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 18:24 kan.liang
2016-03-29 12:06 ` Peter Zijlstra [this message]
2016-03-31 14:05 ` Liang, Kan
2016-03-31 14:25 ` acme
2016-03-31 14:44 ` Arnaldo Carvalho de Melo
2016-03-31 14:56 ` Peter Zijlstra
2016-03-31 16:21 ` Peter Zijlstra
2016-03-31 16:22 ` Peter Zijlstra
2016-04-06 8:09 ` Peter Zijlstra
2016-04-06 14:25 ` Liang, Kan
2016-05-12 13:30 ` Liang, Kan
2016-05-12 14:00 ` Peter Zijlstra
2016-06-03 10:49 ` [tip:perf/core] perf/core: Optimize side-band event delivery tip-bot for Kan Liang
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=20160329120609.GG3408@twins.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=acme@redhat.com \
--cc=ak@linux.intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=eranian@google.com \
--cc=jolsa@redhat.com \
--cc=kan.liang@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
--cc=vincent.weaver@maine.edu \
--cc=ying.huang@linux.intel.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
Powered by JetHome