Lines Matching refs:evsel
161 static int perf_evsel__do_check_stype(struct perf_evsel *evsel, in perf_evsel__do_check_stype() argument
166 struct perf_event_attr *attr = &evsel->attr; in perf_evsel__do_check_stype()
176 evname = perf_evsel__name(evsel); in perf_evsel__do_check_stype()
185 evname = perf_evsel__name(evsel); in perf_evsel__do_check_stype()
193 static int perf_evsel__check_stype(struct perf_evsel *evsel, in perf_evsel__check_stype() argument
197 return perf_evsel__do_check_stype(evsel, sample_type, sample_msg, field, in perf_evsel__check_stype()
201 static int perf_evsel__check_attr(struct perf_evsel *evsel, in perf_evsel__check_attr() argument
204 struct perf_event_attr *attr = &evsel->attr; in perf_evsel__check_attr()
215 if (perf_evsel__check_stype(evsel, PERF_SAMPLE_IP, "IP", in perf_evsel__check_attr()
221 perf_evsel__do_check_stype(evsel, PERF_SAMPLE_ADDR, "ADDR", in perf_evsel__check_attr()
249 perf_evsel__check_stype(evsel, PERF_SAMPLE_TID, "TID", in perf_evsel__check_attr()
254 perf_evsel__check_stype(evsel, PERF_SAMPLE_TIME, "TIME", in perf_evsel__check_attr()
259 perf_evsel__do_check_stype(evsel, PERF_SAMPLE_CPU, "CPU", in perf_evsel__check_attr()
264 perf_evsel__check_stype(evsel, PERF_SAMPLE_PERIOD, "PERIOD", in perf_evsel__check_attr()
269 perf_evsel__check_stype(evsel, PERF_SAMPLE_REGS_INTR, "IREGS", in perf_evsel__check_attr()
304 struct perf_evsel *evsel; in perf_session__check_output_opt() local
307 evsel = perf_session__find_first_evtype(session, j); in perf_session__check_output_opt()
313 if (!evsel && output[j].user_set && !output[j].wildcard_set) { in perf_session__check_output_opt()
320 if (evsel && output[j].fields && in perf_session__check_output_opt()
321 perf_evsel__check_attr(evsel, session)) in perf_session__check_output_opt()
324 if (evsel == NULL) in perf_session__check_output_opt()
327 set_print_ip_opts(&evsel->attr); in perf_session__check_output_opt()
333 evlist__for_each(session->evlist, evsel) { in perf_session__check_output_opt()
334 if (evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN) { in perf_session__check_output_opt()
352 evsel = perf_session__find_first_evtype(session, j); in perf_session__check_output_opt()
353 if (evsel == NULL) in perf_session__check_output_opt()
356 attr = &evsel->attr; in perf_session__check_output_opt()
390 struct perf_evsel *evsel) in print_sample_start() argument
392 struct perf_event_attr *attr = &evsel->attr; in print_sample_start()
534 struct perf_evsel *evsel, in print_sample_bts() argument
538 struct perf_event_attr *attr = &evsel->attr; in print_sample_bts()
554 perf_evsel__print_ip(evsel, sample, al, print_opts, in print_sample_bts()
560 ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && in print_sample_bts()
592 struct perf_evsel *evsel, struct addr_location *al) in process_event() argument
595 struct perf_event_attr *attr = &evsel->attr; in process_event()
600 print_sample_start(sample, thread, evsel); in process_event()
606 const char *evname = perf_evsel__name(evsel); in process_event()
614 print_sample_bts(event, sample, evsel, thread, al); in process_event()
619 event_format__print(evsel->tp_format, sample->cpu, in process_event()
630 perf_evsel__print_ip(evsel, sample, al, in process_event()
702 struct perf_evsel *evsel, in process_sample_event() argument
730 scripting_ops->process_event(event, sample, evsel, &al); in process_sample_event()
749 struct perf_evsel *evsel, *pos; in process_attr() local
757 evsel = perf_evlist__last(*pevlist); in process_attr()
759 if (evsel->attr.type >= PERF_TYPE_MAX) in process_attr()
763 if (pos->attr.type == evsel->attr.type && pos != evsel) in process_attr()
767 set_print_ip_opts(&evsel->attr); in process_attr()
769 if (evsel->attr.sample_type) in process_attr()
770 err = perf_evsel__check_attr(evsel, scr->session); in process_attr()
783 struct perf_evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id); in process_comm_event() local
795 if (!evsel->attr.sample_id_all) { in process_comm_event()
801 print_sample_start(sample, thread, evsel); in process_comm_event()
817 struct perf_evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id); in process_fork_event() local
828 if (!evsel->attr.sample_id_all) { in process_fork_event()
834 print_sample_start(sample, thread, evsel); in process_fork_event()
849 struct perf_evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id); in process_exit_event() local
857 if (!evsel->attr.sample_id_all) { in process_exit_event()
863 print_sample_start(sample, thread, evsel); in process_exit_event()
881 struct perf_evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id); in process_mmap_event() local
892 if (!evsel->attr.sample_id_all) { in process_mmap_event()
898 print_sample_start(sample, thread, evsel); in process_mmap_event()
912 struct perf_evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id); in process_mmap2_event() local
923 if (!evsel->attr.sample_id_all) { in process_mmap2_event()
929 print_sample_start(sample, thread, evsel); in process_mmap2_event()
943 struct perf_evsel *evsel = perf_evlist__id2evsel(session->evlist, sample->id); in process_switch_event() local
955 print_sample_start(sample, thread, evsel); in process_switch_event()