Lines Matching full:terms
63 /** @terms: Owned list of the original parsed parameters. */
64 struct parse_events_terms terms; member
415 parse_events_terms__exit(&newalias->terms); in perf_pmu_free_alias()
516 parse_events_terms__exit(&data->alias->terms); in update_alias()
517 ret = parse_events_terms(&data->alias->terms, pe->event, /*input=*/NULL); in update_alias()
557 parse_events_terms__init(&alias->terms); in perf_pmu__new_alias()
564 ret = parse_events_terms(&alias->terms, val, val_fd); in perf_pmu__new_alias()
719 static int pmu_alias_terms(struct perf_pmu_alias *alias, int err_loc, struct list_head *terms) in pmu_alias_terms() argument
725 list_for_each_entry(term, &alias->terms.terms, list) { in pmu_alias_terms()
733 * Weak terms don't override command line options, in pmu_alias_terms()
734 * which we don't want for implicit terms in aliases. in pmu_alias_terms()
738 list_add_tail(&cloned->list, &clone_terms.terms); in pmu_alias_terms()
740 list_splice_init(&clone_terms.terms, terms); in pmu_alias_terms()
1313 * in the remaining terms.
1324 list_for_each_entry(t, &head_terms->terms, list) { in pmu_resolve_param_term()
1349 /* sysfs exported terms */ in pmu_formats_string()
1383 * Hardcoded terms should be already in, so nothing in pmu_config_term()
1430 * Either directly use a numeric term, or try to translate string terms in pmu_config_term()
1490 struct parse_events_terms *terms, in perf_pmu__config_terms() argument
1495 list_for_each_entry(term, &terms->terms, list) { in perf_pmu__config_terms()
1496 if (pmu_config_term(pmu, attr, term, terms, zero, err)) in perf_pmu__config_terms()
1505 * 1) users input - specified in terms parameter
1514 /* Fake PMU doesn't have proper terms so nothing to configure in attr. */ in perf_pmu__config()
1604 * Find alias in the terms list and replace it with the terms
1626 /* Fake PMU doesn't rewrite terms. */ in perf_pmu__check_alias()
1630 list_for_each_entry_safe(term, h, &head_terms->terms, list) { in perf_pmu__check_alias()
1637 strdup("Failure to duplicate terms"), in perf_pmu__check_alias()
1720 static const char *const terms[] = { in perf_pmu__for_each_format() local
1750 _Static_assert(ARRAY_SIZE(terms) == __PARSE_EVENTS__TERM_TYPE_NR - 6, in perf_pmu__for_each_format()
1751 … "perf_pmu__for_each_format()'s terms must be kept in sync with enum parse_events__term_type"); in perf_pmu__for_each_format()
1761 for (size_t i = 0; i < ARRAY_SIZE(terms); i++) { in perf_pmu__for_each_format()
1767 ret = cb(state, terms[i], config, /*bits=*/NULL); in perf_pmu__for_each_format()
1832 list_for_each_entry(term, &alias->terms.terms, list) { in format_alias()
1895 parse_events_terms__to_strbuf(&event->terms, &sb); in perf_pmu__for_each_event()
2283 int ret = perf_pmu__config(pmu, &attr, &event->terms, NULL); in perf_pmu__name_from_config()