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.
256 const struct pmu_events_table table;
261 .table = { pmu_events__test_soc_sys },
265 .table = { 0 }
269 int pmu_events_table__for_each_event(const struct pmu_events_table *table, struct perf_pmu *pmu,
272 for (const struct pmu_event *pe = &table->entries[0]; pe->name; pe++) {
278 ret = fn(pe, table, data);
285 int pmu_events_table__find_event(const struct pmu_events_table *table,
291 for (const struct pmu_event *pe = &table->entries[0]; pe->name; pe++) {
296 return fn(pe, table, data);
301 size_t pmu_events_table__num_events(const struct pmu_events_table *table,
306 for (const struct pmu_event *pe = &table->entries[0]; pe->name; pe++) {
315 int pmu_metrics_table__for_each_metric(const struct pmu_metrics_table *table, pmu_metric_iter_fn fn,
318 for (const struct pmu_metric *pm = &table->entries[0]; pm->metric_expr; pm++) {
319 int ret = fn(pm, table, data);
329 const struct pmu_events_table *table = NULL;
347 table = &map->event_table;
352 return table;
357 const struct pmu_metrics_table *table = NULL;
375 table = &map->metric_table;
380 return table;
436 return &tables->table;
446 int ret = pmu_events_table__for_each_event(&tables->table, /*pmu=*/ NULL, fn, data);