Re: [PATCHv2 perf/core 2/2] tools lib bpf: Sync with samples/bpf/libbpf

2016-11-16 Thread Joe Stringer
On 16 November 2016 at 19:39, Wangnan (F) wrote: > > > On 2016/11/17 10:46, Joe Stringer wrote: >> >> On 16 November 2016 at 18:10, Wangnan (F) wrote: >>> >>> I'm also working on improving bpf.c. Please have a look at: >>> >>> https://lkml.org/lkml/2016/11/14/1078 >>> >>> Since bpf.c is simple, I

Re: [PATCHv2 perf/core 2/2] tools lib bpf: Sync with samples/bpf/libbpf

2016-11-16 Thread Wangnan (F)
On 2016/11/17 10:46, Joe Stringer wrote: On 16 November 2016 at 18:10, Wangnan (F) wrote: I'm also working on improving bpf.c. Please have a look at: https://lkml.org/lkml/2016/11/14/1078 Since bpf.c is simple, I think we can add more functions and fixes gradually, instead of a full copy.

Re: [PATCHv2 perf/core 2/2] tools lib bpf: Sync with samples/bpf/libbpf

2016-11-16 Thread Joe Stringer
On 16 November 2016 at 19:21, Wangnan (F) wrote: > > > On 2016/11/17 10:46, Joe Stringer wrote: >> >> On 16 November 2016 at 18:10, Wangnan (F) wrote: >>> >>> I'm also working on improving bpf.c. Please have a look at: >>> >>> https://lkml.org/lkml/2016/11/14/1078 >>> >>> Since bpf.c is simple, I

Re: [PATCHv2 perf/core 2/2] tools lib bpf: Sync with samples/bpf/libbpf

2016-11-16 Thread Wangnan (F)
On 2016/11/17 10:46, Joe Stringer wrote: On 16 November 2016 at 18:10, Wangnan (F) wrote: I'm also working on improving bpf.c. Please have a look at: https://lkml.org/lkml/2016/11/14/1078 Since bpf.c is simple, I think we can add more functions and fixes gradually, instead of a full copy.

Re: [PATCHv2 perf/core 2/2] tools lib bpf: Sync with samples/bpf/libbpf

2016-11-16 Thread Joe Stringer
On 16 November 2016 at 18:10, Wangnan (F) wrote: > I'm also working on improving bpf.c. Please have a look at: > > https://lkml.org/lkml/2016/11/14/1078 > > Since bpf.c is simple, I think we can add more functions and fixes > gradually, instead of a full copy. > > See my inline comment below. Ah,

Re: [PATCHv2 perf/core 2/2] tools lib bpf: Sync with samples/bpf/libbpf

2016-11-16 Thread Wangnan (F)
I'm also working on improving bpf.c. Please have a look at: https://lkml.org/lkml/2016/11/14/1078 Since bpf.c is simple, I think we can add more functions and fixes gradually, instead of a full copy. See my inline comment below. On 2016/11/17 1:43, Joe Stringer wrote: Extend the tools/ versio

[PATCHv2 perf/core 2/2] tools lib bpf: Sync with samples/bpf/libbpf

2016-11-16 Thread Joe Stringer
Extend the tools/ version of libbpf to include all of the functionality provided in the samples/bpf version. Signed-off-by: Joe Stringer --- v2: Don't shift non-bpf changes across. Various type cleanups, removal of extraneous declarations --- tools/lib/bpf/bpf.c| 107