diff options
| author | Ian Rogers <[email protected]> | 2019-06-01 08:27:22 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2019-06-24 17:30:04 +0000 |
| commit | fd7d55172d1e2e501e6da0a5c1de25f06612dc2e (patch) | |
| tree | 4521b1d53d01c694a8f7b20254ff893b49b8a151 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | perf/x86/rapl: Get quirk state from new probe framework (diff) | |
| download | kernel-fd7d55172d1e2e501e6da0a5c1de25f06612dc2e.tar.gz kernel-fd7d55172d1e2e501e6da0a5c1de25f06612dc2e.zip | |
perf/cgroups: Don't rotate events for cgroups unnecessarily
Currently perf_rotate_context assumes that if the context's nr_events !=
nr_active a rotation is necessary for perf event multiplexing. With
cgroups, nr_events is the total count of events for all cgroups and
nr_active will not include events in a cgroup other than the current
task's. This makes rotation appear necessary for cgroups when it is not.
Add a perf_event_context flag that is set when rotation is necessary.
Clear the flag during sched_out and set it when a flexible sched_in
fails due to resources.
Signed-off-by: Ian Rogers <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[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]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions
