Lines Matching refs:sample
361 struct perf_sample *sample __used, in process_event_sample_stub()
371 struct perf_sample *sample __used, in process_event_stub()
399 if (tool->sample == NULL) in perf_tool__fill_defaults()
400 tool->sample = process_event_sample_stub; in perf_tool__fill_defaults()
560 struct perf_sample *sample,
570 struct perf_sample sample; in flush_sample_queue() local
583 ret = perf_session__parse_sample(s, iter->event, &sample); in flush_sample_queue()
587 perf_session_deliver_event(s, iter->event, &sample, tool, in flush_sample_queue()
663 struct sample_queue *sample = os->last_sample; in __queue_event() local
670 if (!sample) { in __queue_event()
681 if (sample->timestamp <= timestamp) { in __queue_event()
682 while (sample->timestamp <= timestamp) { in __queue_event()
683 p = sample->list.next; in __queue_event()
689 sample = list_entry(p, struct sample_queue, list); in __queue_event()
691 list_add_tail(&new->list, &sample->list); in __queue_event()
693 while (sample->timestamp > timestamp) { in __queue_event()
694 p = sample->list.prev; in __queue_event()
699 sample = list_entry(p, struct sample_queue, list); in __queue_event()
701 list_add(&new->list, &sample->list); in __queue_event()
708 struct perf_sample *sample, u64 file_offset) in perf_session_queue_event() argument
712 u64 timestamp = sample->time; in perf_session_queue_event()
748 static void callchain__printf(struct perf_sample *sample) in callchain__printf() argument
752 printf("... chain: nr:%" PRIu64 "\n", sample->callchain->nr); in callchain__printf()
754 for (i = 0; i < sample->callchain->nr; i++) in callchain__printf()
756 i, sample->callchain->ips[i]); in callchain__printf()
759 static void branch_stack__printf(struct perf_sample *sample) in branch_stack__printf() argument
763 printf("... branch stack: nr:%" PRIu64 "\n", sample->branch_stack->nr); in branch_stack__printf()
765 for (i = 0; i < sample->branch_stack->nr; i++) in branch_stack__printf()
767 i, sample->branch_stack->entries[i].from, in branch_stack__printf()
768 sample->branch_stack->entries[i].to); in branch_stack__printf()
773 struct perf_sample *sample) in perf_session__print_tstamp() argument
782 printf("%u ", sample->cpu); in perf_session__print_tstamp()
785 printf("%" PRIu64 " ", sample->time); in perf_session__print_tstamp()
789 u64 file_offset, struct perf_sample *sample) in dump_event() argument
799 if (sample) in dump_event()
800 perf_session__print_tstamp(session, event, sample); in dump_event()
807 struct perf_sample *sample) in dump_sample() argument
813 event->header.misc, sample->pid, sample->tid, sample->ip, in dump_sample()
814 sample->period, sample->addr); in dump_sample()
817 callchain__printf(sample); in dump_sample()
820 branch_stack__printf(sample); in dump_sample()
845 struct perf_sample *sample, in perf_session_deliver_event() argument
852 dump_event(session, event, file_offset, sample); in perf_session_deliver_event()
854 evsel = perf_evlist__id2evsel(session->evlist, sample->id); in perf_session_deliver_event()
876 dump_sample(session, event, sample); in perf_session_deliver_event()
885 return tool->sample(tool, event, sample, evsel, machine); in perf_session_deliver_event()
887 return tool->mmap(tool, event, sample, machine); in perf_session_deliver_event()
889 return tool->comm(tool, event, sample, machine); in perf_session_deliver_event()
891 return tool->fork(tool, event, sample, machine); in perf_session_deliver_event()
893 return tool->exit(tool, event, sample, machine); in perf_session_deliver_event()
897 return tool->lost(tool, event, sample, machine); in perf_session_deliver_event()
899 return tool->read(tool, event, sample, evsel, machine); in perf_session_deliver_event()
901 return tool->throttle(tool, event, sample, machine); in perf_session_deliver_event()
903 return tool->unthrottle(tool, event, sample, machine); in perf_session_deliver_event()
911 union perf_event *event, struct perf_sample *sample) in perf_session__preprocess_sample() argument
917 if (!ip_callchain__valid(sample->callchain, event)) { in perf_session__preprocess_sample()
920 session->hists.stats.total_invalid_chains += sample->period; in perf_session__preprocess_sample()
960 struct perf_sample sample; in perf_session__process_event() local
978 ret = perf_session__parse_sample(session, event, &sample); in perf_session__process_event()
983 if (perf_session__preprocess_sample(session, event, &sample)) in perf_session__process_event()
987 ret = perf_session_queue_event(session, event, &sample, in perf_session__process_event()
993 return perf_session_deliver_event(session, event, &sample, tool, in perf_session__process_event()
1386 void perf_event__print_ip(union perf_event *event, struct perf_sample *sample, in perf_event__print_ip() argument
1394 if (perf_event__preprocess_sample(event, machine, &al, sample, in perf_event__print_ip()
1401 if (symbol_conf.use_callchain && sample->callchain) { in perf_event__print_ip()
1404 sample->callchain, NULL) != 0) { in perf_event__print_ip()
1432 printf("%16" PRIx64, sample->ip); in perf_event__print_ip()