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:
208e760
)
perf callchain: Allow for max_stack greater than PERF_MAX_STACK_DEPTH
author
Adrian Hunter
<adrian.hunter@intel.com>
Fri, 25 Sep 2015 13:15:48 +0000
(16:15 +0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Thu, 1 Oct 2015 12:56:06 +0000
(09:56 -0300)
Adjust the validation to allow for max_stack greater than
PERF_MAX_STACK_DEPTH.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link:
http://lkml.kernel.org/r/1443186956-18718-18-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/machine.c
b/tools/perf/util/machine.c
index 76fe167c359e1b95769b3e506facbaa3d974cc51..5ef90be2a2497a05731a5fb8d24af33a192f2011 100644
(file)
--- a/
tools/perf/util/machine.c
+++ b/
tools/perf/util/machine.c
@@
-1831,7
+1831,7
@@
static int thread__resolve_callchain_sample(struct thread *thread,
}
check_calls:
- if (chain->nr > PERF_MAX_STACK_DEPTH) {
+ if (chain->nr > PERF_MAX_STACK_DEPTH
&& (int)chain->nr > max_stack
) {
pr_warning("corrupted callchain. skipping...\n");
return 0;
}