]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists: Update hists' total period when adding entries
authorNamhyung Kim <namhyung@kernel.org>
Wed, 27 Jan 2016 15:40:49 +0000 (00:40 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 1 Feb 2016 19:45:44 +0000 (16:45 -0300)
commit346119a65652c1fb9a1bb307eca3a3953a34aa00
tree7bf1f34cc4cf11c3a5bafe5297d3398ff4234ce7
parent000d52823b9a091fd3ac81b6b7c423b4d7270d99
perf hists: Update hists' total period when adding entries

Currently the hist entry addition path doesn't update total_period of
hists and it's calculated during 'resort' path.  But the resort path
needs to know the total period before doing its job because it's used
for calculating percent limit of callchains in hist entries.

So this patch update the total period during the addition path.  It
makes the percent limit of callchains working (again).

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1453909257-26015-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c