Lines Matching refs:list

163 	list_for_each_entry(term, head_terms, list)
188 * @config_terms: the list of terms that may contain a raw term.
195 list_for_each_entry(term, config_terms, list) {
225 __add_event(struct list_head *list, int *idx,
276 if (list)
277 list_add_tail(&evsel->core.node, list);
286 return __add_event(/*list=*/NULL, &idx, attr, /*init_attr=*/false, name,
291 static int add_event(struct list_head *list, int *idx,
295 return __add_event(list, idx, attr, /*init_attr*/true, name, metric_id,
300 static int add_event_tool(struct list_head *list, int *idx,
309 evsel = __add_event(list, idx, &attr, /*init_attr=*/true, /*name=*/NULL,
443 int parse_events_add_cache(struct list_head *list, int *idx, const char *name,
478 if (__add_event(list, idx, &attr, /*init_attr*/true, config_name ?: name,
520 static int add_tracepoint(struct list_head *list, int *idx,
541 list_add_tail(&evsel->core.node, list);
545 static int add_tracepoint_multi_event(struct list_head *list, int *idx,
579 ret = add_tracepoint(list, idx, sys_name, evt_ent->d_name,
593 static int add_tracepoint_event(struct list_head *list, int *idx,
599 add_tracepoint_multi_event(list, idx, sys_name, evt_name,
601 add_tracepoint(list, idx, sys_name, evt_name,
605 static int add_tracepoint_multi_sys(struct list_head *list, int *idx,
631 ret = add_tracepoint_event(list, idx, events_ent->d_name,
681 struct list_head *list,
719 return add_event(list, &parse_state->idx, &attr, name, /*mertic_id=*/NULL,
1075 list_for_each_entry(term, head, list)
1092 INIT_LIST_HEAD(&__t->list); \
1095 list_add_tail(&__t->list, head_terms)
1116 list_for_each_entry(term, head_config, list) {
1204 list_for_each_entry(term, head_config, list) {
1251 int parse_events_add_tracepoint(struct list_head *list, int *idx,
1267 return add_tracepoint_multi_sys(list, idx, sys, event,
1270 return add_tracepoint_event(list, idx, sys, event,
1273 (void)list;
1285 struct list_head *list,
1313 ret = __add_event(list, &parse_state->idx, &attr, /*init_attr*/true, name,
1321 struct list_head *list,
1338 ret = __parse_events_add_numeric(parse_state, list, pmu,
1347 return __parse_events_add_numeric(parse_state, list, perf_pmus__find_by_type(type),
1352 struct list_head *list,
1355 return add_event_tool(list, &parse_state->idx, tool_event);
1362 list_for_each_entry(term, config_terms, list) {
1371 struct list_head *list, const char *name,
1421 evsel = __add_event(list, &parse_state->idx, &attr,
1463 evsel = __add_event(list, &parse_state->idx, &attr, /*init_attr=*/true,
1491 struct list_head *list = NULL;
1518 list_add_tail(&term->list, head);
1521 list = malloc(sizeof(struct list_head));
1522 if (!list)
1525 INIT_LIST_HEAD(list);
1538 if (!parse_events_add_pmu(parse_state, list, pmu->name,
1552 if (!parse_events_add_pmu(parse_state, list, str, head,
1566 *listp = list;
1568 free(list);
1574 int parse_events__modifier_group(struct list_head *list,
1577 return parse_events__modifier_event(list, event_mod, true);
1580 void parse_events__set_leader(char *name, struct list_head *list)
1584 if (list_empty(list)) {
1585 WARN_ONCE(true, "WARNING: failed to set leader: empty list");
1589 leader = list_first_entry(list, struct evsel, core.node);
1590 __perf_evlist__set_leader(list, &leader->core);
1600 * 'all event' list, and reinit the 'single event'
1601 * list, for next event definition.
1746 int parse_events__modifier_event(struct list_head *list, char *str, bool add)
1760 __evlist__for_each_entry(list, evsel) {
1786 int parse_events_name(struct list_head *list, const char *name)
1790 __evlist__for_each_entry(list, evsel) {
1833 * parse event config string, return a list of event terms.
1894 * the list isn't yet sorted putting evsel's in the same group
1982 static int parse_events__sort_events_and_fix_groups(struct list_head *list)
1995 list_for_each_entry(pos, list, core.node) {
1998 ret = evsel__compute_group_pmu_name(pos, list);
2019 list_sort(&force_grouped_idx, list, evlist__cmp);
2026 list_for_each_entry(pos, list, core.node) {
2069 list_for_each_entry(pos, list, core.node) {
2084 .list = LIST_HEAD_INIT(parse_state.list),
2096 if (!ret && list_empty(&parse_state.list)) {
2101 ret2 = parse_events__sort_events_and_fix_groups(&parse_state.list);
2109 * Add list to the evlist even with errors to allow callers to clean up.
2111 evlist__splice_list_tail(evlist, &parse_state.list);
2284 fprintf(stderr, "Run 'perf list' for a list of valid events\n");
2448 INIT_LIST_HEAD(&term->list);
2563 list_for_each_entry (term, old, list) {
2567 list_add_tail(&n->list, *new);
2576 list_for_each_entry_safe(term, h, terms, list) {
2577 list_del_init(&term->list);
2598 list_for_each_entry(term, term_list, list) {