summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfche <fche>2006-12-15 13:25:34 +0000
committerfche <fche>2006-12-15 13:25:34 +0000
commit16d5fd9f49ace9af5e030641a4c324ae72002cd6 (patch)
tree937bdbe028ff91f8dce0eaab0e4bd146448c2a0a
parentcd5b28b2defe9f1bcd35cced16b0935b9dd7e349 (diff)
downloadsystemtap-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.
-rw-r--r--runtime/ChangeLog4
-rw-r--r--runtime/print.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 8c15d074..04cad62c 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-15 Frank Ch. Eigler <fche@elastic.org>
+
+ * print.c (_stp_print_flush): Add a likely() marker to the hot path.
+
2006-12-13 Frank Ch. Eigler <fche@elastic.org>
* regs.h (s390x REG_IP): Parenthesize for warning-free builds.
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