aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorArun R Bharadwaj <[email protected]>2009-06-23 10:00:58 +0530
committerIngo Molnar <[email protected]>2009-06-23 10:49:33 +0200
commitbfdb4d9f0f611687d71cf6a460efc9e755f4a462 (patch)
treed5a2ef0ccaa4da93ccb4275d8da80221788b2e48 /tools/perf/util/trace-event-scripting.c
parentd888a4c76c51092993643f8992bf55b3c28da483 (diff)
timers: Fix timer_migration interface which accepts any number as input
Poornima Nayek reported: | Timer migration interface /proc/sys/kernel/timer_migration in | 2.6.30-git9 accepts any numerical value as input. | | Steps to reproduce: | 1. echo -6666666 > /proc/sys/kernel/timer_migration | 2. cat /proc/sys/kernel/timer_migration | -6666666 | | 1. echo 44444444444444444444444444444444444444444444444444444444444 > /proc/sys/kernel/timer_migration | 2. cat /proc/sys/kernel/timer_migration | -1357789412 | | Expected behavior: Should 'echo: write error: Invalid argument' while | setting any value other then 0 & 1 Restrict valid values to 0 and 1. Reported-by: Poornima Nayak <[email protected]> Tested-by: Poornima Nayak <[email protected]> Signed-off-by: Arun R Bharadwaj <[email protected]> Cc: poornima nayak <[email protected]> Cc: Arun Bharadwaj <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions