Re: [PATCH 1/9] perf, tools: Dont stop PMU parsing on alias parse error
From: Andi Kleen
Date: Tue Aug 11 2015 - 09:40:32 EST
On Tue, Aug 11, 2015 at 03:24:27PM +0200, Jiri Olsa wrote:
> On Tue, Aug 11, 2015 at 06:14:57AM -0700, Andi Kleen wrote:
> > > Which attribute parsing is failing for you?
> > The new .agg-per-core attribute I added later in the series.
> > I think it will happen to any not-yet-known attribute.
> alias can contain only terms defined in formats directory,
> and the *.XXX attributes parsing does not return error code
> can't see the failure, please get some example
Apply the kernel patch that adds several .agg-per-core attributes
Then try to use any cpu/.../ event
% perf stat -e cpu/event=0x3c/ true
invalid or unsupported event: 'cpu/event=0x3c/'
because the PMU parsing bailed out.
With patched perf (either this patch or the patch that adds
the .agg-per-core parsing) it works.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/