diff options
| author | Kan Liang <[email protected]> | 2016-05-03 07:26:06 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-06-03 07:40:16 +0000 |
| commit | ab7fdefba68f66c8523571c3b3a940635d781824 (patch) | |
| tree | 36c28f0292b06116e6ed4d3cdd35dfc58b173492 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | perf/core: Rename the perf_event_aux*() APIs to perf_event_sb*(), to separate... (diff) | |
| download | kernel-ab7fdefba68f66c8523571c3b3a940635d781824.tar.gz kernel-ab7fdefba68f66c8523571c3b3a940635d781824.zip | |
perf/core: Fix implicitly enable dynamic interrupt throttle
This patch fixes an issue which was introduced by commit:
91a612eea9a3 ("perf/core: Fix dynamic interrupt throttle")
... which commit unconditionally sets the perf_sample_allowed_ns value
to !0. But that could trigger a bug in the following corner case:
The user can disable the dynamic interrupt throttle mechanism by setting
perf_cpu_time_max_percent to 0. Then they change perf_event_max_sample_rate.
For this case, the mechanism will be enabled implicitly, because
perf_sample_allowed_ns becomes !0 - which is not what we want.
This patch only updates perf_sample_allowed_ns when the dynamic
interrupt throttle mechanism is enabled.
Signed-off-by: Kan Liang <[email protected]>
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: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[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/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
