Re: [PATCH v2 0/3] perf script python: Add more PMU fields

2018-06-06 Thread Arnaldo Carvalho de Melo
Em Thu, May 31, 2018 at 06:55:01PM -0700, Andi Kleen escreveu: > On Fri, Jun 01, 2018 at 05:01:00PM +0800, Jin Yao wrote: > > When doing pmu sampling and then running a script with > > perf script -s script.py, the process_event function gets > > dictionary with some fields from the perf ring buffe

Re: [PATCH v2 0/3] perf script python: Add more PMU fields

2018-05-31 Thread Andi Kleen
On Fri, Jun 01, 2018 at 05:01:00PM +0800, Jin Yao wrote: > When doing pmu sampling and then running a script with > perf script -s script.py, the process_event function gets > dictionary with some fields from the perf ring buffer > (like ip, sym, callchain etc). > > But we miss quite a few fields

[PATCH v2 0/3] perf script python: Add more PMU fields

2018-05-31 Thread Jin Yao
When doing pmu sampling and then running a script with perf script -s script.py, the process_event function gets dictionary with some fields from the perf ring buffer (like ip, sym, callchain etc). But we miss quite a few fields we report now, for example, LBRs,data source,weight,transaction,iregs