diff options
author | David Smith <dsmith@redhat.com> | 2008-04-14 12:53:38 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2008-04-14 12:53:38 -0500 |
commit | ff82a2ca27f4fd0086a911656017e3b912778525 (patch) | |
tree | 17d6946329f0e52b2201bd1fcda52d2069a731fd /runtime/print.c | |
parent | 43807f81b6365864e047583eaebe5e85588c7b36 (diff) | |
parent | 775d51e5fb2f379fe4ae15dcbae8b17e4eab8805 (diff) | |
download | systemtap-steved-ff82a2ca27f4fd0086a911656017e3b912778525.tar.gz systemtap-steved-ff82a2ca27f4fd0086a911656017e3b912778525.tar.xz systemtap-steved-ff82a2ca27f4fd0086a911656017e3b912778525.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/print.c')
-rw-r--r-- | runtime/print.c | 10 |
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. */ |