summaryrefslogtreecommitdiffstats
path: root/runtime/print.c
diff options
context:
space:
mode:
authorwenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com>2008-04-13 22:50:18 -0400
committerwenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com>2008-04-13 22:50:18 -0400
commitbd10b81c06a0102ac10617da2f368fcc168fc15e (patch)
tree07c4878e3eaf77801d5104c2f6c498cfff9e3bbd /runtime/print.c
parentd58c66bfef5cfa7267ced03db11928fd5c78ba9c (diff)
parentf7e07777e033e580351dc6886ab7dbdddd9839fe (diff)
downloadsystemtap-steved-bd10b81c06a0102ac10617da2f368fcc168fc15e.tar.gz
systemtap-steved-bd10b81c06a0102ac10617da2f368fcc168fc15e.tar.xz
systemtap-steved-bd10b81c06a0102ac10617da2f368fcc168fc15e.zip
Merge branch 'master' of ssh://wenji@sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/print.c')
-rw-r--r--runtime/print.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/print.c b/runtime/print.c
index 0442ba09..4f99be7b 100644
--- a/runtime/print.c
+++ b/runtime/print.c
@@ -243,6 +243,16 @@ void _stp_print_char (const char c)
pb->len ++;
}
+/** Check whether the print buffer is full.
+ * @return non-zero if full
+ */
+
+static int _stp_pbuf_full (void)
+{
+ _stp_pbuf *pb = per_cpu_ptr(Stp_pbuf, smp_processor_id());
+ return (pb->len >= STP_BUFFER_SIZE);
+}
+
/* This function is used when printing maps or stats. */
/* Probably belongs elsewhere, but is here for now. */