Re: [PATCH] perf/core: make sure group events are for the same cpu

2017-06-20 Thread zhouchengming
On 2017/6/20 21:08, Alexander Shishkin wrote: Zhou Chengming 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_eve

Re: [PATCH] perf/core: make sure group events are for the same cpu

2017-06-20 Thread Alexander Shishkin
Zhou Chengming 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? Regards, -- Alex

[PATCH] perf/core: make sure group events are for the same cpu

2017-06-17 Thread Zhou Chengming
The else branch are broken for taskctx: two events can on the same taskctx, but on different cpu. This patch fix it, we don't need to check move_group. We first make sure we're on the same task, or both per-cpu events, and then make sure we're events for the same cpu. Signed-off-by: Zhou Chengming