aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorKnut Petersen <[email protected]>2013-09-25 14:29:37 +0200
committerIngo Molnar <[email protected]>2013-10-04 10:06:07 +0200
commit723478c8a471403c53cf144999701f6e0c4bbd11 (patch)
treed89b59d4318eb5e37082f90880ac20b18f81a020 /tools/perf/util/scripting-engines/trace-event-python.c
parent354cc40e3b0981c38ba2ce2964954480e6c03c37 (diff)
perf: Enforce 1 as lower limit for perf_event_max_sample_rate
/proc/sys/kernel/perf_event_max_sample_rate will accept negative values as well as 0. Negative values are unreasonable, and 0 causes a divide by zero exception in perf_proc_update_handler. This patch enforces a lower limit of 1. Signed-off-by: Knut Petersen <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions