Re: [PATCH net-next] bpf: update perf event helper function signature and documentation

2017-05-25 Thread David Miller
From: Teng Qin Date: Tue, 23 May 2017 03:17:31 + > Alexei said it was due to Clang not taking u64, u32 etc. for compilation. > I didn’t know the context and just used them. But apparently, something > changed and now they build and run OK.. These types are %100 compiler agnostic. Clang

Re: [PATCH net-next] bpf: update perf event helper function signature and documentation

2017-05-22 Thread Teng Qin
On 5/22/17, 20:08, "David Miller" wrote: From: Teng Qin Date: Tue, 23 May 2017 00:39:34 + > diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h > index 9a9c95f..a94ce42 100644 > --- a/samples/bpf/bpf_helpers.h > +++ b/samples/bpf/bpf_helpers.h

Re: [PATCH net-next] bpf: update perf event helper function signature and documentation

2017-05-22 Thread David Miller
From: Teng Qin Date: Tue, 23 May 2017 00:39:34 + > diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h > index 9a9c95f..a94ce42 100644 > --- a/samples/bpf/bpf_helpers.h > +++ b/samples/bpf/bpf_helpers.h > @@ -37,9 +37,8 @@ static int (*bpf_clone_redirect)(void *ctx, int ifindex

[PATCH net-next] bpf: update perf event helper function signature and documentation

2017-05-22 Thread Teng Qin
From: Teng Qin This commit updates function signature of the bpf_perf_event_output and bpf_perf_event_read helpers to match their implementation. Also updates their documentation in the header files. Signed-off-by: Teng Qin Acked-by: Alexei Starovoitov --- include/uapi/linux/bpf.h | 11