perf evsel: Introduce perf_evlist
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 11 Jan 2011 22:56:53 +0000 (20:56 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 22 Jan 2011 21:56:28 +0000 (19:56 -0200)
commit361c99a661a78ed22264649440e87fe4fe8da1f2
treea60bc86f132608f2d41c800760b41f6f54f8e7af
parent00e99a49f6f3a6b5a84ba8bf8f632c9b974bea7a
perf evsel: Introduce perf_evlist

Killing two more perf wide global variables: nr_counters and evsel_list
as a list_head.

There are more operations that will need more fields in perf_evlist,
like the pollfd for polling all the fds in a list of evsel instances.

Use option->value to pass the evsel_list to parse_{events,filters}.

LKML-Reference: <new-submission>
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>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile
tools/perf/builtin-record.c
tools/perf/builtin-stat.c
tools/perf/builtin-top.c
tools/perf/util/evlist.c [new file with mode: 0644]
tools/perf/util/evlist.h [new file with mode: 0644]
tools/perf/util/header.c
tools/perf/util/header.h
tools/perf/util/include/linux/list.h
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h