OSDN Git Service

perf session: Don't count per evsel events
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 10 Oct 2014 18:12:15 +0000 (15:12 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 10 Oct 2014 18:15:32 +0000 (15:15 -0300)
commitc2329ade22844054f4dce79fb9358d8f9f0421a5
tree41b720af62f440d039a0488a0305a256bee4cb3b
parent4ea062ed431d00153af0ac370cb6fef0620e5fa1
perf session: Don't count per evsel events

PERF_RECORD_SAMPLE was not being counted here and is the only per-evsel
thing anyway, the other events were not mapping to a evsel.

With this we don't require that evsels used with a perf_session need to
have space for hists, like the ones in annotate, report, top.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
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-kzchpz0l1mhrsfpkirz086m2@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c