* [PATCH 1/2] perf, tools: In branch stack mode use address history sorting
@ 2014-11-18 1:58 Andi Kleen
2014-11-18 1:58 ` [PATCH 2/2] perf, tools: Remove use of BUILD_BUG_ON Andi Kleen
2014-12-08 6:53 ` [tip:perf/core] perf report: In branch stack mode use address history sorting tip-bot for Andi Kleen
0 siblings, 2 replies; 3+ messages in thread
From: Andi Kleen @ 2014-11-18 1:58 UTC (permalink / raw)
To: acme; +Cc: linux-kernel, Andi Kleen
From: Andi Kleen <ak@linux.intel.com>
Enable CCKEY_ADDRESS address history sorting with --branch-history.
This makes get_srcline display the source lines correctly,
otherwise all history entries for a function a hunked into one.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
tools/perf/builtin-report.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index fb272ff..3936760 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -761,6 +761,7 @@ repeat:
symbol_conf.cumulate_callchain = false;
}
if (branch_call_mode) {
+ callchain_param.key = CCKEY_ADDRESS;
callchain_param.branch_callstack = 1;
symbol_conf.use_callchain = true;
callchain_register_param(&callchain_param);
--
1.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] perf, tools: Remove use of BUILD_BUG_ON
2014-11-18 1:58 [PATCH 1/2] perf, tools: In branch stack mode use address history sorting Andi Kleen
@ 2014-11-18 1:58 ` Andi Kleen
2014-12-08 6:53 ` [tip:perf/core] perf report: In branch stack mode use address history sorting tip-bot for Andi Kleen
1 sibling, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2014-11-18 1:58 UTC (permalink / raw)
To: acme; +Cc: linux-kernel, Andi Kleen
From: Andi Kleen <ak@linux.intel.com>
BUILD_BUG_ON relies on the gcc optimizer, so it breaks
the build with DEBUG=1 which doesn't use -O2.
Turn the BUILD_BUG_ON into a runtime check again.
Also fix the check to check for 255, not 127.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
tools/perf/util/machine.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
index 5c4d7f8..a24909b 100644
--- a/tools/perf/util/machine.c
+++ b/tools/perf/util/machine.c
@@ -1446,8 +1446,7 @@ static int remove_loops(struct branch_entry *l, int nr)
memset(chash, NO_ENTRY, sizeof(chash));
- BUILD_BUG_ON_MSG(PERF_MAX_BRANCH_DEPTH > 127,
- "Please upgrade the type of the hash table from unsigned char");
+ BUG_ON(PERF_MAX_BRANCH_DEPTH > 255);
for (i = 0; i < nr; i++) {
int h = hash_64(l[i].from, CHASHBITS) % CHASHSZ;
--
1.9.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/core] perf report: In branch stack mode use address history sorting
2014-11-18 1:58 [PATCH 1/2] perf, tools: In branch stack mode use address history sorting Andi Kleen
2014-11-18 1:58 ` [PATCH 2/2] perf, tools: Remove use of BUILD_BUG_ON Andi Kleen
@ 2014-12-08 6:53 ` tip-bot for Andi Kleen
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Andi Kleen @ 2014-12-08 6:53 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, acme, ak, mingo, tglx, hpa
Commit-ID: 09a6a1b07e5a579ef770d9728f5b158408c73c23
Gitweb: http://git.kernel.org/tip/09a6a1b07e5a579ef770d9728f5b158408c73c23
Author: Andi Kleen <ak@linux.intel.com>
AuthorDate: Mon, 17 Nov 2014 17:58:54 -0800
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Mon, 1 Dec 2014 20:00:31 -0300
perf report: In branch stack mode use address history sorting
Enable CCKEY_ADDRESS address history sorting with --branch-history.
This makes get_srcline display the source lines correctly, otherwise all
history entries for a function a hunked into one.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1416275935-20971-1-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/builtin-report.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index fb272ff..3936760 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -761,6 +761,7 @@ repeat:
symbol_conf.cumulate_callchain = false;
}
if (branch_call_mode) {
+ callchain_param.key = CCKEY_ADDRESS;
callchain_param.branch_callstack = 1;
symbol_conf.use_callchain = true;
callchain_register_param(&callchain_param);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-08 6:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18 1:58 [PATCH 1/2] perf, tools: In branch stack mode use address history sorting Andi Kleen
2014-11-18 1:58 ` [PATCH 2/2] perf, tools: Remove use of BUILD_BUG_ON Andi Kleen
2014-12-08 6:53 ` [tip:perf/core] perf report: In branch stack mode use address history sorting tip-bot for Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®