diff options
author | David Smith <dsmith@redhat.com> | 2009-07-09 15:16:57 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-07-09 15:16:57 -0500 |
commit | c145b9cb053a1275865302d23fb3072143534fc8 (patch) | |
tree | 24e2d8c1de5f5ef96a5e059f47632c5d93988370 /buildrun.cxx | |
parent | fd6fef3d049555f7af24ba94fbcf42a846390dd1 (diff) | |
download | systemtap-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 'buildrun.cxx')
-rw-r--r-- | buildrun.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buildrun.cxx b/buildrun.cxx index 54aa5d4f..ccf1ca15 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -171,6 +171,7 @@ compile_pass (systemtap_session& s) "STAPCONF_KERNEL_STACKTRACE", NULL); output_autoconf(s, o, "autoconf-asm-syscall.c", "STAPCONF_ASM_SYSCALL_H", NULL); + output_autoconf(s, o, "autoconf-ring_buffer-flags.c", "STAPCONF_RING_BUFFER_FLAGS", NULL); o << module_cflags << " += -include $(STAPCONF_HEADER)" << endl; |