perf session: Don't report zero period samples for slave events
authorJiri Olsa <jolsa@kernel.org>
Wed, 20 Feb 2019 12:27:55 +0000 (13:27 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Feb 2019 19:07:51 +0000 (16:07 -0300)
commit529c1a9e18c3b470d2eff7879923eda40b1431db
tree5137d628a7b12a4761bfb8693abf3059a62771e7
parentff7a4f98d52cd3f13b1f4f6f22208498b0c113f7
perf session: Don't report zero period samples for slave events

There's no reason to deliver a sample with zero period.  It means there
was no value for slave event since its last group leader sample.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190220122800.864-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c