summaryrefslogtreecommitdiffstats
path: root/runtime/autoconf-ring_buffer-flags.c
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-07-09 15:16:57 -0500
committerDavid Smith <dsmith@redhat.com>2009-07-09 15:16:57 -0500
commitc145b9cb053a1275865302d23fb3072143534fc8 (patch)
tree24e2d8c1de5f5ef96a5e059f47632c5d93988370 /runtime/autoconf-ring_buffer-flags.c
parentfd6fef3d049555f7af24ba94fbcf42a846390dd1 (diff)
downloadsystemtap-steved-c145b9cb053a1275865302d23fb3072143534fc8.tar.gz
systemtap-steved-c145b9cb053a1275865302d23fb3072143534fc8.tar.xz
systemtap-steved-c145b9cb053a1275865302d23fb3072143534fc8.zip
Added timer data flushing and overwrite handling to the ring_buffer transport.
* buildrun.cxx (compile_pass): Checks for ring_buffer api change. * runtime/autoconf-ring_buffer-flags.c: New file. * runtime/transport/ring_buffer.c (tracing_wait_pipe): No longer schedules, just returns. The timer function will handle it later. (_stp_data_write_reserve): Handles ring_buffer api change. Added overwrite processing. If we're full, delete an event to make room. (_stp_data_write_commit): Handles ring_buffer api change. (__stp_relay_wakeup_timer): New function. (__stp_relay_timer_start): Ditto. (__stp_relay_timer_stop): Ditto. (_stp_transport_data_fs_start): Calls __stp_relay_timer_start(). (_stp_transport_data_fs_stop): Calls __stp_relay_timer_stop(). (_stp_transport_data_fs_overwrite): Sets overwrite flag.
Diffstat (limited to 'runtime/autoconf-ring_buffer-flags.c')
-rw-r--r--runtime/autoconf-ring_buffer-flags.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/autoconf-ring_buffer-flags.c b/runtime/autoconf-ring_buffer-flags.c
new file mode 100644
index 00000000..7d7b8df0
--- /dev/null
+++ b/runtime/autoconf-ring_buffer-flags.c
@@ -0,0 +1,6 @@
+#include <linux/ring_buffer.h>
+
+void ___autoconf_func(void)
+{
+ (void)ring_buffer_lock_reserve(NULL, 0, 0);
+}