Lines Matching refs:handle
6672 perf_output_sample_regs(struct perf_output_handle *handle, in perf_output_sample_regs() argument
6683 perf_output_put(handle, val); in perf_output_sample_regs()
6766 perf_output_sample_ustack(struct perf_output_handle *handle, u64 dump_size, in perf_output_sample_ustack() argument
6772 perf_output_put(handle, size); in perf_output_sample_ustack()
6790 perf_output_put(handle, dump_size); in perf_output_sample_ustack()
6794 rem = __output_copy_user(handle, (void *) sp, dump_size); in perf_output_sample_ustack()
6797 perf_output_skip(handle, rem); in perf_output_sample_ustack()
6800 perf_output_put(handle, dyn_size); in perf_output_sample_ustack()
6844 struct perf_output_handle *handle, in perf_pmu_snapshot_aux() argument
6867 ret = event->pmu->snapshot_aux(event, handle, size); in perf_pmu_snapshot_aux()
6877 struct perf_output_handle *handle, in perf_aux_sample_output() argument
6892 size = perf_pmu_snapshot_aux(rb, sampler, handle, data->aux_size); in perf_aux_sample_output()
6913 perf_output_copy(handle, &zero, pad); in perf_aux_sample_output()
6957 static void __perf_event__output_id_sample(struct perf_output_handle *handle, in __perf_event__output_id_sample() argument
6963 perf_output_put(handle, data->tid_entry); in __perf_event__output_id_sample()
6966 perf_output_put(handle, data->time); in __perf_event__output_id_sample()
6969 perf_output_put(handle, data->id); in __perf_event__output_id_sample()
6972 perf_output_put(handle, data->stream_id); in __perf_event__output_id_sample()
6975 perf_output_put(handle, data->cpu_entry); in __perf_event__output_id_sample()
6978 perf_output_put(handle, data->id); in __perf_event__output_id_sample()
6982 struct perf_output_handle *handle, in perf_event__output_id_sample() argument
6986 __perf_event__output_id_sample(handle, sample); in perf_event__output_id_sample()
6989 static void perf_output_read_one(struct perf_output_handle *handle, in perf_output_read_one() argument
7011 __output_copy(handle, values, n * sizeof(u64)); in perf_output_read_one()
7014 static void perf_output_read_group(struct perf_output_handle *handle, in perf_output_read_group() argument
7048 __output_copy(handle, values, n * sizeof(u64)); in perf_output_read_group()
7063 __output_copy(handle, values, n * sizeof(u64)); in perf_output_read_group()
7079 static void perf_output_read(struct perf_output_handle *handle, in perf_output_read() argument
7098 perf_output_read_group(handle, event, enabled, running); in perf_output_read()
7100 perf_output_read_one(handle, event, enabled, running); in perf_output_read()
7103 void perf_output_sample(struct perf_output_handle *handle, in perf_output_sample() argument
7110 perf_output_put(handle, *header); in perf_output_sample()
7113 perf_output_put(handle, data->id); in perf_output_sample()
7116 perf_output_put(handle, data->ip); in perf_output_sample()
7119 perf_output_put(handle, data->tid_entry); in perf_output_sample()
7122 perf_output_put(handle, data->time); in perf_output_sample()
7125 perf_output_put(handle, data->addr); in perf_output_sample()
7128 perf_output_put(handle, data->id); in perf_output_sample()
7131 perf_output_put(handle, data->stream_id); in perf_output_sample()
7134 perf_output_put(handle, data->cpu_entry); in perf_output_sample()
7137 perf_output_put(handle, data->period); in perf_output_sample()
7140 perf_output_read(handle, event); in perf_output_sample()
7147 __output_copy(handle, data->callchain, size); in perf_output_sample()
7156 perf_output_put(handle, raw->size); in perf_output_sample()
7159 __output_custom(handle, frag->copy, in perf_output_sample()
7162 __output_copy(handle, frag->data, in perf_output_sample()
7170 __output_skip(handle, NULL, frag->pad); in perf_output_sample()
7179 perf_output_put(handle, raw); in perf_output_sample()
7190 perf_output_put(handle, data->br_stack->nr); in perf_output_sample()
7192 perf_output_put(handle, data->br_stack->hw_idx); in perf_output_sample()
7193 perf_output_copy(handle, data->br_stack->entries, size); in perf_output_sample()
7199 perf_output_put(handle, nr); in perf_output_sample()
7210 perf_output_put(handle, abi); in perf_output_sample()
7214 perf_output_sample_regs(handle, in perf_output_sample()
7221 perf_output_sample_ustack(handle, in perf_output_sample()
7227 perf_output_put(handle, data->weight.full); in perf_output_sample()
7230 perf_output_put(handle, data->data_src.val); in perf_output_sample()
7233 perf_output_put(handle, data->txn); in perf_output_sample()
7241 perf_output_put(handle, abi); in perf_output_sample()
7246 perf_output_sample_regs(handle, in perf_output_sample()
7253 perf_output_put(handle, data->phys_addr); in perf_output_sample()
7256 perf_output_put(handle, data->cgroup); in perf_output_sample()
7259 perf_output_put(handle, data->data_page_size); in perf_output_sample()
7262 perf_output_put(handle, data->code_page_size); in perf_output_sample()
7265 perf_output_put(handle, data->aux_size); in perf_output_sample()
7268 perf_aux_sample_output(event, handle, data); in perf_output_sample()
7275 struct perf_buffer *rb = handle->rb; in perf_output_sample()
7634 struct perf_output_handle handle; in __perf_event_output() local
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()
7649 perf_output_end(&handle); in __perf_event_output()
7695 struct perf_output_handle handle; in perf_event_read_event() local
7709 ret = perf_output_begin(&handle, &sample, event, read_event.header.size); in perf_event_read_event()
7713 perf_output_put(&handle, read_event); in perf_event_read_event()
7714 perf_output_read(&handle, event); in perf_event_read_event()
7715 perf_event__output_id_sample(event, &handle, &sample); in perf_event_read_event()
7717 perf_output_end(&handle); in perf_event_read_event()
7968 struct perf_output_handle handle; in perf_event_task_output() local
7978 ret = perf_output_begin(&handle, &sample, event, in perf_event_task_output()
7998 perf_output_put(&handle, task_event->event_id); in perf_event_task_output()
8000 perf_event__output_id_sample(event, &handle, &sample); in perf_event_task_output()
8002 perf_output_end(&handle); in perf_event_task_output()
8072 struct perf_output_handle handle; in perf_event_comm_output() local
8081 ret = perf_output_begin(&handle, &sample, event, in perf_event_comm_output()
8090 perf_output_put(&handle, comm_event->event_id); in perf_event_comm_output()
8091 __output_copy(&handle, comm_event->comm, in perf_event_comm_output()
8094 perf_event__output_id_sample(event, &handle, &sample); in perf_event_comm_output()
8096 perf_output_end(&handle); in perf_event_comm_output()
8171 struct perf_output_handle handle; in perf_event_namespaces_output() local
8181 ret = perf_output_begin(&handle, &sample, event, in perf_event_namespaces_output()
8191 perf_output_put(&handle, namespaces_event->event_id); in perf_event_namespaces_output()
8193 perf_event__output_id_sample(event, &handle, &sample); in perf_event_namespaces_output()
8195 perf_output_end(&handle); in perf_event_namespaces_output()
8298 struct perf_output_handle handle; in perf_event_cgroup_output() local
8308 ret = perf_output_begin(&handle, &sample, event, in perf_event_cgroup_output()
8313 perf_output_put(&handle, cgroup_event->event_id); in perf_event_cgroup_output()
8314 __output_copy(&handle, cgroup_event->path, cgroup_event->path_size); in perf_event_cgroup_output()
8316 perf_event__output_id_sample(event, &handle, &sample); in perf_event_cgroup_output()
8318 perf_output_end(&handle); in perf_event_cgroup_output()
8416 struct perf_output_handle handle; in perf_event_mmap_output() local
8437 ret = perf_output_begin(&handle, &sample, event, in perf_event_mmap_output()
8450 perf_output_put(&handle, mmap_event->event_id); in perf_event_mmap_output()
8456 __output_copy(&handle, size, 4); in perf_event_mmap_output()
8457 __output_copy(&handle, mmap_event->build_id, BUILD_ID_SIZE_MAX); in perf_event_mmap_output()
8459 perf_output_put(&handle, mmap_event->maj); in perf_event_mmap_output()
8460 perf_output_put(&handle, mmap_event->min); in perf_event_mmap_output()
8461 perf_output_put(&handle, mmap_event->ino); in perf_event_mmap_output()
8462 perf_output_put(&handle, mmap_event->ino_generation); in perf_event_mmap_output()
8464 perf_output_put(&handle, mmap_event->prot); in perf_event_mmap_output()
8465 perf_output_put(&handle, mmap_event->flags); in perf_event_mmap_output()
8468 __output_copy(&handle, mmap_event->file_name, in perf_event_mmap_output()
8471 perf_event__output_id_sample(event, &handle, &sample); in perf_event_mmap_output()
8473 perf_output_end(&handle); in perf_event_mmap_output()
8738 struct perf_output_handle handle; in perf_event_aux_event() local
8758 ret = perf_output_begin(&handle, &sample, event, rec.header.size); in perf_event_aux_event()
8763 perf_output_put(&handle, rec); in perf_event_aux_event()
8764 perf_event__output_id_sample(event, &handle, &sample); in perf_event_aux_event()
8766 perf_output_end(&handle); in perf_event_aux_event()
8774 struct perf_output_handle handle; in perf_log_lost_samples() local
8792 ret = perf_output_begin(&handle, &sample, event, in perf_log_lost_samples()
8797 perf_output_put(&handle, lost_samples_event); in perf_log_lost_samples()
8798 perf_event__output_id_sample(event, &handle, &sample); in perf_log_lost_samples()
8799 perf_output_end(&handle); in perf_log_lost_samples()
8825 struct perf_output_handle handle; in perf_event_switch_output() local
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()
8854 perf_output_put(&handle, se->event_id); in perf_event_switch_output()
8856 perf_event__output_id_sample(event, &handle, &sample); in perf_event_switch_output()
8858 perf_output_end(&handle); in perf_event_switch_output()
8896 struct perf_output_handle handle; in perf_log_throttle() local
8921 ret = perf_output_begin(&handle, &sample, event, in perf_log_throttle()
8926 perf_output_put(&handle, throttle_event); in perf_log_throttle()
8927 perf_event__output_id_sample(event, &handle, &sample); in perf_log_throttle()
8928 perf_output_end(&handle); in perf_log_throttle()
8955 struct perf_output_handle handle; in perf_event_ksymbol_output() local
8964 ret = perf_output_begin(&handle, &sample, event, in perf_event_ksymbol_output()
8969 perf_output_put(&handle, ksymbol_event->event_id); in perf_event_ksymbol_output()
8970 __output_copy(&handle, ksymbol_event->name, ksymbol_event->name_len); in perf_event_ksymbol_output()
8971 perf_event__output_id_sample(event, &handle, &sample); in perf_event_ksymbol_output()
8973 perf_output_end(&handle); in perf_event_ksymbol_output()
9045 struct perf_output_handle handle; in perf_event_bpf_output() local
9054 ret = perf_output_begin(&handle, &sample, event, in perf_event_bpf_output()
9059 perf_output_put(&handle, bpf_event->event_id); in perf_event_bpf_output()
9060 perf_event__output_id_sample(event, &handle, &sample); in perf_event_bpf_output()
9062 perf_output_end(&handle); in perf_event_bpf_output()
9153 struct perf_output_handle handle; in perf_event_text_poke_output() local
9163 ret = perf_output_begin(&handle, &sample, event, in perf_event_text_poke_output()
9168 perf_output_put(&handle, text_poke_event->event_id); in perf_event_text_poke_output()
9169 perf_output_put(&handle, text_poke_event->old_len); in perf_event_text_poke_output()
9170 perf_output_put(&handle, text_poke_event->new_len); in perf_event_text_poke_output()
9172 __output_copy(&handle, text_poke_event->old_bytes, text_poke_event->old_len); in perf_event_text_poke_output()
9173 __output_copy(&handle, text_poke_event->new_bytes, text_poke_event->new_len); in perf_event_text_poke_output()
9176 __output_copy(&handle, &padding, text_poke_event->pad); in perf_event_text_poke_output()
9178 perf_event__output_id_sample(event, &handle, &sample); in perf_event_text_poke_output()
9180 perf_output_end(&handle); in perf_event_text_poke_output()
9222 struct perf_output_handle handle; in perf_log_itrace_start() local
9245 ret = perf_output_begin(&handle, &sample, event, rec.header.size); in perf_log_itrace_start()
9250 perf_output_put(&handle, rec); in perf_log_itrace_start()
9251 perf_event__output_id_sample(event, &handle, &sample); in perf_log_itrace_start()
9253 perf_output_end(&handle); in perf_log_itrace_start()
9258 struct perf_output_handle handle; in perf_report_aux_output_id() local
9275 ret = perf_output_begin(&handle, &sample, event, rec.header.size); in perf_report_aux_output_id()
9280 perf_output_put(&handle, rec); in perf_report_aux_output_id()
9281 perf_event__output_id_sample(event, &handle, &sample); in perf_report_aux_output_id()
9283 perf_output_end(&handle); in perf_report_aux_output_id()