perf timechart: Adjust perf timechart to the new power events
authorThomas Renninger <trenn@suse.de>
Mon, 3 Jan 2011 16:50:45 +0000 (17:50 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 4 Jan 2011 07:16:54 +0000 (08:16 +0100)
builtin-timechart must only pass -e power:xy events if they are supported by
the running kernel, otherwise try to fetch the old power:power{start,end}
events.

For this I added the tiny helper function:

   int is_valid_tracepoint(const char *event_string)

to parse-events.[hc], which could be more generic as an interface and support
hardware/software/... events, not only tracepoints, but someone else could
extend that if needed...

Signed-off-by: Thomas Renninger <trenn@suse.de>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
LKML-Reference: <1294073445-14812-4-git-send-email-trenn@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found