Re: [PATCH v2 0/5] bpf: Introduce the new ability of eBPF programs to access hardware PMU counter

2015-07-24 Thread xiakaixu
于 2015/7/24 7:33, Daniel Borkmann 写道: > On 07/22/2015 10:09 AM, Kaixu Xia wrote: >> Previous patch v1 url: >> https://lkml.org/lkml/2015/7/17/287 > > [ Sorry to chime in late, just noticed this series now as I wasn't in Cc for > the core BPF changes. More below ... ] Sorry about this, will add

Re: [PATCH v2 0/5] bpf: Introduce the new ability of eBPF programs to access hardware PMU counter

2015-07-23 Thread Daniel Borkmann
On 07/22/2015 10:09 AM, Kaixu Xia wrote: Previous patch v1 url: https://lkml.org/lkml/2015/7/17/287 [ Sorry to chime in late, just noticed this series now as I wasn't in Cc for the core BPF changes. More below ... ] This patchset allows user read PMU events in the following way: 1. Open t

[PATCH v2 0/5] bpf: Introduce the new ability of eBPF programs to access hardware PMU counter

2015-07-22 Thread Kaixu Xia
Previous patch v1 url: https://lkml.org/lkml/2015/7/17/287 This patchset allows user read PMU events in the following way: 1. Open the PMU using perf_event_open() (for each CPUs or for each processes he/she'd like to watch); 2. Create a BPF_MAP_TYPE_PERF_EVENT_ARRAY BPF map; 3. Insert FDs