Re: [iovisor-dev] read perf counters

2016-07-25 Thread riya khanna via iovisor-dev
Thanks Brenden! I will try with your changes. Meanwhile please let me know if you add missing functionality. On Mon, Jul 25, 2016 at 8:14 PM, Brenden Blanco wrote: > This needs support in bcc. > > I had a patch laying around that I never finished, you can find the partial > support here: > http

Re: [iovisor-dev] read perf counters

2016-07-25 Thread Brenden Blanco via iovisor-dev
This needs support in bcc. I had a patch laying around that I never finished, you can find the partial support here: https://github.com/iovisor/bcc/tree/perf-counter It shouldn't be too hard to finalize that, let me see what I can do. On Mon, Jul 25, 2016 at 4:11 PM, riya khanna via iovisor-dev

Re: [iovisor-dev] read perf counters

2016-07-25 Thread riya khanna via iovisor-dev
So I fixed the error above by using "count = my_map.perf_read(key);" as opposed to "count = bpf_perf_event_read(&my_map, key);". However, how do I selectively enable counters (e.g. instructions, cache misses, etc.)? Thanks, Riya On Mon, Jul 25, 2016 at 9:58 AM, riya khanna wrote: > Hi, > > I'm t

Re: [iovisor-dev] Todays call & filtering probes on strings

2016-07-25 Thread Brendan Gregg via iovisor-dev
On Fri, Jul 15, 2016 at 1:48 PM, Alexei Starovoitov < alexei.starovoi...@gmail.com> wrote: > On Fri, Jul 15, 2016 at 12:56 AM, Sasha Goldshtein > wrote: > > On Fri, Jul 15, 2016 at 3:59 AM Alexei Starovoitov > > wrote: > >> > >> On Wed, Jul 13, 2016 at 4:17 PM, Kyle Laracey via iovisor-dev > >>

[iovisor-dev] read perf counters

2016-07-25 Thread riya khanna via iovisor-dev
Hi, I'm trying to read perf counters using bpf. However, adding BPF_PERF_ARRAY reports error: bpf: Invalid argument unrecognized bpf_ld_imm64 inns Is there an example/sample to read perf counters that I can follow? The code below is what I'm trying to execute. Thanks, Riya # load BPF program