From c145b9cb053a1275865302d23fb3072143534fc8 Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 9 Jul 2009 15:16:57 -0500 Subject: 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. --- runtime/autoconf-ring_buffer-flags.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 runtime/autoconf-ring_buffer-flags.c (limited to 'runtime/autoconf-ring_buffer-flags.c') 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 + +void ___autoconf_func(void) +{ + (void)ring_buffer_lock_reserve(NULL, 0, 0); +} -- cgit