diff options
author | leilei.lin <[email protected]> | 2018-03-06 17:36:37 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-03-12 15:28:51 +0100 |
commit | 33801b94741d6c3be9713c10aa627477216c21e2 (patch) | |
tree | b241236cf8773658ce499c85a483199675fb4f82 /tools/perf/util/trace-event-scripting.c | |
parent | 8d5bce0c37fa10f21dbdd6a6d8fcba85202fe24e (diff) |
perf/core: Fix installing cgroup events on CPU
There's two problems when installing cgroup events on CPUs: firstly
list_update_cgroup_event() only tries to set cpuctx->cgrp for the
first event, if that mismatches on @cgrp we'll not try again for later
additions.
Secondly, when we install a cgroup event into an active context, only
issue an event reprogram when the event matches the current cgroup
context. This avoids a pointless event reprogramming.
Signed-off-by: leilei.lin <[email protected]>
[ Improved the changelog and comments. ]
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions