diff options
author | Jiri Olsa <jolsa@kernel.org> | 2014-06-10 22:47:40 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-08-12 12:02:59 -0300 |
commit | 36522f5cf2ad280c971557e04120d52f9330ed36 (patch) | |
tree | 6f63079523d8129704a325e2466c80ab2b8063af /tools/perf/util/session.c | |
parent | fa4e5c67a2d169b9ef83f51b94e1d4a562ddfc0f (diff) |
perf tools: Add ordered_events__init function
Adding ordered_events__init function for struct ordered_events struct
initialization.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-g6dx35hed8g14eh1ygx4uzp6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 0ccf051247f6..7f5851e433bb 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -75,11 +75,7 @@ struct perf_session *perf_session__new(struct perf_data_file *file, goto out; session->repipe = repipe; - INIT_LIST_HEAD(&session->ordered_events.events); - INIT_LIST_HEAD(&session->ordered_events.cache); - INIT_LIST_HEAD(&session->ordered_events.to_free); - session->ordered_events.max_alloc_size = (u64) -1; - session->ordered_events.cur_alloc_size = 0; + ordered_events__init(&session->ordered_events); machines__init(&session->machines); if (file) { |