Lines Matching refs:handler
103 PyObject *handler; in get_handler() local
105 handler = PyDict_GetItemString(main_dict, handler_name); in get_handler()
106 if (handler && !PyCallable_Check(handler)) in get_handler()
108 return handler; in get_handler()
111 static void call_object(PyObject *handler, PyObject *args, const char *die_msg) in call_object() argument
115 retval = PyObject_CallObject(handler, args); in call_object()
123 PyObject *handler; in try_call_object() local
125 handler = get_handler(handler_name); in try_call_object()
126 if (handler) in try_call_object()
127 call_object(handler, args, handler_name); in try_call_object()
388 PyObject *handler, *context, *t, *obj, *callchain; in python_process_tracepoint() local
414 handler = get_handler(handler_name); in python_process_tracepoint()
415 if (!handler) { in python_process_tracepoint()
434 if (handler) { in python_process_tracepoint()
461 if (handler) in python_process_tracepoint()
468 if (!handler) in python_process_tracepoint()
474 if (handler) { in python_process_tracepoint()
475 call_object(handler, t, handler_name); in python_process_tracepoint()
771 PyObject *handler, *t, *dict, *callchain, *dict_sample; in python_process_general_event() local
793 handler = get_handler(handler_name); in python_process_general_event()
794 if (!handler) in python_process_general_event()
836 call_object(handler, t, handler_name); in python_process_general_event()