Lines Matching refs:evsel

149 static int perf_evsel__check_stype(struct perf_evsel *evsel,  in perf_evsel__check_stype()  argument
153 struct perf_event_attr *attr = &evsel->attr; in perf_evsel__check_stype()
161 evname = perf_evsel__name(evsel); in perf_evsel__check_stype()
170 evname = perf_evsel__name(evsel); in perf_evsel__check_stype()
178 static int perf_evsel__check_attr(struct perf_evsel *evsel, in perf_evsel__check_attr() argument
181 struct perf_event_attr *attr = &evsel->attr; in perf_evsel__check_attr()
188 if (perf_evsel__check_stype(evsel, PERF_SAMPLE_IP, "IP", in perf_evsel__check_attr()
194 perf_evsel__check_stype(evsel, PERF_SAMPLE_ADDR, "ADDR", in perf_evsel__check_attr()
222 perf_evsel__check_stype(evsel, PERF_SAMPLE_TID, "TID", in perf_evsel__check_attr()
227 perf_evsel__check_stype(evsel, PERF_SAMPLE_TIME, "TIME", in perf_evsel__check_attr()
232 perf_evsel__check_stype(evsel, PERF_SAMPLE_CPU, "CPU", in perf_evsel__check_attr()
237 perf_evsel__check_stype(evsel, PERF_SAMPLE_PERIOD, "PERIOD", in perf_evsel__check_attr()
272 struct perf_evsel *evsel; in perf_session__check_output_opt() local
275 evsel = perf_session__find_first_evtype(session, j); in perf_session__check_output_opt()
281 if (!evsel && output[j].user_set && !output[j].wildcard_set) { in perf_session__check_output_opt()
288 if (evsel && output[j].fields && in perf_session__check_output_opt()
289 perf_evsel__check_attr(evsel, session)) in perf_session__check_output_opt()
292 if (evsel == NULL) in perf_session__check_output_opt()
295 set_print_ip_opts(&evsel->attr); in perf_session__check_output_opt()
301 evlist__for_each(session->evlist, evsel) { in perf_session__check_output_opt()
302 if (evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN) { in perf_session__check_output_opt()
320 evsel = perf_session__find_first_evtype(session, j); in perf_session__check_output_opt()
321 if (evsel == NULL) in perf_session__check_output_opt()
324 attr = &evsel->attr; in perf_session__check_output_opt()
340 struct perf_evsel *evsel) in print_sample_start() argument
342 struct perf_event_attr *attr = &evsel->attr; in print_sample_start()
410 struct perf_evsel *evsel, in print_sample_bts() argument
414 struct perf_event_attr *attr = &evsel->attr; in print_sample_bts()
430 perf_evsel__print_ip(evsel, sample, al, print_opts, in print_sample_bts()
436 ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && in print_sample_bts()
449 struct perf_evsel *evsel, struct addr_location *al) in process_event() argument
452 struct perf_event_attr *attr = &evsel->attr; in process_event()
457 print_sample_start(sample, thread, evsel); in process_event()
463 const char *evname = perf_evsel__name(evsel); in process_event()
468 print_sample_bts(event, sample, evsel, thread, al); in process_event()
473 event_format__print(evsel->tp_format, sample->cpu, in process_event()
484 perf_evsel__print_ip(evsel, sample, al, in process_event()
548 struct perf_evsel *evsel, in process_sample_event() argument
576 scripting_ops->process_event(event, sample, evsel, &al); in process_sample_event()
593 struct perf_evsel *evsel, *pos; in process_attr() local
601 evsel = perf_evlist__last(*pevlist); in process_attr()
603 if (evsel->attr.type >= PERF_TYPE_MAX) in process_attr()
607 if (pos->attr.type == evsel->attr.type && pos != evsel) in process_attr()
611 set_print_ip_opts(&evsel->attr); in process_attr()
613 return perf_evsel__check_attr(evsel, scr->session); in process_attr()
624 struct perf_evsel *evsel = perf_evlist__first(session->evlist); in process_comm_event() local
636 if (!evsel->attr.sample_id_all) { in process_comm_event()
642 print_sample_start(sample, thread, evsel); in process_comm_event()
658 struct perf_evsel *evsel = perf_evlist__first(session->evlist); in process_fork_event() local
669 if (!evsel->attr.sample_id_all) { in process_fork_event()
675 print_sample_start(sample, thread, evsel); in process_fork_event()
688 struct perf_evsel *evsel = perf_evlist__first(session->evlist); in process_exit_event() local
696 if (!evsel->attr.sample_id_all) { in process_exit_event()
702 print_sample_start(sample, thread, evsel); in process_exit_event()
719 struct perf_evsel *evsel = perf_evlist__first(session->evlist); in process_mmap_event() local
730 if (!evsel->attr.sample_id_all) { in process_mmap_event()
736 print_sample_start(sample, thread, evsel); in process_mmap_event()
750 struct perf_evsel *evsel = perf_evlist__first(session->evlist); in process_mmap2_event() local
761 if (!evsel->attr.sample_id_all) { in process_mmap2_event()
767 print_sample_start(sample, thread, evsel); in process_mmap2_event()