Lines Matching refs:tables
108 struct tables {
126 static struct tables tables_global;
1136 struct tables *tables = container_of(dbe, struct tables, dbe);
1144 call_object(tables->evsel_handler, t, "evsel_table");
1154 struct tables *tables = container_of(dbe, struct tables, dbe);
1163 call_object(tables->machine_handler, t, "machine_table");
1173 struct tables *tables = container_of(dbe, struct tables, dbe);
1184 call_object(tables->thread_handler, t, "thread_table");
1194 struct tables *tables = container_of(dbe, struct tables, dbe);
1205 call_object(tables->comm_handler, t, "comm_table");
1215 struct tables *tables = container_of(dbe, struct tables, dbe);
1224 call_object(tables->comm_thread_handler, t, "comm_thread_table");
1234 struct tables *tables = container_of(dbe, struct tables, dbe);
1248 call_object(tables->dso_handler, t, "dso_table");
1258 struct tables *tables = container_of(dbe, struct tables, dbe);
1271 call_object(tables->symbol_handler, t, "symbol_table");
1281 struct tables *tables = container_of(dbe, struct tables, dbe);
1289 call_object(tables->branch_type_handler, t, "branch_type_table");
1299 struct tables *tables = container_of(dbe, struct tables, dbe);
1330 call_object(tables->sample_handler, t, "sample_table");
1337 struct tables *tables = container_of(dbe, struct tables, dbe);
1346 call_object(tables->synth_handler, t, "synth_data");
1354 struct tables *tables = container_of(dbe, struct tables, dbe);
1358 if (es->evsel->core.attr.type == PERF_TYPE_SYNTH && tables->synth_handler)
1366 struct tables *tables = container_of(dbe, struct tables, dbe);
1380 call_object(tables->call_path_handler, t, "call_path_table");
1390 struct tables *tables = container_of(dbe, struct tables, dbe);
1411 call_object(tables->call_return_handler, t, "call_return_table");
1424 struct tables *tables = container_of(dbe, struct tables, dbe);
1439 call_object(tables->context_switch_handler, t, "context_switch");
1496 struct tables *tables = &tables_global;
1506 if (tables->db_export_mode)
1507 db_export__sample(&tables->dbe, event, sample, evsel, al, addr_al);
1588 struct tables *tables = &tables_global;
1590 if (tables->db_export_mode)
1591 db_export__switch(&tables->dbe, event, sample, machine);
1777 tables->handler_name = get_handler(#table_name); \
1778 if (tables->handler_name) \
1779 tables->dbe.export_ ## name = python_export_ ## name; \
1785 static void set_table_handlers(struct tables *tables)
1795 memset(tables, 0, sizeof(struct tables));
1796 if (db_export__init(&tables->dbe))
1810 tables->dbe.crp = NULL;
1820 tables->dbe.crp =
1822 &tables->dbe);
1823 if (!tables->dbe.crp)
1828 tables->dbe.cpr = NULL;
1845 if (tables->dbe.crp)
1846 tables->dbe.cpr = tables->dbe.crp->cpr;
1848 tables->dbe.cpr = call_path_root__new();
1850 if (!tables->dbe.cpr)
1854 tables->db_export_mode = true;
1879 tables->synth_handler = get_handler("synth_data");
1904 struct tables *tables = &tables_global;
1960 set_table_handlers(tables);
1962 if (tables->db_export_mode) {
1963 err = db_export__branch_types(&tables->dbe);
1988 struct tables *tables = &tables_global;
1992 db_export__exit(&tables->dbe);