perf pmu: Split perf_pmu__new_alias()
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Wed, 10 Jun 2015 07:25:08 +0000 (00:25 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 23 Jun 2015 21:21:30 +0000 (18:21 -0300)
commit70c646e0e47b51c8fa431f9ec1962f7d6e512860
treef94a48caa2eb22e1d2c2a71debe1bc8eb613327e
parentc5de47f2e803c7e6ffc0a34b174d4d009c8bd8e1
perf pmu: Split perf_pmu__new_alias()

Separate the event parsing code in perf_pmu__new_alias() out into a
separate function __perf_pmu__new_alias() so that code can be called
indepdently.

This is based on an earlier patch from Andi Kleen.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/1433921123-25327-5-git-send-email-sukadev@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/pmu.c