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()
387 PyObject *handler, *context, *t, *obj, *callchain; in python_process_tracepoint() local
413 handler = get_handler(handler_name); in python_process_tracepoint()
414 if (!handler) { in python_process_tracepoint()
433 if (handler) { in python_process_tracepoint()
460 if (handler) in python_process_tracepoint()
467 if (!handler) in python_process_tracepoint()
473 if (handler) { in python_process_tracepoint()
474 call_object(handler, t, handler_name); in python_process_tracepoint()
770 PyObject *handler, *t, *dict, *callchain, *dict_sample; in python_process_general_event() local
792 handler = get_handler(handler_name); in python_process_general_event()
793 if (!handler) in python_process_general_event()
835 call_object(handler, t, handler_name); in python_process_general_event()