Re: perf probe and structs

2015-06-14 Thread Masami Hiramatsu
On 2015/06/13 4:27, Arnaldo Carvalho de Melo wrote: > Hi Masami, > > I tried somethig with perf probe today, namely to ask for a > variable that is a struct perf_event_attr to be collected after > the perf_event_open syscall copies it from userspace, and got this > message: > > [root@zoo ~]

Re: perf probe and structs

2015-06-12 Thread Alexei Starovoitov
On 6/12/15 12:27 PM, Arnaldo Carvalho de Melo wrote: Alexei, is this already possible with eBPF? I want to decode that attr_uptr thing :-) yes, it's already possible :) Here is working example from our experimental c+python thingy: #!/usr/bin/env python from bpf import BPF from subprocess imp

Re: perf probe and structs

2015-06-12 Thread Masami Hiramatsu
On 2015/06/13 4:27, Arnaldo Carvalho de Melo wrote: > Hi Masami, > > I tried somethig with perf probe today, namely to ask for a > variable that is a struct perf_event_attr to be collected after > the perf_event_open syscall copies it from userspace, and got this > message: > > [root@zoo ~]

perf probe and structs

2015-06-12 Thread Arnaldo Carvalho de Melo
Hi Masami, I tried somethig with perf probe today, namely to ask for a variable that is a struct perf_event_attr to be collected after the perf_event_open syscall copies it from userspace, and got this message: [root@zoo ~]# perf probe SYSC_perf_event_open:23 args Failed to find 'args' in