perf evlist: Split perf_evlist__id_hash
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 5 Mar 2011 01:29:39 +0000 (22:29 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 6 Mar 2011 16:10:45 +0000 (13:10 -0300)
commit3d3b5e95997208067c963923db90ed1517565d14
treebd48dc7bd13bd8532c795064a1aa1c74ce74d587
parent60098917c06d154d06ce030c125266eab9e60768
perf evlist: Split perf_evlist__id_hash

The previous situation was to receive an fd from where to read the event
ID.

Spin off a routine for when we have the ID handy, not having to read it
from some fd.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h