perf tools: Use perf_evsel__newtp in the event parser
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Sep 2012 20:13:07 +0000 (17:13 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Sep 2012 21:29:19 +0000 (18:29 -0300)
commit82fe1c290cd26a3d092beb1e9755647d284a4134
tree785e13a27c399e9a74ef5de89cd5324e61d9c2a6
parente48ffe2bd49936314d367a8c6b5eaaa17d581d13
perf tools: Use perf_evsel__newtp in the event parser

Elliminating code duplication.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-9v4zl7ldlp8v6azrpsu5lupk@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c