diff options
author | Peter Zijlstra <peterz@infradead.org> | 2016-01-08 11:21:40 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-01-21 20:54:19 +0300 |
commit | 7e41d17753e6e0da55d343997454dd4fbe8d28a8 (patch) | |
tree | 1fb4b3d63f54aff3f54dd008f111ba0631e52a1e /tools/perf/scripts/python/stackcollapse.py | |
parent | c994d6136738fd8b24a79f5ad8df40a6a79e2cf7 (diff) | |
download | linux-7e41d17753e6e0da55d343997454dd4fbe8d28a8.tar.xz |
perf: Fix cgroup event scheduling
There appears to be a problem in __perf_event_task_sched_in() wrt
cgroup event scheduling.
The normal event scheduling order is:
CPU pinned
Task pinned
CPU flexible
Task flexible
And since perf_cgroup_sched*() only schedules the cpu context, we must
call this _before_ adding the task events.
Note: double check what happens on the ctx switch optimization where
the task ctx isn't scheduled.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions