Lines Matching full:sample

241 				   struct perf_sample *sample)  in atom_new()  argument
271 atom->time = sample->time; in atom_new()
396 struct perf_sample *sample) in profile_update_timespan() argument
401 if ((kwork->timestart == 0) || (kwork->timestart > sample->time)) in profile_update_timespan()
402 kwork->timestart = sample->time; in profile_update_timespan()
404 if (kwork->timeend < sample->time) in profile_update_timespan()
405 kwork->timeend = sample->time; in profile_update_timespan()
421 struct perf_sample *sample) in profile_event_match() argument
424 u64 time = sample->time; in profile_event_match()
443 profile_update_timespan(kwork, sample); in profile_event_match()
452 struct perf_sample *sample, in work_push_atom() argument
461 class->work_init(kwork, class, &key, src_type, evsel, sample, machine); in work_push_atom()
463 atom = atom_new(kwork, sample); in work_push_atom()
473 if (!profile_event_match(kwork, work, sample)) { in work_push_atom()
511 struct perf_sample *sample, in work_pop_atom() argument
519 class->work_init(kwork, class, &key, src_type, evsel, sample, machine); in work_pop_atom()
528 if (!profile_event_match(kwork, work, sample)) in work_pop_atom()
536 src_atom = atom_new(kwork, sample); in work_pop_atom()
581 struct perf_sample *sample) in report_update_exit_event() argument
584 u64 exit_time = sample->time; in report_update_exit_event()
603 struct perf_sample *sample, in report_entry_event() argument
607 KWORK_TRACE_MAX, evsel, sample, in report_entry_event()
614 struct perf_sample *sample, in report_exit_event() argument
621 KWORK_TRACE_ENTRY, evsel, sample, in report_exit_event()
627 report_update_exit_event(work, atom, sample); in report_exit_event()
636 struct perf_sample *sample) in latency_update_entry_event() argument
639 u64 entry_time = sample->time; in latency_update_entry_event()
658 struct perf_sample *sample, in latency_raise_event() argument
662 KWORK_TRACE_MAX, evsel, sample, in latency_raise_event()
669 struct perf_sample *sample, in latency_entry_event() argument
676 KWORK_TRACE_RAISE, evsel, sample, in latency_entry_event()
682 latency_update_entry_event(work, atom, sample); in latency_entry_event()
690 struct perf_sample *sample, in timehist_save_callchain() argument
699 if (!kwork->show_callchain || sample->callchain == NULL) in timehist_save_callchain()
703 thread = machine__findnew_thread(machine, sample->pid, sample->pid); in timehist_save_callchain()
705 pr_debug("Failed to get thread for pid %d\n", sample->pid); in timehist_save_callchain()
711 if (thread__resolve_callchain(thread, cursor, evsel, sample, in timehist_save_callchain()
741 struct perf_sample *sample, in timehist_print_event() argument
757 timestamp__scnprintf_usec(sample->time, in timehist_print_event()
781 (double)(sample->time - atom->time) / NSEC_PER_MSEC); in timehist_print_event()
803 sample__fprintf_sym(sample, al, 0, in timehist_print_event()
817 struct perf_sample *sample, in timehist_raise_event() argument
821 KWORK_TRACE_MAX, evsel, sample, in timehist_raise_event()
828 struct perf_sample *sample, in timehist_entry_event() argument
835 KWORK_TRACE_RAISE, evsel, sample, in timehist_entry_event()
841 timehist_save_callchain(kwork, sample, evsel, machine); in timehist_entry_event()
849 struct perf_sample *sample, in timehist_exit_event() argument
858 if (machine__resolve(machine, &al, sample) < 0) { in timehist_exit_event()
865 KWORK_TRACE_ENTRY, evsel, sample, in timehist_exit_event()
874 timehist_print_event(kwork, work, atom, sample, &al); in timehist_exit_event()
885 struct perf_sample *sample) in top_update_runtime() argument
888 u64 exit_time = sample->time; in top_update_runtime()
900 struct perf_sample *sample, in top_entry_event() argument
904 KWORK_TRACE_MAX, evsel, sample, in top_entry_event()
911 struct perf_sample *sample, in top_exit_event() argument
919 KWORK_TRACE_ENTRY, evsel, sample, in top_exit_event()
930 top_update_runtime(work, atom, sample); in top_exit_event()
941 struct perf_sample *sample, in top_sched_switch_event() argument
948 KWORK_TRACE_ENTRY, evsel, sample, in top_sched_switch_event()
954 top_update_runtime(work, atom, sample); in top_sched_switch_event()
958 return top_entry_event(kwork, class, evsel, sample, machine); in top_sched_switch_event()
964 struct perf_sample *sample, in process_irq_handler_entry_event() argument
971 evsel, sample, machine); in process_irq_handler_entry_event()
977 struct perf_sample *sample, in process_irq_handler_exit_event() argument
984 evsel, sample, machine); in process_irq_handler_exit_event()
1010 struct perf_sample *sample, in irq_work_init() argument
1014 work->cpu = sample->cpu; in irq_work_init()
1017 work->id = evsel__intval_common(evsel, sample, "common_pid"); in irq_work_init()
1020 work->id = evsel__intval(evsel, sample, "irq"); in irq_work_init()
1021 work->name = evsel__strval(evsel, sample, "name"); in irq_work_init()
1043 struct perf_sample *sample, in process_softirq_raise_event() argument
1050 evsel, sample, machine); in process_softirq_raise_event()
1057 struct perf_sample *sample, in process_softirq_entry_event() argument
1064 evsel, sample, machine); in process_softirq_entry_event()
1071 struct perf_sample *sample, in process_softirq_exit_event() argument
1078 evsel, sample, machine); in process_softirq_exit_event()
1138 struct perf_sample *sample, in softirq_work_init() argument
1144 work->cpu = sample->cpu; in softirq_work_init()
1147 work->id = evsel__intval_common(evsel, sample, "common_pid"); in softirq_work_init()
1150 num = evsel__intval(evsel, sample, "vec"); in softirq_work_init()
1174 struct perf_sample *sample, in process_workqueue_activate_work_event() argument
1181 evsel, sample, machine); in process_workqueue_activate_work_event()
1188 struct perf_sample *sample, in process_workqueue_execute_start_event() argument
1195 evsel, sample, machine); in process_workqueue_execute_start_event()
1202 struct perf_sample *sample, in process_workqueue_execute_end_event() argument
1209 evsel, sample, machine); in process_workqueue_execute_end_event()
1238 struct perf_sample *sample, in workqueue_work_init() argument
1243 sample, "function"); in workqueue_work_init()
1246 work->cpu = sample->cpu; in workqueue_work_init()
1247 work->id = evsel__intval(evsel, sample, "work"); in workqueue_work_init()
1273 struct perf_sample *sample, in process_sched_switch_event() argument
1280 evsel, sample, machine); in process_sched_switch_event()
1306 struct perf_sample *sample, in sched_work_init() argument
1310 work->cpu = sample->cpu; in sched_work_init()
1313 work->id = evsel__intval(evsel, sample, "prev_pid"); in sched_work_init()
1314 work->name = strdup(evsel__strval(evsel, sample, "prev_comm")); in sched_work_init()
1316 work->id = evsel__intval(evsel, sample, "next_pid"); in sched_work_init()
1317 work->name = strdup(evsel__strval(evsel, sample, "next_comm")); in sched_work_init()
1952 struct perf_sample *sample,
1957 struct perf_sample *sample, in perf_kwork__process_tracepoint_sample() argument
1966 err = f(tool, evsel, sample, machine); in perf_kwork__process_tracepoint_sample()
2465 kwork.tool.sample = perf_kwork__process_tracepoint_sample; in cmd_kwork()