]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf top: Use perf_evsel__open
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 12 Jan 2011 12:52:47 +0000 (10:52 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 22 Jan 2011 21:56:29 +0000 (19:56 -0200)
commit72cb7013e08dec29631e0447f9496b7bacd3e14b
treea26ccf04710cdc06f03fffafe5a09f4f6503abf4
parent9d04f1781772e11bd58806391555fc23ebb54377
perf top: Use perf_evsel__open

Now that it handles group_fd and inherit we can use it, sharing it with
stat.

Next step: 'perf record' should use, then move the mmap_array out of
->priv and into perf_evsel, with top and record sharing this, and at the
same time, write a 'perf test' stress test.

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/builtin-top.c