Lines Matching refs:list

31 	struct list_head *list;  in alloc_list()  local
33 list = malloc(sizeof(*list)); in alloc_list()
34 if (!list) in alloc_list()
37 INIT_LIST_HEAD(list); in alloc_list()
38 return list; in alloc_list()
52 static void inc_group_count(struct list_head *list, in inc_group_count() argument
56 if (!list_is_last(list->next, list)) in inc_group_count()
149 parse_events_update_lists($1, &parse_state->list);
155 struct list_head *list = $1; variable
159 parse_events_update_lists(group, list);
160 $$ = list;
165 struct list_head *list = $1; variable
169 parse_events_update_lists(event, list);
170 $$ = list;
180 struct list_head *list = $1; variable
183 err = parse_events__modifier_group(list, $3);
191 free_list_evsel(list);
194 $$ = list;
202 struct list_head *list = $3; variable
204 inc_group_count(list, _parse_state);
205 parse_events__set_leader($1, list, _parse_state);
207 $$ = list;
212 struct list_head *list = $2; variable
214 inc_group_count(list, _parse_state);
215 parse_events__set_leader(NULL, list, _parse_state);
216 $$ = list;
223 struct list_head *list = $1; variable
226 parse_events_update_lists(event, list);
227 $$ = list;
237 struct list_head *list = $1; variable
245 err = parse_events__modifier_event(list, $2, false);
253 free_list_evsel(list);
256 $$ = list;
294 struct list_head *list = NULL, *orig_terms = NULL, *terms= NULL; variable
301 free(list); \
313 list = alloc_list();
314 if (!list)
316 if (parse_events_add_pmu(_parse_state, list, $1, $2, false, false)) {
333 if (!parse_events_add_pmu(_parse_state, list, pmu->name, terms, true, false))
346 $$ = list;
352 struct list_head *list; variable
355 err = parse_events_multi_pmu_add(_parse_state, $1, NULL, &list);
359 $$ = list;
364 struct list_head *list; variable
368 err = parse_events_multi_pmu_add(_parse_state, $1, $2, &list);
372 $$ = list;
377 struct list_head *list; variable
383 if (parse_events_multi_pmu_add(_parse_state, pmu_name, NULL, &list) < 0)
385 $$ = list;
390 struct list_head *list; variable
393 list = alloc_list();
394 if (!list)
397 err = parse_events_add_pmu(_parse_state, list, $1, NULL, false, false);
400 free(list);
403 $$ = list;
408 struct list_head *list; variable
411 list = alloc_list();
412 if (!list)
415 err = parse_events_add_pmu(_parse_state, list, $1, $2, false, false);
419 free(list);
422 $$ = list;
433 struct list_head *list; variable
438 list = alloc_list();
439 ABORT_ON(!list);
440 err = parse_events_add_numeric(_parse_state, list, type, config, $3);
443 free_list_evsel(list);
446 $$ = list;
451 struct list_head *list; variable
455 list = alloc_list();
456 ABORT_ON(!list);
457 ABORT_ON(parse_events_add_numeric(_parse_state, list, type, config, NULL));
458 $$ = list;
463 struct list_head *list; variable
465 list = alloc_list();
466 ABORT_ON(!list);
467 ABORT_ON(parse_events_add_tool(_parse_state, list, $1));
468 $$ = list;
476 struct list_head *list; variable
479 list = alloc_list();
480 ABORT_ON(!list);
481 err = parse_events_add_cache(list, &parse_state->idx, $1, $3, $5, error, $6,
488 free_list_evsel(list);
491 $$ = list;
498 struct list_head *list; variable
501 list = alloc_list();
502 ABORT_ON(!list);
503 err = parse_events_add_cache(list, &parse_state->idx, $1, $3, NULL, error, $4,
509 free_list_evsel(list);
512 $$ = list;
519 struct list_head *list; variable
522 list = alloc_list();
523 ABORT_ON(!list);
524 err = parse_events_add_cache(list, &parse_state->idx, $1, NULL, NULL, error, $2,
529 free_list_evsel(list);
532 $$ = list;
539 struct list_head *list; variable
542 list = alloc_list();
543 ABORT_ON(!list);
544 err = parse_events_add_breakpoint(list, &parse_state->idx,
548 free(list);
551 $$ = list;
557 struct list_head *list; variable
559 list = alloc_list();
560 ABORT_ON(!list);
561 if (parse_events_add_breakpoint(list, &parse_state->idx,
563 free(list);
566 $$ = list;
572 struct list_head *list; variable
575 list = alloc_list();
576 ABORT_ON(!list);
577 err = parse_events_add_breakpoint(list, &parse_state->idx,
581 free(list);
584 $$ = list;
590 struct list_head *list; variable
592 list = alloc_list();
593 ABORT_ON(!list);
594 if (parse_events_add_breakpoint(list, &parse_state->idx,
596 free(list);
599 $$ = list;
607 struct list_head *list; variable
610 list = alloc_list();
611 ABORT_ON(!list);
615 err = parse_events_add_tracepoint(list, &parse_state->idx, $1.sys, $1.event,
622 free(list);
625 $$ = list;
650 struct list_head *list; variable
653 list = alloc_list();
654 ABORT_ON(!list);
655 err = parse_events_add_numeric(_parse_state, list, (u32)$1, $3, $4);
658 free(list);
661 $$ = list;
667 struct list_head *list; variable
670 list = alloc_list();
671 ABORT_ON(!list);
672 err = parse_events_add_numeric(_parse_state, list, PERF_TYPE_RAW, $1, $2);
675 free(list);
678 $$ = list;
685 struct list_head *list; variable
688 list = alloc_list();
689 ABORT_ON(!list);
690 err = parse_events_load_bpf(parse_state, list, $1, false, $2);
694 free(list);
697 $$ = list;
702 struct list_head *list; variable
705 list = alloc_list();
706 ABORT_ON(!list);
707 err = parse_events_load_bpf(_parse_state, list, $1, true, $2);
710 free(list);
713 $$ = list;
762 list_add_tail(&term->list, head);
773 list_add_tail(&term->list, head);