perf record: Always force PERF_RECORD_FINISHED_ROUND event
authorJiri Olsa <jolsa@kernel.org>
Fri, 25 Jul 2014 14:56:15 +0000 (16:56 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Jul 2014 15:13:05 +0000 (12:13 -0300)
commit33bf7481971a622a2b8c8aaa0e5e61a6eaeecd71
treeb07d2a35ec5fc974cc6b13d8ea14b7772a10f32f
parenta7a2b8b4ce9e0bfd085c5797d535487594a71882
perf record: Always force PERF_RECORD_FINISHED_ROUND event

The PERF_RECORD_FINISHED_ROUND synthetic record governs queue flushing
in reporting, so it needs to be stored for any kind of event.

The lack of such periodic flushing made the tools use more memory than
needed, as the reordering was being done only after processing all
events.  This was the case when no tracepoints were in the mix.

Forcing the PERF_RECORD_FINISHED_ROUND event to be stored for all event
types.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
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/r/1406300177-31805-18-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c