Em Mon, Jun 06, 2016 at 09:31:16AM -0700, Andi Kleen escreveu: > > [root@jouet ~]# perf stat -e > > topdown-total-slots:u,cpu/event=topdown-total-slots/u usleep 1 > > event syntax error: 'topdown-total-slots:u,cpu/event=topdown-total-slots/u' > > \___ parser error
> > that it fails, Jiri, probably something obvious to you? :-) > Works for me here > > ./perf stat -e topdown-total-slots:u,cpu/event=topdown-total-slots/u sleep 1 > > Performance counter stats for 'sleep 1': > > 515,204 topdown-total-slots:u > > 514,712 cpu/event=topdown-total-slots/u > > > 1.001438114 seconds time elapsed > > Did you perhaps miss this hunk? Yeah, the build process seems to be buggy here, not noticing that change it seems not to have regenerated the .c files from that .l. After I removed the build dir and rebuilt everything, it works now, doing the docker-based lots-of-distros build now. - Arnaldo > --- a/tools/perf/util/parse-events.l > +++ b/tools/perf/util/parse-events.l > @@ -259,6 +259,7 @@ cycles-ct { return > str(yyscanner, PE_KERNEL_PMU_EVENT); } > cycles-t { return str(yyscanner, > PE_KERNEL_PMU_EVENT); } > mem-loads { return str(yyscanner, > PE_KERNEL_PMU_EVENT); } > mem-stores { return str(yyscanner, > PE_KERNEL_PMU_EVENT); } > +topdown-[a-z-]+ { return > str(yyscanner, PE_KERN > > -Andi > -- > a...@linux.intel.com -- Speaking for myself only