summaryrefslogtreecommitdiffstats
path: root/runtime/print_new.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-09-17 15:20:07 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-09-17 15:20:07 -0400
commit7ef27e8ab9c7921350fd32af5c4b4d86205ca34b (patch)
tree89edbfd75c35ce2956a865885e0961047f6c61f1 /runtime/print_new.c
parent8844346125b135280bee9fee12cbdbceb750d898 (diff)
downloadsystemtap-steved-7ef27e8ab9c7921350fd32af5c4b4d86205ca34b.tar.gz
systemtap-steved-7ef27e8ab9c7921350fd32af5c4b4d86205ca34b.tar.xz
systemtap-steved-7ef27e8ab9c7921350fd32af5c4b4d86205ca34b.zip
PR 6487, 6504: robustify __stp_print_flush
Diffstat (limited to 'runtime/print_new.c')
-rw-r--r--runtime/print_new.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/print_new.c b/runtime/print_new.c
index 07af2e33..4136ecbe 100644
--- a/runtime/print_new.c
+++ b/runtime/print_new.c
@@ -34,13 +34,13 @@ void EXPORT_FN(stp_print_flush) (_stp_pbuf *pb)
#ifdef STP_BULKMODE
{
#ifdef NO_PERCPU_HEADERS
- void *buf = relay_reserve(_stp_utt->rchan, len);
+ void *buf = utt_reserve(_stp_utt, len);
if (likely(buf))
memcpy(buf, pb->buf, len);
else
atomic_inc (&_stp_transport_failures);
#else
- void *buf = relay_reserve(_stp_utt->rchan,
+ void *buf = utt_reserve(_stp_utt,
sizeof(struct _stp_trace) + len);
if (likely(buf)) {
struct _stp_trace t = { .sequence = _stp_seq_inc(),
@@ -56,7 +56,7 @@ void EXPORT_FN(stp_print_flush) (_stp_pbuf *pb)
void *buf;
unsigned long flags;
spin_lock_irqsave(&_stp_print_lock, flags);
- buf = relay_reserve(_stp_utt->rchan, len);
+ buf = utt_reserve(_stp_utt, len);
if (likely(buf))
memcpy(buf, pb->buf, len);
else