3 * Copyright (C) 2008, by Larry Wall and others
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
8 * Provides macros that wrap the various DTrace probes we use. We add
9 * an extra level of wrapping to encapsulate the _ENABLED tests.
12 #if defined(USE_DTRACE) && defined(PERL_CORE)
14 # include "perldtrace.h"
16 # define ENTRY_PROBE(func, file, line) \
17 if (PERL_SUB_ENTRY_ENABLED()) { \
18 PERL_SUB_ENTRY(func, file, line); \
21 # define RETURN_PROBE(func, file, line) \
22 if (PERL_SUB_RETURN_ENABLED()) { \
23 PERL_SUB_RETURN(func, file, line); \
29 # define ENTRY_PROBE(func, file, line)
30 # define RETURN_PROBE(func, file, line)
36 * c-indentation-style: bsd
41 * ex: set ts=8 sts=4 sw=4 noet: