Re: [PATCH 8/8] perf, tools, test: Add test case for alias and JSON parsing
From: Jiri Olsa
Date: Tue Mar 11 2014 - 10:32:36 EST
On Wed, Mar 05, 2014 at 11:49:38AM -0800, Andi Kleen wrote:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> Add a simple test case to perf test that runs perf download and parses
> all the events. This needs adding an all event iterator to pmu.c
[jolsa@krava perf]$ ./perf test -vvv 25
25: Test parsing JSON aliases :
--- start ---
invalid or unsupported event: 'energy-gpu'
Parsed 522 events: ---- end ----
Test parsing JSON aliases: FAILED!
I think the problem is in parse_events_fixup, which assumes
the 'cpu' pmu globaly for all events
jirka
--
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/