Lines Matching refs:sample
197 struct perf_sample *sample) in atom_new() argument
227 atom->time = sample->time; in atom_new()
352 struct perf_sample *sample) in profile_update_timespan() argument
357 if ((kwork->timestart == 0) || (kwork->timestart > sample->time)) in profile_update_timespan()
358 kwork->timestart = sample->time; in profile_update_timespan()
360 if (kwork->timeend < sample->time) in profile_update_timespan()
361 kwork->timeend = sample->time; in profile_update_timespan()
366 struct perf_sample *sample) in profile_event_match() argument
369 u64 time = sample->time; in profile_event_match()
384 profile_update_timespan(kwork, sample); in profile_event_match()
393 struct perf_sample *sample, in work_push_atom() argument
401 class->work_init(class, &key, evsel, sample, machine); in work_push_atom()
403 atom = atom_new(kwork, sample); in work_push_atom()
413 if (!profile_event_match(kwork, work, sample)) in work_push_atom()
438 struct perf_sample *sample, in work_pop_atom() argument
446 class->work_init(class, &key, evsel, sample, machine); in work_pop_atom()
455 if (!profile_event_match(kwork, work, sample)) in work_pop_atom()
463 src_atom = atom_new(kwork, sample); in work_pop_atom()
476 struct perf_sample *sample) in report_update_exit_event() argument
479 u64 exit_time = sample->time; in report_update_exit_event()
498 struct perf_sample *sample, in report_entry_event() argument
502 KWORK_TRACE_MAX, evsel, sample, in report_entry_event()
509 struct perf_sample *sample, in report_exit_event() argument
516 KWORK_TRACE_ENTRY, evsel, sample, in report_exit_event()
522 report_update_exit_event(work, atom, sample); in report_exit_event()
531 struct perf_sample *sample) in latency_update_entry_event() argument
534 u64 entry_time = sample->time; in latency_update_entry_event()
553 struct perf_sample *sample, in latency_raise_event() argument
557 KWORK_TRACE_MAX, evsel, sample, in latency_raise_event()
564 struct perf_sample *sample, in latency_entry_event() argument
571 KWORK_TRACE_RAISE, evsel, sample, in latency_entry_event()
577 latency_update_entry_event(work, atom, sample); in latency_entry_event()
585 struct perf_sample *sample, in timehist_save_callchain() argument
594 if (!kwork->show_callchain || sample->callchain == NULL) in timehist_save_callchain()
598 thread = machine__findnew_thread(machine, sample->pid, sample->pid); in timehist_save_callchain()
600 pr_debug("Failed to get thread for pid %d\n", sample->pid); in timehist_save_callchain()
604 if (thread__resolve_callchain(thread, cursor, evsel, sample, in timehist_save_callchain()
634 struct perf_sample *sample, in timehist_print_event() argument
650 timestamp__scnprintf_usec(sample->time, in timehist_print_event()
674 (double)(sample->time - atom->time) / NSEC_PER_MSEC); in timehist_print_event()
690 sample__fprintf_sym(sample, al, 0, in timehist_print_event()
704 struct perf_sample *sample, in timehist_raise_event() argument
708 KWORK_TRACE_MAX, evsel, sample, in timehist_raise_event()
715 struct perf_sample *sample, in timehist_entry_event() argument
722 KWORK_TRACE_RAISE, evsel, sample, in timehist_entry_event()
728 timehist_save_callchain(kwork, sample, evsel, machine); in timehist_entry_event()
736 struct perf_sample *sample, in timehist_exit_event() argument
743 if (machine__resolve(machine, &al, sample) < 0) { in timehist_exit_event()
749 KWORK_TRACE_ENTRY, evsel, sample, in timehist_exit_event()
756 timehist_print_event(kwork, work, atom, sample, &al); in timehist_exit_event()
766 struct perf_sample *sample, in process_irq_handler_entry_event() argument
773 evsel, sample, machine); in process_irq_handler_entry_event()
779 struct perf_sample *sample, in process_irq_handler_exit_event() argument
786 evsel, sample, machine); in process_irq_handler_exit_event()
810 struct perf_sample *sample, in irq_work_init() argument
814 work->cpu = sample->cpu; in irq_work_init()
815 work->id = evsel__intval(evsel, sample, "irq"); in irq_work_init()
816 work->name = evsel__strval(evsel, sample, "name"); in irq_work_init()
837 struct perf_sample *sample, in process_softirq_raise_event() argument
844 evsel, sample, machine); in process_softirq_raise_event()
851 struct perf_sample *sample, in process_softirq_entry_event() argument
858 evsel, sample, machine); in process_softirq_entry_event()
865 struct perf_sample *sample, in process_softirq_exit_event() argument
872 evsel, sample, machine); in process_softirq_exit_event()
929 struct perf_sample *sample, in softirq_work_init() argument
932 u64 num = evsel__intval(evsel, sample, "vec"); in softirq_work_init()
936 work->cpu = sample->cpu; in softirq_work_init()
958 struct perf_sample *sample, in process_workqueue_activate_work_event() argument
965 evsel, sample, machine); in process_workqueue_activate_work_event()
972 struct perf_sample *sample, in process_workqueue_execute_start_event() argument
979 evsel, sample, machine); in process_workqueue_execute_start_event()
986 struct perf_sample *sample, in process_workqueue_execute_end_event() argument
993 evsel, sample, machine); in process_workqueue_execute_end_event()
1020 struct perf_sample *sample, in workqueue_work_init() argument
1025 sample, "function"); in workqueue_work_init()
1028 work->cpu = sample->cpu; in workqueue_work_init()
1029 work->id = evsel__intval(evsel, sample, "work"); in workqueue_work_init()
1538 struct perf_sample *sample,
1543 struct perf_sample *sample, in perf_kwork__process_tracepoint_sample() argument
1552 err = f(tool, evsel, sample, machine); in perf_kwork__process_tracepoint_sample()
1682 .sample = perf_kwork__process_tracepoint_sample, in cmd_kwork()