runtime/linux/autoconf-ring_buffer_lost_events.c
raw| 1 | /* Some kernels have place holder recording of dropped events in the |
| 2 | ring_buffer peek and consume calls. */ |
| 3 | #include <linux/types.h> |
| 4 | #include <linux/ring_buffer.h> |
| 5 | struct ring_buffer_event *foo (void); |
| 6 | struct ring_buffer_event *foo (void) |
| 7 | { |
| 8 | /* last field is not always there */ |
| 9 | return ring_buffer_peek(NULL, 1, NULL, NULL); |
| 10 | } |