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
396 if (parse_events_multi_pmu_add(_parse_state, pmu_name, NULL, &list) < 0)
398 $$ = list;
403 struct list_head *list; variable
406 list = alloc_list();
407 if (!list)
410 err = parse_events_add_pmu(_parse_state, list, $1, NULL, false, false);
413 free(list);
416 $$ = list;
421 struct list_head *list; variable
424 list = alloc_list();
425 if (!list)
428 err = parse_events_add_pmu(_parse_state, list, $1, $2, false, false);
432 free(list);
435 $$ = list;
446 struct list_head *list; variable
451 list = alloc_list();
452 ABORT_ON(!list);
453 err = parse_events_add_numeric(_parse_state, list, type, config, $3);
456 free_list_evsel(list);
459 $$ = list;
464 struct list_head *list; variable
468 list = alloc_list();
469 ABORT_ON(!list);
470 ABORT_ON(parse_events_add_numeric(_parse_state, list, type, config, NULL));
471 $$ = list;
476 struct list_head *list; variable
478 list = alloc_list();
479 ABORT_ON(!list);
480 ABORT_ON(parse_events_add_tool(_parse_state, list, $1));
481 $$ = list;
489 struct list_head *list; variable
492 list = alloc_list();
493 ABORT_ON(!list);
494 err = parse_events_add_cache(list, &parse_state->idx, $1, $3, $5, error, $6,
501 free_list_evsel(list);
504 $$ = list;
511 struct list_head *list; variable
514 list = alloc_list();
515 ABORT_ON(!list);
516 err = parse_events_add_cache(list, &parse_state->idx, $1, $3, NULL, error, $4,
522 free_list_evsel(list);
525 $$ = list;
532 struct list_head *list; variable
535 list = alloc_list();
536 ABORT_ON(!list);
537 err = parse_events_add_cache(list, &parse_state->idx, $1, NULL, NULL, error, $2,
542 free_list_evsel(list);
545 $$ = list;
552 struct list_head *list; variable
555 list = alloc_list();
556 ABORT_ON(!list);
557 err = parse_events_add_breakpoint(list, &parse_state->idx,
561 free(list);
564 $$ = list;
570 struct list_head *list; variable
572 list = alloc_list();
573 ABORT_ON(!list);
574 if (parse_events_add_breakpoint(list, &parse_state->idx,
576 free(list);
579 $$ = list;
585 struct list_head *list; variable
588 list = alloc_list();
589 ABORT_ON(!list);
590 err = parse_events_add_breakpoint(list, &parse_state->idx,
594 free(list);
597 $$ = list;
603 struct list_head *list; variable
605 list = alloc_list();
606 ABORT_ON(!list);
607 if (parse_events_add_breakpoint(list, &parse_state->idx,
609 free(list);
612 $$ = list;
620 struct list_head *list; variable
623 list = alloc_list();
624 ABORT_ON(!list);
628 err = parse_events_add_tracepoint(list, &parse_state->idx, $1.sys, $1.event,
635 free(list);
638 $$ = list;
663 struct list_head *list; variable
666 list = alloc_list();
667 ABORT_ON(!list);
668 err = parse_events_add_numeric(_parse_state, list, (u32)$1, $3, $4);
671 free(list);
674 $$ = list;
680 struct list_head *list; variable
683 list = alloc_list();
684 ABORT_ON(!list);
685 err = parse_events_add_numeric(_parse_state, list, PERF_TYPE_RAW, $1, $2);
688 free(list);
691 $$ = list;
698 struct list_head *list; variable
701 list = alloc_list();
702 ABORT_ON(!list);
703 err = parse_events_load_bpf(parse_state, list, $1, false, $2);
707 free(list);
710 $$ = list;
715 struct list_head *list; variable
718 list = alloc_list();
719 ABORT_ON(!list);
720 err = parse_events_load_bpf(_parse_state, list, $1, true, $2);
723 free(list);
726 $$ = list;
775 list_add_tail(&term->list, head);
786 list_add_tail(&term->list, head);