Lines Matching full:term

662 	struct parse_events_term *term, *cloned;  in pmu_alias_terms()  local
666 list_for_each_entry(term, &alias->terms, list) { in pmu_alias_terms()
667 ret = parse_events_term__clone(&cloned, term); in pmu_alias_terms()
1085 * by passing a config term on the command line.
1096 struct evsel_config_term *term = evsel__get_config_term(evsel, CFG_CHG); in evsel__set_config_if_unset() local
1098 if (term) in evsel__set_config_if_unset()
1099 user_bits = term->val.cfg_chg; in evsel__set_config_if_unset()
1184 * Term is a string term, and might be a param-term. Try to look up it's value
1186 * - We have a term like "base-or-format-term=param-term",
1187 * - We need to find the value supplied for "param-term" (with param-term named
1188 * in a config string) later on in the term list.
1190 static int pmu_resolve_param_term(struct parse_events_term *term, in pmu_resolve_param_term() argument
1198 t->config && !strcmp(t->config, term->config)) { in pmu_resolve_param_term()
1206 printf("Required parameter '%s' not specified\n", term->config); in pmu_resolve_param_term()
1235 * user input data - term parameter.
1239 struct parse_events_term *term, in pmu_config_term() argument
1251 if (term->used) in pmu_config_term()
1258 if (parse_events__is_hardcoded_term(term)) in pmu_config_term()
1261 format = pmu_find_format(&pmu->format, term->config); in pmu_config_term()
1268 "unknown term '%s' for pmu '%s'", in pmu_config_term()
1269 term->config, pmu->name) < 0) in pmu_config_term()
1273 parse_events_error__handle(err, term->err_term, in pmu_config_term()
1302 * Either directly use a numeric term, or try to translate string terms in pmu_config_term()
1305 if (term->type_val == PARSE_EVENTS__TERM_TYPE_NUM) { in pmu_config_term()
1306 if (term->no_value && in pmu_config_term()
1309 parse_events_error__handle(err, term->err_val, in pmu_config_term()
1310 strdup("no value assigned for term"), in pmu_config_term()
1316 val = term->val.num; in pmu_config_term()
1317 } else if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) { in pmu_config_term()
1318 if (strcmp(term->val.str, "?")) { in pmu_config_term()
1321 term->config, term->val.str); in pmu_config_term()
1324 parse_events_error__handle(err, term->err_val, in pmu_config_term()
1331 if (pmu_resolve_param_term(term, head_terms, &val)) in pmu_config_term()
1341 parse_events_error__handle(err, term->err_val, in pmu_config_term()
1365 struct parse_events_term *term; in perf_pmu__config_terms() local
1367 list_for_each_entry(term, head_terms, list) { in perf_pmu__config_terms()
1368 if (pmu_config_term(pmu, attr, term, head_terms, zero, err)) in perf_pmu__config_terms()
1390 struct parse_events_term *term) in pmu_find_alias() argument
1395 if (parse_events__is_hardcoded_term(term)) in pmu_find_alias()
1398 if (term->type_val == PARSE_EVENTS__TERM_TYPE_NUM) { in pmu_find_alias()
1399 if (!term->no_value) in pmu_find_alias()
1401 if (pmu_find_format(&pmu->format, term->config)) in pmu_find_alias()
1403 name = term->config; in pmu_find_alias()
1405 } else if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) { in pmu_find_alias()
1406 if (strcasecmp(term->config, "event")) in pmu_find_alias()
1408 name = term->val.str; in pmu_find_alias()
1436 * Only one term in event definition can in check_info_data()
1478 struct parse_events_term *term, *h; in perf_pmu__check_alias() local
1492 list_for_each_entry_safe(term, h, head_terms, list) { in perf_pmu__check_alias()
1493 alias = pmu_find_alias(pmu, term); in perf_pmu__check_alias()
1496 ret = pmu_alias_terms(alias, &term->list); in perf_pmu__check_alias()
1498 parse_events_error__handle(err, term->err_term, in perf_pmu__check_alias()
1504 ret = check_info_data(pmu, alias, info, err, term->err_term); in perf_pmu__check_alias()
1511 list_del_init(&term->list); in perf_pmu__check_alias()
1512 parse_events_term__delete(term); in perf_pmu__check_alias()
1631 struct parse_events_term *term; in format_alias() local
1637 list_for_each_entry(term, &alias->terms, list) { in format_alias()
1638 if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) in format_alias()
1640 ",%s=%s", term->config, in format_alias()
1641 term->val.str); in format_alias()