From: zhouchengming <zhouchengming1@huawei.com>
To: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: <mingo@redhat.com>, <peterz@infradead.org>,
<linux-kernel@vger.kernel.org>, <acme@kernel.org>,
<guohanjun@huawei.com>
Subject: Re: [PATCH] perf/core: make sure group events are for the same cpu
Date: Wed, 21 Jun 2017 14:55:26 +0800 [thread overview]
Message-ID: <594A185E.4060709@huawei.com> (raw)
In-Reply-To: <874lvaztzw.fsf@ashishki-desk.ger.corp.intel.com>
On 2017/6/20 21:08, Alexander Shishkin wrote:
> Zhou Chengming<zhouchengming1@huawei.com> writes:
>
>> The else branch are broken for taskctx:
> This is not a good way to open a commit message.
>
>> two events can on the same taskctx, but on different cpu.
> How?
fd1 = perf_open_event(attr, pid, 0, -1, flags);
fd2 = perf_open_event(attr, pid, 1, fd1, flags);
fd1 will be the leader event, fd2 will be the sibling event in the group.
And they are for the same task, so they will be put on the same taskctx successfully
if !move_group.
Obviously it's wrong, we can't concurrently schedule them as a group, since they are
on different cpu.
Thanks.
>
> Regards,
> --
> Alex
>
> .
>
prev parent reply other threads:[~2017-06-21 6:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-17 7:42 [PATCH] perf/core: make sure group events are for the same cpu Zhou Chengming
2017-06-20 13:08 ` Alexander Shishkin
2017-06-21 6:55 ` zhouchengming [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=594A185E.4060709@huawei.com \
--to=zhouchengming1@huawei.com \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=guohanjun@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.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