Date: Wed, 15 Jun 2016 08:34:36 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301922 - head/sys/sys Message-ID: <201606150834.u5F8Yac1070079@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606150834.u5F8Yac1070079>