diff options
author | fche <fche> | 2006-12-15 13:25:34 +0000 |
---|---|---|
committer | fche <fche> | 2006-12-15 13:25:34 +0000 |
commit | 16d5fd9f49ace9af5e030641a4c324ae72002cd6 (patch) | |
tree | 937bdbe028ff91f8dce0eaab0e4bd146448c2a0a /runtime/print.c | |
parent | cd5b28b2defe9f1bcd35cced16b0935b9dd7e349 (diff) | |
download | systemtap-steved-16d5fd9f49ace9af5e030641a4c324ae72002cd6.tar.gz systemtap-steved-16d5fd9f49ace9af5e030641a4c324ae72002cd6.tar.xz systemtap-steved-16d5fd9f49ace9af5e030641a4c324ae72002cd6.zip |
2006-12-15 Frank Ch. Eigler <fche@elastic.org>
* print.c (_stp_print_flush): Add a likely() marker to the hot path.
Diffstat (limited to 'runtime/print.c')
-rw-r--r-- | runtime/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/print.c b/runtime/print.c index ae220f28..eaea688d 100644 --- a/runtime/print.c +++ b/runtime/print.c @@ -76,7 +76,7 @@ void _stp_print_flush (void) _stp_pbuf *pb = per_cpu_ptr(Stp_pbuf, smp_processor_id()); /* check to see if there is anything in the buffer */ - if (pb->len == 0) + if (likely (pb->len == 0)) return; #ifdef STP_RELAYFS_MERGE |