• Home
  • Raw
  • Download

Lines Matching refs:term

373 	struct parse_events_term *term, *cloned;  in pmu_alias_terms()  local
377 list_for_each_entry(term, &alias->terms, list) { in pmu_alias_terms()
378 ret = parse_events_term__clone(&cloned, term); in pmu_alias_terms()
704 static int pmu_resolve_param_term(struct parse_events_term *term, in pmu_resolve_param_term() argument
712 if (!strcmp(t->config, term->config)) { in pmu_resolve_param_term()
721 printf("Required parameter '%s' not specified\n", term->config); in pmu_resolve_param_term()
754 struct parse_events_term *term, in pmu_config_term() argument
766 if (term->used) in pmu_config_term()
773 if (parse_events__is_hardcoded_term(term)) in pmu_config_term()
776 format = pmu_find_format(formats, term->config); in pmu_config_term()
779 printf("Invalid event/parameter '%s'\n", term->config); in pmu_config_term()
783 err->idx = term->err_term; in pmu_config_term()
809 if (term->type_val == PARSE_EVENTS__TERM_TYPE_NUM) in pmu_config_term()
810 val = term->val.num; in pmu_config_term()
811 else if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) { in pmu_config_term()
812 if (strcmp(term->val.str, "?")) { in pmu_config_term()
815 term->config, term->val.str); in pmu_config_term()
818 err->idx = term->err_val; in pmu_config_term()
824 if (pmu_resolve_param_term(term, head_terms, &val)) in pmu_config_term()
832 err->idx = term->err_val; in pmu_config_term()
854 struct parse_events_term *term; in perf_pmu__config_terms() local
856 list_for_each_entry(term, head_terms, list) { in perf_pmu__config_terms()
857 if (pmu_config_term(formats, attr, term, head_terms, in perf_pmu__config_terms()
882 struct parse_events_term *term) in pmu_find_alias() argument
887 if (parse_events__is_hardcoded_term(term)) in pmu_find_alias()
890 if (term->type_val == PARSE_EVENTS__TERM_TYPE_NUM) { in pmu_find_alias()
891 if (term->val.num != 1) in pmu_find_alias()
893 if (pmu_find_format(&pmu->format, term->config)) in pmu_find_alias()
895 name = term->config; in pmu_find_alias()
896 } else if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) { in pmu_find_alias()
897 if (strcasecmp(term->config, "event")) in pmu_find_alias()
899 name = term->val.str; in pmu_find_alias()
944 struct parse_events_term *term, *h; in perf_pmu__check_alias() local
958 list_for_each_entry_safe(term, h, head_terms, list) { in perf_pmu__check_alias()
959 alias = pmu_find_alias(pmu, term); in perf_pmu__check_alias()
962 ret = pmu_alias_terms(alias, &term->list); in perf_pmu__check_alias()
973 list_del(&term->list); in perf_pmu__check_alias()
974 free(term); in perf_pmu__check_alias()
1030 struct parse_events_term *term; in format_alias() local
1033 list_for_each_entry(term, &alias->terms, list) { in format_alias()
1034 if (term->type_val == PARSE_EVENTS__TERM_TYPE_STR) in format_alias()
1036 ",%s=%s", term->config, in format_alias()
1037 term->val.str); in format_alias()