diff options
author | Robert Richter <[email protected]> | 2009-10-09 03:17:44 +0200 |
---|---|---|
committer | Robert Richter <[email protected]> | 2009-10-09 21:32:05 +0200 |
commit | c0868934e536e0ff508f2d359d006b25abc4970d (patch) | |
tree | 54932dfb00ee6731a1d3421eba1a87ed025f72dd /lib/string_helpers.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 <[email protected]>
Cc: Stephane Eranian <[email protected]>
Signed-off-by: Robert Richter <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions