diff options
author | David Smith <dsmith@redhat.com> | 2009-03-09 10:06:20 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-03-09 10:06:20 -0500 |
commit | eb3101a40fe446cffab677a7d117f028bae9afba (patch) | |
tree | 154df4580d8e21d0dad45199637267e6f351e197 /runtime/alloc.c | |
parent | 176b56b261a711822f35e36ec5e2d5e0758770de (diff) | |
download | systemtap-steved-eb3101a40fe446cffab677a7d117f028bae9afba.tar.gz systemtap-steved-eb3101a40fe446cffab677a7d117f028bae9afba.tar.xz systemtap-steved-eb3101a40fe446cffab677a7d117f028bae9afba.zip |
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.
Diffstat (limited to 'runtime/alloc.c')
0 files changed, 0 insertions, 0 deletions