perf tools: Do not use __perf_session__process_events() directly
authorNamhyung Kim <namhyung@kernel.org>
Thu, 29 Jan 2015 08:06:43 +0000 (17:06 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Jan 2015 19:36:32 +0000 (16:36 -0300)
commit4ac30cf74b308fb01338e660d3471cd490a7958a
treeac57740782b921747bb474bf93654c36fac356af
parentf1f13af99a903ae873f5373e965508e0486c1c29
perf tools: Do not use __perf_session__process_events() directly

It's only used for perf record to process build-id because its file size
it's not fixed at this time due to remaining header features.

However data offset and size is available so that we can use the
perf_session__process_events() once we set the file size as the current
offset like for now.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1422518843-25818-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/session.c
tools/perf/util/session.h