svn commit: r301922 - head/sys/sys

Mateusz Guzik mjg at FreeBSD.org
Wed Jun 15 08:34:37 UTC 2016


Author: mjg
Date: Wed Jun 15 08:34:36 2016
New Revision: 301922
URL: https://svnweb.freebsd.org/changeset/base/301922

Log:
  sdt: annotate the probe test as likely to fail
  
  This saves a jump in plenty of cases.
  
  Approved by:	re (kib)
  MFC after:	1 week

Modified:
  head/sys/sys/sdt.h

Modified: head/sys/sys/sdt.h
==============================================================================
--- head/sys/sys/sdt.h	Wed Jun 15 06:42:30 2016	(r301921)
+++ head/sys/sys/sdt.h	Wed Jun 15 08:34:36 2016	(r301922)
@@ -161,7 +161,7 @@ SET_DECLARE(sdt_argtypes_set, struct sdt
 	extern struct sdt_probe sdt_##prov##_##mod##_##func##_##name[1]
 
 #define SDT_PROBE(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4)	do {	\
-	if (sdt_##prov##_##mod##_##func##_##name->id)				\
+	if (__predict_false(sdt_##prov##_##mod##_##func##_##name->id))		\
 		(*sdt_probe_func)(sdt_##prov##_##mod##_##func##_##name->id,	\
 		    (uintptr_t) arg0, (uintptr_t) arg1, (uintptr_t) arg2,	\
 		    (uintptr_t) arg3, (uintptr_t) arg4);			\


More information about the svn-src-all mailing list