Created
June 8, 2012 00:35
-
-
Save msabramo/2892643 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Generated by dtrace(1M). | |
| */ | |
| #ifndef _PYDTRACE_H | |
| #define _PYDTRACE_H | |
| #include <unistd.h> | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| #if _DTRACE_VERSION | |
| #define PYTHON_FUNCTION_ENTRY(arg0, arg1, arg2) \ | |
| __dtrace_python___function__entry(arg0, arg1, arg2) | |
| #define PYTHON_FUNCTION_ENTRY_ENABLED() \ | |
| __dtraceenabled_python___function__entry() | |
| #define PYTHON_FUNCTION_RETURN(arg0, arg1, arg2) \ | |
| __dtrace_python___function__return(arg0, arg1, arg2) | |
| #define PYTHON_FUNCTION_RETURN_ENABLED() \ | |
| __dtraceenabled_python___function__return() | |
| #define PYTHON_GC_DONE(arg0) \ | |
| __dtrace_python___gc__done(arg0) | |
| #define PYTHON_GC_DONE_ENABLED() \ | |
| __dtraceenabled_python___gc__done() | |
| #define PYTHON_GC_START(arg0) \ | |
| __dtrace_python___gc__start(arg0) | |
| #define PYTHON_GC_START_ENABLED() \ | |
| __dtraceenabled_python___gc__start() | |
| #define PYTHON_INSTANCE_DELETE_DONE(arg0, arg1) \ | |
| __dtrace_python___instance__delete__done(arg0, arg1) | |
| #define PYTHON_INSTANCE_DELETE_DONE_ENABLED() \ | |
| __dtraceenabled_python___instance__delete__done() | |
| #define PYTHON_INSTANCE_DELETE_START(arg0, arg1) \ | |
| __dtrace_python___instance__delete__start(arg0, arg1) | |
| #define PYTHON_INSTANCE_DELETE_START_ENABLED() \ | |
| __dtraceenabled_python___instance__delete__start() | |
| #define PYTHON_INSTANCE_NEW_DONE(arg0, arg1) \ | |
| __dtrace_python___instance__new__done(arg0, arg1) | |
| #define PYTHON_INSTANCE_NEW_DONE_ENABLED() \ | |
| __dtraceenabled_python___instance__new__done() | |
| #define PYTHON_INSTANCE_NEW_START(arg0, arg1) \ | |
| __dtrace_python___instance__new__start(arg0, arg1) | |
| #define PYTHON_INSTANCE_NEW_START_ENABLED() \ | |
| __dtraceenabled_python___instance__new__start() | |
| #define PYTHON_LINE(arg0, arg1, arg2) \ | |
| __dtrace_python___line(arg0, arg1, arg2) | |
| #define PYTHON_LINE_ENABLED() \ | |
| __dtraceenabled_python___line() | |
| extern void __dtrace_python___function__entry(char *, char *, int); | |
| extern int __dtraceenabled_python___function__entry(void); | |
| extern void __dtrace_python___function__return(char *, char *, int); | |
| extern int __dtraceenabled_python___function__return(void); | |
| extern void __dtrace_python___gc__done(long); | |
| extern int __dtraceenabled_python___gc__done(void); | |
| extern void __dtrace_python___gc__start(int); | |
| extern int __dtraceenabled_python___gc__start(void); | |
| extern void __dtrace_python___instance__delete__done(char *, char *); | |
| extern int __dtraceenabled_python___instance__delete__done(void); | |
| extern void __dtrace_python___instance__delete__start(char *, char *); | |
| extern int __dtraceenabled_python___instance__delete__start(void); | |
| extern void __dtrace_python___instance__new__done(char *, char *); | |
| extern int __dtraceenabled_python___instance__new__done(void); | |
| extern void __dtrace_python___instance__new__start(char *, char *); | |
| extern int __dtraceenabled_python___instance__new__start(void); | |
| extern void __dtrace_python___line(char *, char *, int); | |
| extern int __dtraceenabled_python___line(void); | |
| #else | |
| #define PYTHON_FUNCTION_ENTRY(arg0, arg1, arg2) | |
| #define PYTHON_FUNCTION_ENTRY_ENABLED() (0) | |
| #define PYTHON_FUNCTION_RETURN(arg0, arg1, arg2) | |
| #define PYTHON_FUNCTION_RETURN_ENABLED() (0) | |
| #define PYTHON_GC_DONE(arg0) | |
| #define PYTHON_GC_DONE_ENABLED() (0) | |
| #define PYTHON_GC_START(arg0) | |
| #define PYTHON_GC_START_ENABLED() (0) | |
| #define PYTHON_INSTANCE_DELETE_DONE(arg0, arg1) | |
| #define PYTHON_INSTANCE_DELETE_DONE_ENABLED() (0) | |
| #define PYTHON_INSTANCE_DELETE_START(arg0, arg1) | |
| #define PYTHON_INSTANCE_DELETE_START_ENABLED() (0) | |
| #define PYTHON_INSTANCE_NEW_DONE(arg0, arg1) | |
| #define PYTHON_INSTANCE_NEW_DONE_ENABLED() (0) | |
| #define PYTHON_INSTANCE_NEW_START(arg0, arg1) | |
| #define PYTHON_INSTANCE_NEW_START_ENABLED() (0) | |
| #define PYTHON_LINE(arg0, arg1, arg2) | |
| #define PYTHON_LINE_ENABLED() (0) | |
| #endif | |
| #ifdef __cplusplus | |
| } | |
| #endif | |
| #endif /* _PYDTRACE_H */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment