projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a79eef
)
perf callchain: Reset cursor arg instead of callchain_cursor
author
Jiri Olsa
<
[email protected]
>
Sun, 6 Aug 2017 14:39:39 +0000
(16:39 +0200)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Thu, 16 Nov 2017 17:50:08 +0000
(14:50 -0300)
We already pass cursor into thread__resolve_callchain function, so
there's no point in resetting the global instance.
Signed-off-by: Jiri Olsa <
[email protected]
>
Cc: Adrian Hunter <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Wang Nan <
[email protected]
>
Link:
http://lkml.kernel.org/n/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/machine.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/machine.c
b/tools/perf/util/machine.c
index 270f3223c6df15cef58fd4d1c4efdc27dea3a520..64d255f6a5374c8ee730d759d409c789782b690a 100644
(file)
--- a/
tools/perf/util/machine.c
+++ b/
tools/perf/util/machine.c
@@
-2204,7
+2204,7
@@
int thread__resolve_callchain(struct thread *thread,
{
int ret = 0;
- callchain_cursor_reset(
&callchain_
cursor);
+ callchain_cursor_reset(cursor);
if (callchain_param.order == ORDER_CALLEE) {
ret = thread__resolve_callchain_sample(thread, cursor,