perf time-utils: Prevent percentage time range overlap
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 4 Jun 2019 13:00:12 +0000 (16:00 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Jun 2019 19:20:12 +0000 (16:20 -0300)
commitb16bfeb3db1b50273e95f539953c337be759500d
tree50377f501e7ee9cacd12fdeea9ba7844c4d52137
parentc763242a5e742f8fefda0bb6cfdf6a5a34ae5e10
perf time-utils: Prevent percentage time range overlap

Prevent percentage time range overlap. This is only a 1 nanosecond
change but makes the results more logical e.g. a sample cannot be in
both the first 10% and the second 20%.

Note, there is a later patch that adds a test for time-utils.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190604130017.31207-15-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/time-utils.c