/** * enum metric_event_groups - How events within a pmu_metric should be grouped.
*/ enum metric_event_groups { /** * @MetricGroupEvents: Default, group events within the metric.
*/
MetricGroupEvents = 0, /** * @MetricNoGroupEvents: Don't group events for the metric.
*/
MetricNoGroupEvents = 1, /** * @MetricNoGroupEventsNmi: * Don't group events for the metric if the NMI watchdog is enabled.
*/
MetricNoGroupEventsNmi = 2, /** * @MetricNoGroupEventsSmt: * Don't group events for the metric if SMT is enabled.
*/
MetricNoGroupEventsSmt = 3, /** * @MetricNoGroupEventsThresholdAndNmi: * Don't group events for the metric thresholds and if the NMI watchdog * is enabled.
*/
MetricNoGroupEventsThresholdAndNmi = 4,
}; /* * Describe each PMU event. Each CPU has a table of PMU events.
*/ struct pmu_event { constchar *name; constchar *compat; constchar *event; constchar *desc; constchar *topic; constchar *long_desc; constchar *pmu; constchar *unit; constchar *retirement_latency_mean; constchar *retirement_latency_min; constchar *retirement_latency_max; bool perpkg; bool deprecated;
};
int pmu_events_table__for_each_event(conststruct pmu_events_table *table, struct perf_pmu *pmu,
pmu_event_iter_fn fn, void *data); /* * Search for a table and entry matching with pmu__name_wildcard_match or any * tables if pmu is NULL. Each matching event has fn called on it. 0 implies to * success/continue the search while non-zero means to terminate. The special * value PMU_EVENTS__NOT_FOUND is used to indicate no event was found in one of * the tables which doesn't terminate the search of all tables.
*/ int pmu_events_table__find_event(conststruct pmu_events_table *table, struct perf_pmu *pmu, constchar *name,
pmu_event_iter_fn fn, void *data);
size_t pmu_events_table__num_events(conststruct pmu_events_table *table, struct perf_pmu *pmu);
int pmu_metrics_table__for_each_metric(conststruct pmu_metrics_table *table, pmu_metric_iter_fn fn, void *data); /* * Search for a table and entry matching with pmu__name_wildcard_match or any * tables if pmu is NULL. Each matching metric has fn called on it. 0 implies to * success/continue the search while non-zero means to terminate. The special * value PMU_METRICS__NOT_FOUND is used to indicate no metric was found in one * of the tables which doesn't terminate the search of all tables.
*/ int pmu_metrics_table__find_metric(conststruct pmu_metrics_table *table, struct perf_pmu *pmu, constchar *metric,
pmu_metric_iter_fn fn, void *data);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.