This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
mathieu.desnoyers wrote:
> [...]
> Cool! I tweaked it a bit and came up with the following. Comments ?
How about just:
#define SDT_USE_VARIADIC
#include <sys/sdt.h>
#define tracepoint(name, args...) \
do {
STAP_PROBEV(name, name, __VA_ARGS__); \
/* and whatever ust needs for itself */ \
} while (0)
- FChE
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |