diff options
author | David Smith <dsmith@redhat.com> | 2009-05-12 13:38:48 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-05-12 13:38:48 -0500 |
commit | dd9a3bcbef65bde65491d959e9458bc641924811 (patch) | |
tree | 56b2df83734947e903b4fb5daa009df98d9a6cdd /runtime/print_new.c | |
parent | 945563a795f312551157b69542ed1bc3323203c7 (diff) | |
download | systemtap-steved-dd9a3bcbef65bde65491d959e9458bc641924811.tar.gz systemtap-steved-dd9a3bcbef65bde65491d959e9458bc641924811.tar.xz systemtap-steved-dd9a3bcbef65bde65491d959e9458bc641924811.zip |
Start at supporting the original transport (STP_TRANSPORT_VERSION=1).
* runtime/print.c: Only use print_new.c.
* runtime/print_new.c (stp_print_flush): Add STP_TRANSPORT_VERSION 1 support.
* runtime/transport/transport.c: Removed inclusion of procfs.c.
* runtime/transport/procfs.c (_stp_proc_read): Adapt to new interface.
(_stp_proc_write): Ditto.
* runtime/transport/relayfs.c: Ditto.
Diffstat (limited to 'runtime/print_new.c')
-rw-r--r-- | runtime/print_new.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/print_new.c b/runtime/print_new.c index b6187978..2d5a6e10 100644 --- a/runtime/print_new.c +++ b/runtime/print_new.c @@ -92,7 +92,15 @@ void EXPORT_FN(stp_print_flush)(_stp_pbuf *pb) } } #endif /* !NO_PERCPU_HEADERS */ + #else /* !STP_BULKMODE */ + +#if STP_TRANSPORT_VERSION == 1 + + if (unlikely(_stp_ctl_write(STP_REALTIME_DATA, pb->buf, len) <= 0)) + atomic_inc (&_stp_transport_failures); + +#else /* STP_TRANSPORT_VERSION != 1 */ { unsigned long flags; char *bufp = pb->buf; @@ -117,5 +125,6 @@ void EXPORT_FN(stp_print_flush)(_stp_pbuf *pb) } spin_unlock_irqrestore(&_stp_print_lock, flags); } +#endif /* STP_TRANSPORT_VERSION != 1 */ #endif /* !STP_BULKMODE */ } |