aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ring_buffer.h
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2009-02-28 08:29:44 +0100
committerVegard Nossum <vegard.nossum@gmail.com>2009-06-15 15:49:37 +0200
commit1744a21d57d9c60136461adb6afa85e51b3e94d9 (patch)
tree62fdc4342e21835dc7fd8572b2ed1628324a0c12 /include/linux/ring_buffer.h
parentnet: annotate struct sock bitfield (diff)
downloadwireguard-linux-1744a21d57d9c60136461adb6afa85e51b3e94d9.tar.xz
wireguard-linux-1744a21d57d9c60136461adb6afa85e51b3e94d9.zip
trace: annotate bitfields in struct ring_buffer_event
This gets rid of a heap of false-positive warnings from the tracer code due to the use of bitfields. [rebased for mainline inclusion] Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Diffstat (limited to 'include/linux/ring_buffer.h')
-rw-r--r--include/linux/ring_buffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h
index 8670f1575fe1..29f8599e6bea 100644
--- a/include/linux/ring_buffer.h
+++ b/include/linux/ring_buffer.h
@@ -1,6 +1,7 @@
#ifndef _LINUX_RING_BUFFER_H
#define _LINUX_RING_BUFFER_H
+#include <linux/kmemcheck.h>
#include <linux/mm.h>
#include <linux/seq_file.h>
@@ -11,7 +12,10 @@ struct ring_buffer_iter;
* Don't refer to this struct directly, use functions below.
*/
struct ring_buffer_event {
+ kmemcheck_bitfield_begin(bitfield);
u32 type_len:5, time_delta:27;
+ kmemcheck_bitfield_end(bitfield);
+
u32 array[];
};