• Home
  • Raw
  • Download

Lines Matching refs:header

45 	size_t mmap_len, decomp_len = session->header.env.comp_mmap_len;  in perf_session__process_compressed_event()
71 src_size = event->pack.header.size - sizeof(struct perf_record_compressed); in perf_session__process_compressed_event()
116 if (perf_header__has_feat(&session->header, HEADER_STAT)) in perf_session__open()
203 perf_env__init(&session->header.env); in perf_session__new()
297 perf_env__exit(&session->header.env); in perf_session__delete()
536 void *end = (void *) event + event->header.size; in swap_sample_id_all()
546 struct perf_event_header *hdr = &event->header; in perf_event__all64_swap()
547 mem_bswap_64(hdr + 1, event->header.size - sizeof(*hdr)); in perf_event__all64_swap()
647 if (event->header.type == PERF_RECORD_SWITCH_CPU_WIDE) { in perf_event__switch_swap()
773 size = event->header.size; in perf_event__hdr_attr_swap()
805 size = event->header.size; in perf_event__auxtrace_info_swap()
1158 if (event->header.type != PERF_RECORD_SAMPLE && in perf_evlist__print_tstamp()
1208 file_offset, event->header.size, event->header.type); in dump_event()
1211 if (event->header.type == PERF_RECORD_SAMPLE && evlist->trace_event_sample_raw) in dump_event()
1218 event->header.size, perf_event__name(event->header.type)); in dump_event()
1230 event->header.misc, sample->pid, sample->tid, sample->ip, in dump_sample()
1304 if (event->header.type == PERF_RECORD_MMAP in machines__find_for_cpumode()
1305 || event->header.type == PERF_RECORD_MMAP2) in machines__find_for_cpumode()
1411 switch (event->header.type) { in machines__deliver_event()
1426 if (event->header.misc & PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT) in machines__deliver_event()
1509 if (event->header.type != PERF_RECORD_COMPRESSED || in perf_session__process_user_event()
1514 switch (event->header.type) { in perf_session__process_user_event()
1544 lseek(fd, file_offset + event->header.size, SEEK_SET); in perf_session__process_user_event()
1581 events_stats__inc(&evlist->stats, event->header.type); in perf_session__deliver_synth_event()
1583 if (event->header.type >= PERF_RECORD_USER_TYPE_START) in perf_session__deliver_synth_event()
1593 swap = perf_event__swap_ops[event->header.type]; in event_swap()
1607 if (session->one_mmap && !session->header.needs_swap) { in perf_session__peek_event()
1628 if (session->header.needs_swap) in perf_session__peek_event()
1629 perf_event_header__bswap(&event->header); in perf_session__peek_event()
1631 if (event->header.size < hdr_sz || event->header.size > buf_sz) in perf_session__peek_event()
1635 rest = event->header.size - hdr_sz; in perf_session__peek_event()
1640 if (session->header.needs_swap) in perf_session__peek_event()
1645 if (sample && event->header.type < PERF_RECORD_USER_TYPE_START && in perf_session__peek_event()
1661 if (session->header.needs_swap) in perf_session__process_event()
1664 if (event->header.type >= PERF_RECORD_HEADER_MAX) in perf_session__process_event()
1667 events_stats__inc(&evlist->stats, event->header.type); in perf_session__process_event()
1669 if (event->header.type >= PERF_RECORD_USER_TYPE_START) in perf_session__process_event()
1887 if (session->header.needs_swap) in __perf_session__process_pipe_events()
1888 perf_event_header__bswap(&event->header); in __perf_session__process_pipe_events()
1890 size = event->header.size; in __perf_session__process_pipe_events()
1924 head, event->header.size, event->header.type); in __perf_session__process_pipe_events()
1969 if (head + sizeof(event->header) > mmap_size) in prefetch_event()
1974 perf_event_header__bswap(&event->header); in prefetch_event()
1976 event_size = event->header.size; in prefetch_event()
1982 perf_event_header__bswap(&event->header); in prefetch_event()
2020 session->header.needs_swap); in __perf_session__process_decomp_events()
2025 size = event->header.size; in __perf_session__process_decomp_events()
2030 decomp->file_pos + decomp->head, event->header.size, event->header.type); in __perf_session__process_decomp_events()
2099 if (session->header.needs_swap) { in reader__process_events()
2120 event = fetch_mmaped_event(head, mmap_size, buf, session->header.needs_swap); in reader__process_events()
2136 size = event->header.size; in reader__process_events()
2143 file_offset + head, event->header.size, in reader__process_events()
2144 event->header.type, strerror(-skip)); in reader__process_events()
2182 .data_size = session->header.data_size, in __perf_session__process_events()
2183 .data_offset = session->header.data_offset, in __perf_session__process_events()
2292 if (perf_header__has_feat(&session->header, HEADER_AUXTRACE)) in perf_session__fprintf_nr_events()
2327 int nr_cpus = min(session->header.env.nr_cpus_avail, MAX_NR_CPUS); in perf_session__cpu_bitmap()
2415 max_nr = (ie->header.size - sizeof(struct perf_record_id_index)) / in perf_event__process_id_index()