Re: [PATCH net-next 1/2] perf, bpf: add support for HW_CACHE and RAW events

2017-05-23 Thread Alexei Starovoitov
On 5/23/17 9:31 AM, Peter Zijlstra wrote: On Tue, May 23, 2017 at 07:38:08AM -0700, Alexei Starovoitov wrote: On 5/23/17 12:42 AM, Peter Zijlstra wrote: On Mon, May 22, 2017 at 03:48:39PM -0700, Alexei Starovoitov wrote: From: Teng Qin This commit adds support for attach BPF program to RAW a

Re: [PATCH net-next 1/2] perf, bpf: add support for HW_CACHE and RAW events

2017-05-23 Thread Peter Zijlstra
On Tue, May 23, 2017 at 07:38:08AM -0700, Alexei Starovoitov wrote: > On 5/23/17 12:42 AM, Peter Zijlstra wrote: > > On Mon, May 22, 2017 at 03:48:39PM -0700, Alexei Starovoitov wrote: > > > From: Teng Qin > > > > > > This commit adds support for attach BPF program to RAW and HW_CACHE type > > >

Re: [PATCH net-next 1/2] perf, bpf: add support for HW_CACHE and RAW events

2017-05-23 Thread Alexei Starovoitov
On 5/23/17 12:42 AM, Peter Zijlstra wrote: On Mon, May 22, 2017 at 03:48:39PM -0700, Alexei Starovoitov wrote: From: Teng Qin This commit adds support for attach BPF program to RAW and HW_CACHE type events, and support for read HW_CACHE type event counters in BPF program. Existing code logic a

Re: [PATCH net-next 1/2] perf, bpf: add support for HW_CACHE and RAW events

2017-05-23 Thread Peter Zijlstra
On Mon, May 22, 2017 at 03:48:39PM -0700, Alexei Starovoitov wrote: > From: Teng Qin > > This commit adds support for attach BPF program to RAW and HW_CACHE type > events, and support for read HW_CACHE type event counters in BPF > program. Existing code logic already supports them, so this commit

[PATCH net-next 1/2] perf, bpf: add support for HW_CACHE and RAW events

2017-05-22 Thread Alexei Starovoitov
From: Teng Qin This commit adds support for attach BPF program to RAW and HW_CACHE type events, and support for read HW_CACHE type event counters in BPF program. Existing code logic already supports them, so this commit is just update Enum value checks. Signed-off-by: Teng Qin Signed-off-by: Al