30static inline const char *dtrace_get_executed_filename(
void)
35 ex =
ex->prev_execute_data;
58 const char *
scope, *filename, *funcname, *classname;
59 scope = filename = funcname = classname =
NULL;
62 if (DTRACE_EXECUTE_ENTRY_ENABLED() || DTRACE_EXECUTE_RETURN_ENABLED()
63 || DTRACE_FUNCTION_ENTRY_ENABLED() || DTRACE_FUNCTION_RETURN_ENABLED()) {
64 filename = dtrace_get_executed_filename();
68 if (DTRACE_FUNCTION_ENTRY_ENABLED() || DTRACE_FUNCTION_RETURN_ENABLED()) {
73 if (DTRACE_EXECUTE_ENTRY_ENABLED()) {
74 DTRACE_EXECUTE_ENTRY((
char *)filename, lineno);
77 if (DTRACE_FUNCTION_ENTRY_ENABLED() && funcname !=
NULL) {
78 DTRACE_FUNCTION_ENTRY((
char *)funcname, (
char *)filename, lineno, (
char *)classname, (
char *)
scope);
83 if (DTRACE_FUNCTION_RETURN_ENABLED() && funcname !=
NULL) {
84 DTRACE_FUNCTION_RETURN((
char *)funcname, (
char *)filename, lineno, (
char *)classname, (
char *)
scope);
87 if (DTRACE_EXECUTE_RETURN_ENABLED()) {
88 DTRACE_EXECUTE_RETURN((
char *)filename, lineno);
96 if (DTRACE_EXECUTE_ENTRY_ENABLED() || DTRACE_EXECUTE_RETURN_ENABLED()) {
97 filename = dtrace_get_executed_filename();
101 if (DTRACE_EXECUTE_ENTRY_ENABLED()) {
102 DTRACE_EXECUTE_ENTRY((
char *)filename, lineno);
107 if (DTRACE_EXECUTE_RETURN_ENABLED()) {
108 DTRACE_EXECUTE_RETURN((
char *)filename, lineno);
114 if (DTRACE_ERROR_ENABLED()) {
zend_op_array *(* compile_file)(zend_file_handle *file_handle, int type)
zend_string * opened_path
#define ZEND_USER_CODE(type)
struct _zend_op_array zend_op_array
ZEND_API void execute_internal(zend_execute_data *execute_data, zval *return_value)
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
ZEND_API const char * get_active_function_name(void)
ZEND_API uint32_t zend_get_executed_lineno(void)
ZEND_API const char * zend_get_executed_filename(void)
ZEND_API void execute_ex(zend_execute_data *execute_data)
ZEND_API const char * get_active_class_name(const char **space)
struct _zend_file_handle zend_file_handle
struct _zend_string zend_string
struct _zend_execute_data zend_execute_data