perf ordered_events: Stop using tool->ordered_events
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 22 Feb 2015 21:52:47 +0000 (13:52 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 Feb 2015 14:39:38 +0000 (11:39 -0300)
commit280836812f5f821d26393268010f211160874810
tree97b9123cb6fa346fbd8fb32e129a6b058fcc7a08
parent9fa8727aa4d98d35ca50ef9cd8a50c6468af921d
perf ordered_events: Stop using tool->ordered_events

To figure out if ordered_events are being used when doing a flush
operation, it is enough to check if there were in fact some events
queued, i.e. look at oe->nr_events.

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: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-1c5r404vy766kt5nflv88uag@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ordered-events.c