diff options
author | Robert Richter <robert.richter@amd.com> | 2009-10-08 21:17:44 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-10-09 15:32:05 -0400 |
commit | c0868934e536e0ff508f2d359d006b25abc4970d (patch) | |
tree | 54932dfb00ee6731a1d3421eba1a87ed025f72dd /kernel/futex.c | |
parent | 066b3aa8454bee3cdc665d86b5de812d8d0513b3 (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 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions