perf evsel: Introduce perf_evsel__{in,ex}it
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Jan 2011 23:41:45 +0000 (21:41 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Jan 2011 15:18:05 +0000 (13:18 -0200)
commitef1d1af28ca37fdbc2745da040529cd2953c1af5
treedff4a86fbc813ca808ce0607e3e041cdcdca5cec
parentd0dd74e853a0a6f37e8061d6d50be41c7034c54c
perf evsel: Introduce perf_evsel__{in,ex}it

Out of the {con,des}structor, as in interpreted language bindings we will
need to go back from the wrapper object to the real thing. In that case
using container_of will save us to have an extra pointer in the perf_evsel
struct.

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
tools/perf/util/evsel.c
tools/perf/util/evsel.h