diff options
author | Peter Zijlstra <[email protected]> | 2016-01-08 10:45:11 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-01-21 18:54:22 +0100 |
commit | aee7dbc45f8aa976913de9b352fa6da816f1f3cd (patch) | |
tree | 0d7ebb18fa8e90c77bb860b9320f1b83c2108d52 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 8833d0e286c12fd4456089a7a553faf4921e4b08 (diff) |
perf: Simplify/fix perf_event_enable() event scheduling
Like perf_enable_on_exec(), perf_event_enable() event scheduling has problems
respecting the context hierarchy when trying to schedule events (for
example, it will try and add a pinned event without first removing
existing flexible events).
So simplify it by using the new ctx_resched() call which will DTRT.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions