From c518d3a7f73a441b6cfa283244bd829509f4b0f4 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 22 Oct 2015 23:43:35 -0700 Subject: [PATCH] update bpf kernel header --- include/linux/bpf.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 689be2e8..37ba6017 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -287,6 +287,17 @@ enum bpf_func_id { * Return: realm if != 0 */ BPF_FUNC_get_route_realm, + + /** + * bpf_perf_event_output(ctx, map, index, data, size) - output perf raw sample + * @ctx: struct pt_regs* + * @map: pointer to perf_event_array map + * @index: index of event in the map + * @data: data on stack to be output as raw data + * @size: size of data + * Return: 0 on success + */ + BPF_FUNC_perf_event_output, __BPF_FUNC_MAX_ID, };