Home
last modified time | relevance | path

Searched refs:parse_state (Results 1 – 5 of 5) sorted by relevance

/tools/perf/util/
Dparse-events.y21 void parse_events_error(YYLTYPE *loc, void *parse_state, void *scanner, char const *msg);
53 struct parse_events_state *parse_state) in inc_group_count() argument
57 parse_state->nr_groups++; in inc_group_count()
145 struct parse_events_state *parse_state = _parse_state; variable
148 parse_events_update_lists($1, &parse_state->list);
278 struct parse_events_state *parse_state = _parse_state; variable
279 struct parse_events_error *error = parse_state->error;
446 struct parse_events_state *parse_state = _parse_state; variable
447 struct parse_events_error *error = parse_state->error;
453 err = parse_events_add_cache(list, &parse_state->idx, $1, $3, $5, error, $6);
[all …]
Dparse-events.h169 int parse_events_load_bpf(struct parse_events_state *parse_state,
176 int parse_events_load_bpf_obj(struct parse_events_state *parse_state,
180 int parse_events_add_numeric(struct parse_events_state *parse_state,
185 int parse_events_add_tool(struct parse_events_state *parse_state,
194 int parse_events_add_pmu(struct parse_events_state *parse_state,
203 int parse_events_multi_pmu_add(struct parse_events_state *parse_state,
213 struct parse_events_state *parse_state);
216 void parse_events_evlist_error(struct parse_events_state *parse_state,
Dparse-events.c47 int parse_events_parse(void *parse_state, void *scanner);
678 struct parse_events_state *parse_state; member
688 struct parse_events_state *parse_state = param->parse_state; in add_bpf_event() local
705 err = parse_events_add_tracepoint(&new_evsels, &parse_state->idx, group, in add_bpf_event()
706 event, parse_state->error, in add_bpf_event()
731 int parse_events_load_bpf_obj(struct parse_events_state *parse_state, in parse_events_load_bpf_obj() argument
738 struct __add_bpf_event_param param = {parse_state, list, head_config}; in parse_events_load_bpf_obj()
779 parse_events__handle_error(parse_state->error, 0, in parse_events_load_bpf_obj()
785 parse_events_config_bpf(struct parse_events_state *parse_state, in parse_events_config_bpf() argument
799 parse_events__handle_error(parse_state->error, term->err_term, in parse_events_config_bpf()
[all …]
Dparse-events.l135 static int pmu_str_check(yyscan_t scanner, struct parse_events_state *parse_state) in pmu_str_check() argument
142 if (parse_state->fake_pmu) in pmu_str_check()
/tools/perf/tests/
Dbpf.c130 struct parse_events_state parse_state; in do_test() local
134 bzero(&parse_state, sizeof(parse_state)); in do_test()
135 parse_state.error = &parse_error; in do_test()
136 INIT_LIST_HEAD(&parse_state.list); in do_test()
138 err = parse_events_load_bpf_obj(&parse_state, &parse_state.list, obj, NULL); in do_test()
139 if (err || list_empty(&parse_state.list)) { in do_test()
161 perf_evlist__splice_list_tail(evlist, &parse_state.list); in do_test()
162 evlist->nr_groups = parse_state.nr_groups; in do_test()