Lines Matching full:sample

190 				   struct perf_sample *sample)  in atom_new()  argument
220 atom->time = sample->time; in atom_new()
345 struct perf_sample *sample) in profile_update_timespan() argument
350 if ((kwork->timestart == 0) || (kwork->timestart > sample->time)) in profile_update_timespan()
351 kwork->timestart = sample->time; in profile_update_timespan()
353 if (kwork->timeend < sample->time) in profile_update_timespan()
354 kwork->timeend = sample->time; in profile_update_timespan()
359 struct perf_sample *sample) in profile_event_match() argument
362 u64 time = sample->time; in profile_event_match()
377 profile_update_timespan(kwork, sample); in profile_event_match()
386 struct perf_sample *sample, in work_push_atom() argument
394 class->work_init(class, &key, evsel, sample, machine); in work_push_atom()
396 atom = atom_new(kwork, sample); in work_push_atom()
406 if (!profile_event_match(kwork, work, sample)) in work_push_atom()
431 struct perf_sample *sample, in work_pop_atom() argument
439 class->work_init(class, &key, evsel, sample, machine); in work_pop_atom()
448 if (!profile_event_match(kwork, work, sample)) in work_pop_atom()
456 src_atom = atom_new(kwork, sample); in work_pop_atom()
469 struct perf_sample *sample) in report_update_exit_event() argument
472 u64 exit_time = sample->time; in report_update_exit_event()
491 struct perf_sample *sample, in report_entry_event() argument
495 KWORK_TRACE_MAX, evsel, sample, in report_entry_event()
502 struct perf_sample *sample, in report_exit_event() argument
509 KWORK_TRACE_ENTRY, evsel, sample, in report_exit_event()
515 report_update_exit_event(work, atom, sample); in report_exit_event()
524 struct perf_sample *sample) in latency_update_entry_event() argument
527 u64 entry_time = sample->time; in latency_update_entry_event()
546 struct perf_sample *sample, in latency_raise_event() argument
550 KWORK_TRACE_MAX, evsel, sample, in latency_raise_event()
557 struct perf_sample *sample, in latency_entry_event() argument
564 KWORK_TRACE_RAISE, evsel, sample, in latency_entry_event()
570 latency_update_entry_event(work, atom, sample); in latency_entry_event()
578 struct perf_sample *sample, in timehist_save_callchain() argument
587 if (!kwork->show_callchain || sample->callchain == NULL) in timehist_save_callchain()
591 thread = machine__findnew_thread(machine, sample->pid, sample->pid); in timehist_save_callchain()
593 pr_debug("Failed to get thread for pid %d\n", sample->pid); in timehist_save_callchain()
597 if (thread__resolve_callchain(thread, cursor, evsel, sample, in timehist_save_callchain()
627 struct perf_sample *sample, in timehist_print_event() argument
643 timestamp__scnprintf_usec(sample->time, in timehist_print_event()
667 (double)(sample->time - atom->time) / NSEC_PER_MSEC); in timehist_print_event()
683 sample__fprintf_sym(sample, al, 0, in timehist_print_event()
697 struct perf_sample *sample, in timehist_raise_event() argument
701 KWORK_TRACE_MAX, evsel, sample, in timehist_raise_event()
708 struct perf_sample *sample, in timehist_entry_event() argument
715 KWORK_TRACE_RAISE, evsel, sample, in timehist_entry_event()
721 timehist_save_callchain(kwork, sample, evsel, machine); in timehist_entry_event()
729 struct perf_sample *sample, in timehist_exit_event() argument
736 if (machine__resolve(machine, &al, sample) < 0) { in timehist_exit_event()
742 KWORK_TRACE_ENTRY, evsel, sample, in timehist_exit_event()
749 timehist_print_event(kwork, work, atom, sample, &al); in timehist_exit_event()
759 struct perf_sample *sample, in process_irq_handler_entry_event() argument
766 evsel, sample, machine); in process_irq_handler_entry_event()
772 struct perf_sample *sample, in process_irq_handler_exit_event() argument
779 evsel, sample, machine); in process_irq_handler_exit_event()
803 struct perf_sample *sample, in irq_work_init() argument
807 work->cpu = sample->cpu; in irq_work_init()
808 work->id = evsel__intval(evsel, sample, "irq"); in irq_work_init()
809 work->name = evsel__strval(evsel, sample, "name"); in irq_work_init()
830 struct perf_sample *sample, in process_softirq_raise_event() argument
837 evsel, sample, machine); in process_softirq_raise_event()
844 struct perf_sample *sample, in process_softirq_entry_event() argument
851 evsel, sample, machine); in process_softirq_entry_event()
858 struct perf_sample *sample, in process_softirq_exit_event() argument
865 evsel, sample, machine); in process_softirq_exit_event()
922 struct perf_sample *sample, in softirq_work_init() argument
925 u64 num = evsel__intval(evsel, sample, "vec"); in softirq_work_init()
929 work->cpu = sample->cpu; in softirq_work_init()
951 struct perf_sample *sample, in process_workqueue_activate_work_event() argument
958 evsel, sample, machine); in process_workqueue_activate_work_event()
965 struct perf_sample *sample, in process_workqueue_execute_start_event() argument
972 evsel, sample, machine); in process_workqueue_execute_start_event()
979 struct perf_sample *sample, in process_workqueue_execute_end_event() argument
986 evsel, sample, machine); in process_workqueue_execute_end_event()
1013 struct perf_sample *sample, in workqueue_work_init() argument
1018 sample, "function"); in workqueue_work_init()
1021 work->cpu = sample->cpu; in workqueue_work_init()
1022 work->id = evsel__intval(evsel, sample, "work"); in workqueue_work_init()
1531 struct perf_sample *sample,
1536 struct perf_sample *sample, in perf_kwork__process_tracepoint_sample() argument
1545 err = f(tool, evsel, sample, machine); in perf_kwork__process_tracepoint_sample()
1675 .sample = perf_kwork__process_tracepoint_sample, in cmd_kwork()