Date: Sun, 19 Jan 2014 13:50:17 +0200 From: Andriy Gapon <avg@FreeBSD.org> To: Sergey Kandaurov <pluknet@FreeBSD.org>, src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, svn-src-stable@FreeBSD.org, svn-src-stable-9@FreeBSD.org Subject: Re: svn commit: r260862 - stable/9/sys/sys Message-ID: <52DBBBF9.7050108@FreeBSD.org> In-Reply-To: <201401182121.s0ILLjkW048120@svn.freebsd.org> References: <201401182121.s0ILLjkW048120@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
on 18/01/2014 23:21 Sergey Kandaurov said the following: > Author: pluknet > Date: Sat Jan 18 21:21:44 2014 > New Revision: 260862 > URL: http://svnweb.freebsd.org/changeset/base/260862 > > Log: > MFC r250816: > > Protect SDT_PROBE() with do { } while (0) loop. Thanks a lot! > Modified: > stable/9/sys/sys/sdt.h > Directory Properties: > stable/9/sys/ (props changed) > stable/9/sys/sys/ (props changed) > > Modified: stable/9/sys/sys/sdt.h > ============================================================================== > --- stable/9/sys/sys/sdt.h Sat Jan 18 20:54:55 2014 (r260861) > +++ stable/9/sys/sys/sdt.h Sat Jan 18 21:21:44 2014 (r260862) > @@ -136,11 +136,12 @@ SET_DECLARE(sdt_argtypes_set, struct sdt > #define SDT_PROBE_DECLARE(prov, mod, func, name) \ > extern struct sdt_probe sdt_##prov##_##mod##_##func##_##name[1] > > -#define SDT_PROBE(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4) \ > +#define SDT_PROBE(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4) do { \ > if (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) > + (uintptr_t) arg3, (uintptr_t) arg4); \ > +} while (0) > > #define SDT_PROBE_ARGTYPE(prov, mod, func, name, num, type) \ > static struct sdt_argtype sdt_##prov##_##mod##_##func##_##name##num[1] \ > -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52DBBBF9.7050108>