Lines Matching defs:list

164 	list_for_each_entry(term, &head_terms->terms, list)
189 * @config_terms: the list of terms that may contain a raw term.
196 list_for_each_entry(term, &config_terms->terms, list) {
226 __add_event(struct list_head *list, int *idx,
277 if (list)
278 list_add_tail(&evsel->core.node, list);
287 return __add_event(/*list=*/NULL, &idx, attr, /*init_attr=*/false, name,
293 static int add_event(struct list_head *list, int *idx,
298 return __add_event(list, idx, attr, /*init_attr*/true, name, metric_id,
423 struct list_head *list, struct perf_pmu *pmu,
427 int parse_events_add_cache(struct list_head *list, int *idx, const char *name,
449 ret = parse_events_add_pmu(parse_state, list, pmu,
481 if (__add_event(list, idx, &attr, /*init_attr*/true, config_name ?: name,
525 struct list_head *list,
547 list_add_tail(&evsel->core.node, list);
552 struct list_head *list,
586 ret = add_tracepoint(parse_state, list, sys_name, evt_ent->d_name,
601 struct list_head *list,
607 add_tracepoint_multi_event(parse_state, list, sys_name, evt_name,
609 add_tracepoint(parse_state, list, sys_name, evt_name,
614 struct list_head *list,
640 ret = add_tracepoint_event(parse_state, list, events_ent->d_name,
710 struct list_head *list,
748 return add_event(list, &parse_state->idx, &attr, name, /*mertic_id=*/NULL,
1123 list_for_each_entry(term, &head->terms, list)
1140 INIT_LIST_HEAD(&__t->list); \
1143 list_add_tail(&__t->list, head_terms)
1164 list_for_each_entry(term, &head_config->terms, list) {
1252 list_for_each_entry(term, &head_config->terms, list) {
1300 struct list_head *list,
1316 return add_tracepoint_multi_sys(parse_state, list, sys, event,
1319 return add_tracepoint_event(parse_state, list, sys, event,
1323 (void)list;
1334 struct list_head *list,
1362 ret = __add_event(list, &parse_state->idx, &attr, /*init_attr*/true, name,
1371 struct list_head *list,
1388 ret = __parse_events_add_numeric(parse_state, list, pmu,
1397 return __parse_events_add_numeric(parse_state, list, perf_pmus__find_by_type(type),
1405 list_for_each_entry(term, config_terms, list) {
1414 struct list_head *list, struct perf_pmu *pmu,
1449 evsel = __add_event(list, &parse_state->idx, &attr,
1519 evsel = __add_event(list, &parse_state->idx, &attr, /*init_attr=*/true,
1549 struct list_head *list = NULL;
1577 list_add_tail(&term->list, &parsed_terms.terms);
1580 list = malloc(sizeof(struct list_head));
1581 if (!list)
1584 INIT_LIST_HEAD(list);
1596 if (!parse_events_add_pmu(parse_state, list, pmu,
1609 if (!parse_events_add_pmu(parse_state, list, perf_pmus__fake_pmu(), &parsed_terms,
1624 *listp = list;
1626 free(list);
1648 /* Attempt to add to list assuming event_or_pmu is a PMU name. */
1697 void parse_events__set_leader(char *name, struct list_head *list)
1701 if (list_empty(list)) {
1702 WARN_ONCE(true, "WARNING: failed to set leader: empty list");
1706 leader = list_first_entry(list, struct evsel, core.node);
1707 __perf_evlist__set_leader(list, &leader->core);
1714 struct list_head *list,
1726 __evlist__for_each_entry(list, evsel) {
1818 struct list_head *list,
1821 return parse_events__modifier_list(parse_state, loc, list, mod, /*group=*/true);
1825 struct list_head *list,
1828 return parse_events__modifier_list(parse_state, loc, list, mod, /*group=*/false);
1831 int parse_events__set_default_name(struct list_head *list, char *name)
1836 __evlist__for_each_entry(list, evsel) {
1881 * parse event config string, return a list of event terms.
1938 * the list isn't yet sorted putting evsel's in the same group
2026 static int parse_events__sort_events_and_fix_groups(struct list_head *list)
2039 list_for_each_entry(pos, list, core.node) {
2042 ret = evsel__compute_group_pmu_name(pos, list);
2063 list_sort(&force_grouped_idx, list, evlist__cmp);
2070 list_for_each_entry(pos, list, core.node) {
2113 list_for_each_entry(pos, list, core.node) {
2128 .list = LIST_HEAD_INIT(parse_state.list),
2141 if (!ret && list_empty(&parse_state.list)) {
2146 ret2 = parse_events__sort_events_and_fix_groups(&parse_state.list);
2154 * Add list to the evlist even with errors to allow callers to clean up.
2156 evlist__splice_list_tail(evlist, &parse_state.list);
2187 /** @list: The list the error is part of. */
2188 struct list_head list;
2199 INIT_LIST_HEAD(&err->list);
2206 list_for_each_entry_safe(pos, tmp, &err->list, list) {
2209 list_del_init(&pos->list);
2231 list_add(&entry->list, &err->list);
2308 list_for_each_entry(pos, &err->list, list) {
2317 * In the list of errors err, do any of the error strings (str) contain the
2325 list_for_each_entry(pos, &err->list, list) {
2348 fprintf(stderr, "Run 'perf list' for a list of valid events\n");
2512 INIT_LIST_HEAD(&term->list);
2618 list_for_each_entry (term, &src->terms, list) {
2626 list_add_tail(&n->list, &dest->terms);
2640 list_for_each_entry_safe(term, h, &terms->terms, list) {
2641 list_del_init(&term->list);
2662 list_for_each_entry(term, &terms->terms, list) {