Lines Matching refs:handler
152 PyObject *handler; in get_handler() local
154 handler = PyDict_GetItemString(main_dict, handler_name); in get_handler()
155 if (handler && !PyCallable_Check(handler)) in get_handler()
157 return handler; in get_handler()
160 static void call_object(PyObject *handler, PyObject *args, const char *die_msg) in call_object() argument
164 retval = PyObject_CallObject(handler, args); in call_object()
172 PyObject *handler; in try_call_object() local
174 handler = get_handler(handler_name); in try_call_object()
175 if (handler) in try_call_object()
176 call_object(handler, args, handler_name); in try_call_object()
180 static int get_argument_count(PyObject *handler) in get_argument_count() argument
188 PyObject *code_obj = PyObject_GetAttrString(handler, in get_argument_count()
192 code_obj = PyObject_GetAttrString(handler, in get_argument_count()
950 PyObject *handler, *context, *t, *obj = NULL, *callchain; in python_process_tracepoint() local
979 handler = get_handler(handler_name); in python_process_tracepoint()
980 if (!handler) { in python_process_tracepoint()
981 handler = get_handler(default_handler_name); in python_process_tracepoint()
982 if (!handler) in python_process_tracepoint()
1058 if (get_argument_count(handler) == (int) n + 1) { in python_process_tracepoint()
1070 call_object(handler, t, handler_name); in python_process_tracepoint()
1072 call_object(handler, t, default_handler_name); in python_process_tracepoint()
1477 PyObject *handler, *t, *dict, *callchain; in python_process_general_event() local
1483 handler = get_handler(handler_name); in python_process_general_event()
1484 if (!handler) in python_process_general_event()
1503 call_object(handler, t, handler_name); in python_process_general_event()
1536 PyObject *handler, *t; in python_process_throttle() local
1542 handler = get_handler(handler_name); in python_process_throttle()
1543 if (!handler) in python_process_throttle()
1557 call_object(handler, t, handler_name); in python_process_throttle()
1570 PyObject *handler, *t; in python_do_process_switch() local
1572 handler = get_handler(handler_name); in python_do_process_switch()
1573 if (!handler) in python_do_process_switch()
1597 call_object(handler, t, handler_name); in python_do_process_switch()
1622 PyObject *handler, *t; in python_process_auxtrace_error() local
1624 handler = get_handler(handler_name); in python_process_auxtrace_error()
1625 if (!handler) in python_process_auxtrace_error()
1647 call_object(handler, t, handler_name); in python_process_auxtrace_error()
1669 PyObject *handler, *t; in process_stat() local
1680 handler = get_handler(handler_name); in process_stat()
1681 if (!handler) { in process_stat()
1697 call_object(handler, t, handler_name); in process_stat()
1722 PyObject *handler, *t; in python_process_stat_interval() local
1730 handler = get_handler(handler_name); in python_process_stat_interval()
1731 if (!handler) { in python_process_stat_interval()
1741 call_object(handler, t, handler_name); in python_process_stat_interval()