mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Protect SDT_PROBE() with do { } while (0) loop.
This commit is contained in:
parent
6bdfdb2c5e
commit
838eb8639c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250816
@ -184,11 +184,12 @@ struct sdt_provider {
|
||||
#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] \
|
||||
|
Loading…
Reference in New Issue
Block a user