Re: [iovisor-dev] read perf counters

2016-07-29 Thread riya khanna via iovisor-dev
Thanks Brenden! I'm working with your branch for now. Additionally, I'm unable to create software events (see exception below). Just wanted to bring this to your attention. Traceback (most recent call last): File "./test_bpf.py", line 176, in sw_clock.open_perf_event(1, 0) File "/usr/l

Re: [iovisor-dev] read perf counters

2016-07-29 Thread Brenden Blanco via iovisor-dev
On Fri, Jul 29, 2016 at 10:21 AM, riya khanna wrote: > I'm testing perf counters on a 8-core machine. > > since BPF_PERF_ARRAY.perf_read(cpu) reads from local CPU, I'm > aggregating counters across all cpus by doing: > > BPF_PERF_ARRAY(counter, 32); > > for (key = 0; key < 8; key++) > counter

Re: [iovisor-dev] read perf counters

2016-07-29 Thread riya khanna via iovisor-dev
I'm testing perf counters on a 8-core machine. since BPF_PERF_ARRAY.perf_read(cpu) reads from local CPU, I'm aggregating counters across all cpus by doing: BPF_PERF_ARRAY(counter, 32); for (key = 0; key < 8; key++) counter.perf_read(key); However, this reports error: bpf: Invalid argument

Re: [iovisor-dev] Can't run BCC on Debian

2016-07-29 Thread Nan Xiao via iovisor-dev
Hi Brenden & Kyle, Thanks very much for your kind reply! I decide to download clang && LLVM source code (v3.8.1), and build it myself. The LLVM build process is smooth, while compiling clang, it is hang, and seems dead-lock (I am not sure): [ 91%] Built target clangFormat [ 92%] Built target dia