Lines Matching refs:term

320 	struct parse_events_term *term;  in __perf_pmu__new_alias()  local
367 list_for_each_entry(term, &alias->terms, list) { in __perf_pmu__new_alias()
371 if (term->type_val == PARSE_EVENTS__TERM_TYPE_NUM) in __perf_pmu__new_alias()
373 "%s=%#x", term->config, term->val.num); in __perf_pmu__new_alias()
374 else if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) in __perf_pmu__new_alias()
376 "%s=%s", term->config, term->val.str); in __perf_pmu__new_alias()
519 struct parse_events_term *term, *cloned; in pmu_alias_terms() local
523 list_for_each_entry(term, &alias->terms, list) { in pmu_alias_terms()
524 ret = parse_events_term__clone(&cloned, term); in pmu_alias_terms()
1176 static int pmu_resolve_param_term(struct parse_events_term *term, in pmu_resolve_param_term() argument
1184 t->config && !strcmp(t->config, term->config)) { in pmu_resolve_param_term()
1192 printf("Required parameter '%s' not specified\n", term->config); in pmu_resolve_param_term()
1226 struct parse_events_term *term, in pmu_config_term() argument
1238 if (term->used) in pmu_config_term()
1245 if (parse_events__is_hardcoded_term(term)) in pmu_config_term()
1248 format = pmu_find_format(formats, term->config); in pmu_config_term()
1256 term->config, pmu_name) < 0) in pmu_config_term()
1260 parse_events_error__handle(err, term->err_term, in pmu_config_term()
1289 if (term->type_val == PARSE_EVENTS__TERM_TYPE_NUM) { in pmu_config_term()
1290 if (term->no_value && in pmu_config_term()
1293 parse_events_error__handle(err, term->err_val, in pmu_config_term()
1300 val = term->val.num; in pmu_config_term()
1301 } else if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) { in pmu_config_term()
1302 if (strcmp(term->val.str, "?")) { in pmu_config_term()
1305 term->config, term->val.str); in pmu_config_term()
1308 parse_events_error__handle(err, term->err_val, in pmu_config_term()
1315 if (pmu_resolve_param_term(term, head_terms, &val)) in pmu_config_term()
1325 parse_events_error__handle(err, term->err_val, in pmu_config_term()
1349 struct parse_events_term *term; in perf_pmu__config_terms() local
1351 list_for_each_entry(term, head_terms, list) { in perf_pmu__config_terms()
1352 if (pmu_config_term(pmu_name, formats, attr, term, head_terms, in perf_pmu__config_terms()
1377 struct parse_events_term *term) in pmu_find_alias() argument
1382 if (parse_events__is_hardcoded_term(term)) in pmu_find_alias()
1385 if (term->type_val == PARSE_EVENTS__TERM_TYPE_NUM) { in pmu_find_alias()
1386 if (term->val.num != 1) in pmu_find_alias()
1388 if (pmu_find_format(&pmu->format, term->config)) in pmu_find_alias()
1390 name = term->config; in pmu_find_alias()
1391 } else if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) { in pmu_find_alias()
1392 if (strcasecmp(term->config, "event")) in pmu_find_alias()
1394 name = term->val.str; in pmu_find_alias()
1439 struct parse_events_term *term, *h; in perf_pmu__check_alias() local
1455 list_for_each_entry_safe(term, h, head_terms, list) { in perf_pmu__check_alias()
1456 alias = pmu_find_alias(pmu, term); in perf_pmu__check_alias()
1459 ret = pmu_alias_terms(alias, &term->list); in perf_pmu__check_alias()
1472 list_del_init(&term->list); in perf_pmu__check_alias()
1473 parse_events_term__delete(term); in perf_pmu__check_alias()
1540 struct parse_events_term *term; in format_alias() local
1543 list_for_each_entry(term, &alias->terms, list) { in format_alias()
1544 if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) in format_alias()
1546 ",%s=%s", term->config, in format_alias()
1547 term->val.str); in format_alias()