aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sdt.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2016-06-15 08:34:36 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2016-06-15 08:34:36 +0000
commit1201d0bc464c7a478957352ca3a271c19e75d3cd (patch)
tree0550a359cc6b2b6396f9e705a99036b3b3e2c740 /sys/sys/sdt.h
parentad7fb14f52f8ced56ad39ab9a5be1f9dce6978c8 (diff)
downloadsrc-1201d0bc464c7a478957352ca3a271c19e75d3cd.tar.gz
src-1201d0bc464c7a478957352ca3a271c19e75d3cd.zip
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
Notes
Notes: svn path=/head/; revision=301922
Diffstat (limited to 'sys/sys/sdt.h')
-rw-r--r--sys/sys/sdt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sdt.h b/sys/sys/sdt.h
index 5dd0b67af609..25423d764e3c 100644
--- a/sys/sys/sdt.h
+++ b/sys/sys/sdt.h
@@ -161,7 +161,7 @@ SET_DECLARE(sdt_argtypes_set, struct sdt_argtype);
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); \