aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorJosh Hunt <[email protected]>2011-06-27 16:18:08 -0700
committerLinus Torvalds <[email protected]>2011-06-27 18:00:13 -0700
commitaa2c96d6f329e66cc59352b0f12e8f04e6a9593b (patch)
tree0d7db978da167df605b14d4880969b39caf5e0f4 /tools/perf/util/scripting-engines/trace-event-python.c
parent507c5f1224014f9956e604ee8703b3bbea7da4a4 (diff)
drivers/misc/lkdtm.c: fix race when crashpoint is hit multiple times before checking count
We observed the crash point count going negative in cases where the crash point is hit multiple times before the check of "count == 0" is done. Because of this we never call lkdtm_do_action(). This patch just adds a spinlock to protect count. Reported-by: Tapan Dhimant <[email protected]> Signed-off-by: Josh Hunt <[email protected]> Acked-by: Ankita Garg <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions