Lines Matching refs:tables

62 struct tables {  struct
78 static struct tables tables_global; argument
516 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_evsel() local
524 call_object(tables->evsel_handler, t, "evsel_table"); in python_export_evsel()
534 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_machine() local
543 call_object(tables->machine_handler, t, "machine_table"); in python_export_machine()
553 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_thread() local
564 call_object(tables->thread_handler, t, "thread_table"); in python_export_thread()
573 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_comm() local
581 call_object(tables->comm_handler, t, "comm_table"); in python_export_comm()
591 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_comm_thread() local
600 call_object(tables->comm_thread_handler, t, "comm_thread_table"); in python_export_comm_thread()
610 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_dso() local
624 call_object(tables->dso_handler, t, "dso_table"); in python_export_dso()
634 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_symbol() local
647 call_object(tables->symbol_handler, t, "symbol_table"); in python_export_symbol()
657 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_branch_type() local
665 call_object(tables->branch_type_handler, t, "branch_type_table"); in python_export_branch_type()
675 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_sample() local
702 call_object(tables->sample_handler, t, "sample_table"); in python_export_sample()
711 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_call_path() local
725 call_object(tables->call_path_handler, t, "call_path_table"); in python_export_call_path()
735 struct tables *tables = container_of(dbe, struct tables, dbe); in python_export_call_return() local
753 call_object(tables->call_return_handler, t, "call_return_table"); in python_export_call_return()
847 struct tables *tables = &tables_global; in python_process_event() local
855 if (tables->db_export_mode) in python_process_event()
856 db_export__sample(&tables->dbe, event, sample, evsel, al); in python_process_event()
885 tables->handler_name = get_handler(#table_name); \
886 if (tables->handler_name) \
887 tables->dbe.export_ ## name = python_export_ ## name; \
893 static void set_table_handlers(struct tables *tables) in set_table_handlers() argument
901 memset(tables, 0, sizeof(struct tables)); in set_table_handlers()
902 if (db_export__init(&tables->dbe)) in set_table_handlers()
915 tables->dbe.crp = NULL; in set_table_handlers()
925 tables->dbe.crp = in set_table_handlers()
927 &tables->dbe); in set_table_handlers()
928 if (!tables->dbe.crp) in set_table_handlers()
932 tables->db_export_mode = true; in set_table_handlers()
956 struct tables *tables = &tables_global; in python_start_script() local
995 set_table_handlers(tables); in python_start_script()
997 if (tables->db_export_mode) { in python_start_script()
998 err = db_export__branch_types(&tables->dbe); in python_start_script()
1013 struct tables *tables = &tables_global; in python_flush_script() local
1015 return db_export__flush(&tables->dbe); in python_flush_script()
1023 struct tables *tables = &tables_global; in python_stop_script() local
1027 db_export__exit(&tables->dbe); in python_stop_script()