Re: [RFC v1 09/14] krsi: Add a helper function for bpf_perf_event_output

2019-09-14 Thread Yonghong Song
On 9/10/19 12:55 PM, KP Singh wrote: > From: KP Singh > > This helper is mapped to the existing operation > BPF_FUNC_perf_event_output. > > An example usage of this function would be: > > #define BUF_SIZE 64; > > struct bpf_map_def SEC("maps") perf_map = { > .type =

[RFC v1 09/14] krsi: Add a helper function for bpf_perf_event_output

2019-09-10 Thread KP Singh
From: KP Singh This helper is mapped to the existing operation BPF_FUNC_perf_event_output. An example usage of this function would be: #define BUF_SIZE 64; struct bpf_map_def SEC("maps") perf_map = { .type = BPF_MAP_TYPE_PERF_EVENT_ARRAY, .key_size = sizeof(int),