]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
perf report: Properly handle branch count in match_chain()
authorMilian Wolff <milian.wolff@kdab.com>
Fri, 20 Oct 2017 15:14:47 +0000 (12:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Oct 2017 13:50:37 +0000 (10:50 -0300)
commitbf36eb5c4b3ef0ebfb19b1a67a5fa5821e6c9fa7
treed07d474dad53a30483d5753b3dfca3776123fae5
parentaa441895f7b4ff5394d4964a8e6749f3866e44d0
perf report: Properly handle branch count in match_chain()

Some of the code paths I introduced before returned too early without
running the code to handle a node's branch count.  By refactoring
match_chain to only have one exit point, this can be remedied.

Signed-off-by: Milian Wolff <milian.wolff@kdab.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1707691.qaJ269GSZW@agathebauer
Link: http://lkml.kernel.org/r/20171018185350.14893-2-milian.wolff@kdab.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/callchain.c