Lines Matching defs:table
186 /* Struct used to make the PMU event table implementation opaque to callers. */
191 /* Struct used to make the PMU metric table implementation opaque to callers. */
197 * Map a CPU to its table of PMU events. The CPU is identified by the
212 * Global table mapping each known CPU for the architecture to its
213 * table of PMU events.
264 const struct pmu_events_table table;
269 .table = { pmu_events__test_soc_sys },
273 .table = { 0 }
277 int pmu_events_table__for_each_event(const struct pmu_events_table *table, struct perf_pmu *pmu,
280 for (const struct pmu_event *pe = &table->entries[0]; pe->name; pe++) {
286 ret = fn(pe, table, data);
293 int pmu_events_table__find_event(const struct pmu_events_table *table,
299 for (const struct pmu_event *pe = &table->entries[0]; pe->name; pe++) {
304 return fn(pe, table, data);
309 size_t pmu_events_table__num_events(const struct pmu_events_table *table,
314 for (const struct pmu_event *pe = &table->entries[0]; pe->name; pe++) {
323 int pmu_metrics_table__for_each_metric(const struct pmu_metrics_table *table, pmu_metric_iter_fn fn,
326 for (const struct pmu_metric *pm = &table->entries[0]; pm->metric_expr; pm++) {
327 int ret = fn(pm, table, data);
337 const struct pmu_events_table *table = NULL;
355 table = &map->event_table;
360 return table;
365 const struct pmu_metrics_table *table = NULL;
383 table = &map->metric_table;
388 return table;
444 return &tables->table;
454 int ret = pmu_events_table__for_each_event(&tables->table, /*pmu=*/ NULL, fn, data);