summaryrefslogtreecommitdiff
path: root/drivers/oprofile/timer_int.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-10-09 03:17:44 +0200
committerRobert Richter <robert.richter@amd.com>2009-10-09 21:32:05 +0200
commitc0868934e536e0ff508f2d359d006b25abc4970d (patch)
tree54932dfb00ee6731a1d3421eba1a87ed025f72dd /drivers/oprofile/timer_int.c
parent066b3aa8454bee3cdc665d86b5de812d8d0513b3 (diff)
oprofile: warn on freeing event buffer too early
A race shouldn't happen since all workqueues or handlers are canceled or flushed before the event buffer is freed. A warning is triggered now if the buffer is freed too early. Also, this patch adds some comments about event buffer protection, reworks some code and adds code to clear buffer_pos during alloc and free of the event buffer. Cc: David Rientjes <rientjes@google.com> Cc: Stephane Eranian <eranian@google.com> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile/timer_int.c')
0 files changed, 0 insertions, 0 deletions