]> sourceware.org Git - systemtap.git/commit
First working version that actually produces output.
authorDavid Smith <dsmith@redhat.com>
Mon, 9 Mar 2009 15:06:20 +0000 (10:06 -0500)
committerDavid Smith <dsmith@redhat.com>
Mon, 9 Mar 2009 15:06:20 +0000 (10:06 -0500)
commiteb3101a40fe446cffab677a7d117f028bae9afba
tree154df4580d8e21d0dad45199637267e6f351e197
parent176b56b261a711822f35e36ec5e2d5e0758770de
First working version that actually produces output.
2009-03-09  David Smith  <dsmith@redhat.com>

* print_new.c (stp_print_flush): Calls _stp_data_write_reserve()
and _stp_data_write_commit().
* transport/ring_buffer.c (__stp_alloc_ring_buffer): Sets up a
default buffer size of STP_BUFFER_SIZE;
(trace_seq_reset): New function.
(peek_next_entry): New function.
(__find_next_entry): New function.
(find_next_entry_inc): New function.
(_stp_data_read_trace): Uses find_next_entry_inc() to get the next
entry, then calls _stp_entry_to_user() to copy it to the user's
buffer, then calls ring_buffer_consume() to consume it.
(_stp_data_write_reserve): New function.
(_stp_data_write_commit): New function.
* transport/transport.c (_stp_transport_close): Calls functions
that were ifdef'ed out.
* transport/transport.h (struct _stp_entry): Added _stp_entry
definition and _stp_data_write_reserve()/_stp_data_write_commit()
prototypes.
runtime/print_new.c
runtime/transport/ring_buffer.c
runtime/transport/transport.c
runtime/transport/transport.h
This page took 0.023876 seconds and 5 git commands to generate.