bpf: introduce bpf_perf_event_output() helper