• Home
  • Raw
  • Download

Lines Matching refs:header

6920 static void __perf_event_header__init_id(struct perf_event_header *header,  in __perf_event_header__init_id()  argument
6926 header->size += event->id_header_size; in __perf_event_header__init_id()
6949 void perf_event_header__init_id(struct perf_event_header *header, in perf_event_header__init_id() argument
6954 __perf_event_header__init_id(header, data, event, event->attr.sample_type); in perf_event_header__init_id()
7104 struct perf_event_header *header, in perf_output_sample() argument
7110 perf_output_put(handle, *header); in perf_output_sample()
7428 void perf_prepare_sample(struct perf_event_header *header, in perf_prepare_sample() argument
7436 header->type = PERF_RECORD_SAMPLE; in perf_prepare_sample()
7437 header->size = sizeof(*header) + event->header_size; in perf_prepare_sample()
7439 header->misc = 0; in perf_prepare_sample()
7440 header->misc |= perf_misc_flags(regs); in perf_prepare_sample()
7447 __perf_event_header__init_id(header, data, event, filtered_sample_type); in perf_prepare_sample()
7460 header->size += size * sizeof(u64); in perf_prepare_sample()
7486 header->size += size; in perf_prepare_sample()
7498 header->size += size; in perf_prepare_sample()
7513 header->size += size; in perf_prepare_sample()
7526 stack_size = perf_sample_ustack_size(stack_size, header->size, in perf_prepare_sample()
7538 header->size += size; in perf_prepare_sample()
7567 header->size += size; in perf_prepare_sample()
7598 header->size += sizeof(u64); /* size */ in perf_prepare_sample()
7606 size = min_t(size_t, U16_MAX - header->size, in perf_prepare_sample()
7611 WARN_ON_ONCE(size + header->size > U16_MAX); in perf_prepare_sample()
7612 header->size += size; in perf_prepare_sample()
7622 WARN_ON_ONCE(header->size & 7); in perf_prepare_sample()
7635 struct perf_event_header header; in __perf_event_output() local
7641 perf_prepare_sample(&header, data, event, regs); in __perf_event_output()
7643 err = output_begin(&handle, data, event, header.size); in __perf_event_output()
7647 perf_output_sample(&handle, &header, data, event); in __perf_event_output()
7685 struct perf_event_header header; member
7698 .header = { in perf_event_read_event()
7708 perf_event_header__init_id(&read_event.header, &sample, event); in perf_event_read_event()
7709 ret = perf_output_begin(&handle, &sample, event, read_event.header.size); in perf_event_read_event()
7947 struct perf_event_header header; member
7971 int ret, size = task_event->event_id.header.size; in perf_event_task_output()
7976 perf_event_header__init_id(&task_event->event_id.header, &sample, event); in perf_event_task_output()
7979 task_event->event_id.header.size); in perf_event_task_output()
7986 if (task_event->event_id.header.type == PERF_RECORD_EXIT) { in perf_event_task_output()
8004 task_event->event_id.header.size = size; in perf_event_task_output()
8022 .header = { in perf_event_task()
8056 struct perf_event_header header; member
8074 int size = comm_event->event_id.header.size; in perf_event_comm_output()
8080 perf_event_header__init_id(&comm_event->event_id.header, &sample, event); in perf_event_comm_output()
8082 comm_event->event_id.header.size); in perf_event_comm_output()
8098 comm_event->event_id.header.size = size; in perf_event_comm_output()
8113 comm_event->event_id.header.size = sizeof(comm_event->event_id) + size; in perf_event_comm_event()
8132 .header = { in perf_event_comm()
8153 struct perf_event_header header; member
8173 u16 header_size = namespaces_event->event_id.header.size; in perf_event_namespaces_output()
8179 perf_event_header__init_id(&namespaces_event->event_id.header, in perf_event_namespaces_output()
8182 namespaces_event->event_id.header.size); in perf_event_namespaces_output()
8197 namespaces_event->event_id.header.size = header_size; in perf_event_namespaces_output()
8228 .header = { in perf_event_namespaces()
8284 struct perf_event_header header; member
8300 u16 header_size = cgroup_event->event_id.header.size; in perf_event_cgroup_output()
8306 perf_event_header__init_id(&cgroup_event->event_id.header, in perf_event_cgroup_output()
8309 cgroup_event->event_id.header.size); in perf_event_cgroup_output()
8320 cgroup_event->event_id.header.size = header_size; in perf_event_cgroup_output()
8335 .header = { in perf_event_cgroup()
8362 cgroup_event.event_id.header.size += size; in perf_event_cgroup()
8391 struct perf_event_header header; member
8418 int size = mmap_event->event_id.header.size; in perf_event_mmap_output()
8419 u32 type = mmap_event->event_id.header.type; in perf_event_mmap_output()
8427 mmap_event->event_id.header.type = PERF_RECORD_MMAP2; in perf_event_mmap_output()
8428 mmap_event->event_id.header.size += sizeof(mmap_event->maj); in perf_event_mmap_output()
8429 mmap_event->event_id.header.size += sizeof(mmap_event->min); in perf_event_mmap_output()
8430 mmap_event->event_id.header.size += sizeof(mmap_event->ino); in perf_event_mmap_output()
8431 mmap_event->event_id.header.size += sizeof(mmap_event->ino_generation); in perf_event_mmap_output()
8432 mmap_event->event_id.header.size += sizeof(mmap_event->prot); in perf_event_mmap_output()
8433 mmap_event->event_id.header.size += sizeof(mmap_event->flags); in perf_event_mmap_output()
8436 perf_event_header__init_id(&mmap_event->event_id.header, &sample, event); in perf_event_mmap_output()
8438 mmap_event->event_id.header.size); in perf_event_mmap_output()
8448 mmap_event->event_id.header.misc |= PERF_RECORD_MISC_MMAP_BUILD_ID; in perf_event_mmap_output()
8475 mmap_event->event_id.header.size = size; in perf_event_mmap_output()
8476 mmap_event->event_id.header.type = type; in perf_event_mmap_output()
8584 mmap_event->event_id.header.misc |= PERF_RECORD_MISC_MMAP_DATA; in perf_event_mmap_event()
8586 mmap_event->event_id.header.size = sizeof(mmap_event->event_id) + size; in perf_event_mmap_event()
8712 .header = { in perf_event_mmap()
8741 struct perf_event_header header; in perf_event_aux_event() member
8746 .header = { in perf_event_aux_event()
8757 perf_event_header__init_id(&rec.header, &sample, event); in perf_event_aux_event()
8758 ret = perf_output_begin(&handle, &sample, event, rec.header.size); in perf_event_aux_event()
8779 struct perf_event_header header; in perf_log_lost_samples() member
8782 .header = { in perf_log_lost_samples()
8790 perf_event_header__init_id(&lost_samples_event.header, &sample, event); in perf_log_lost_samples()
8793 lost_samples_event.header.size); in perf_log_lost_samples()
8811 struct perf_event_header header; member
8834 se->event_id.header.type = PERF_RECORD_SWITCH; in perf_event_switch_output()
8835 se->event_id.header.size = sizeof(se->event_id.header); in perf_event_switch_output()
8837 se->event_id.header.type = PERF_RECORD_SWITCH_CPU_WIDE; in perf_event_switch_output()
8838 se->event_id.header.size = sizeof(se->event_id); in perf_event_switch_output()
8845 perf_event_header__init_id(&se->event_id.header, &sample, event); in perf_event_switch_output()
8847 ret = perf_output_begin(&handle, &sample, event, se->event_id.header.size); in perf_event_switch_output()
8852 perf_output_put(&handle, se->event_id.header); in perf_event_switch_output()
8872 .header = { in perf_event_switch()
8883 switch_event.event_id.header.misc |= in perf_event_switch()
8901 struct perf_event_header header; in perf_log_throttle() member
8906 .header = { in perf_log_throttle()
8917 throttle_event.header.type = PERF_RECORD_UNTHROTTLE; in perf_log_throttle()
8919 perf_event_header__init_id(&throttle_event.header, &sample, event); in perf_log_throttle()
8922 throttle_event.header.size); in perf_log_throttle()
8939 struct perf_event_header header; member
8962 perf_event_header__init_id(&ksymbol_event->event_id.header, in perf_event_ksymbol_output()
8965 ksymbol_event->event_id.header.size); in perf_event_ksymbol_output()
9004 .header = { in perf_event_ksymbol()
9029 struct perf_event_header header; member
9052 perf_event_header__init_id(&bpf_event->event_id.header, in perf_event_bpf_output()
9055 bpf_event->event_id.header.size); in perf_event_bpf_output()
9115 .header = { in perf_event_bpf_event()
9139 struct perf_event_header header; member
9161 perf_event_header__init_id(&text_poke_event->event_id.header, &sample, event); in perf_event_text_poke_output()
9164 text_poke_event->event_id.header.size); in perf_event_text_poke_output()
9203 .header = { in perf_event_text_poke()
9225 struct perf_event_header header; in perf_log_itrace_start() member
9238 rec.header.type = PERF_RECORD_ITRACE_START; in perf_log_itrace_start()
9239 rec.header.misc = 0; in perf_log_itrace_start()
9240 rec.header.size = sizeof(rec); in perf_log_itrace_start()
9244 perf_event_header__init_id(&rec.header, &sample, event); in perf_log_itrace_start()
9245 ret = perf_output_begin(&handle, &sample, event, rec.header.size); in perf_log_itrace_start()
9261 struct perf_event_header header; in perf_report_aux_output_id() member
9269 rec.header.type = PERF_RECORD_AUX_OUTPUT_HW_ID; in perf_report_aux_output_id()
9270 rec.header.misc = 0; in perf_report_aux_output_id()
9271 rec.header.size = sizeof(rec); in perf_report_aux_output_id()
9274 perf_event_header__init_id(&rec.header, &sample, event); in perf_report_aux_output_id()
9275 ret = perf_output_begin(&handle, &sample, event, rec.header.size); in perf_report_aux_output_id()