summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2014-04-23 12:22:54 +0200
committerThomas Gleixner <tglx@linutronix.de>2014-05-19 21:52:59 +0900
commit643fd0b9f5dc40fedbfbb908ebe6f1169284f7d8 (patch)
tree95fd3369f0110536c8365e086f7254f4e92d69ec /tools/perf/util/scripting-engines/trace-event-python.c
parent12665b35b0b48c9583ee1b8f0a403dc708fb4a92 (diff)
perf: Fix perf_event_open(.flags) test
Vince noticed that we test the (unsigned long) flags field against an (unsigned int) constant. This would allow setting the high bits on 64bit platforms and not get an error. There is nothing that uses the high bits, so it should be entirely harmless, but we don't want userspace to accidentally set them anyway, so fix the constants. Cc: Ingo Molnar <mingo@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Reported-by: Vince Weaver <vincent.weaver@maine.edu> Tested-by: Vince Weaver <vincent.weaver@maine.edu> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20140423102254.GL11096@twins.programming.kicks-ass.net Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions