|
@@ -1661,9 +1661,12 @@ static int trace__resolve_callchain(struct trace *trace, struct perf_evsel *evse
|
|
|
struct callchain_cursor *cursor)
|
|
|
{
|
|
|
struct addr_location al;
|
|
|
+ int max_stack = evsel->attr.sample_max_stack ?
|
|
|
+ evsel->attr.sample_max_stack :
|
|
|
+ trace->max_stack;
|
|
|
|
|
|
if (machine__resolve(trace->host, &al, sample) < 0 ||
|
|
|
- thread__resolve_callchain(al.thread, cursor, evsel, sample, NULL, NULL, evsel->attr.sample_max_stack))
|
|
|
+ thread__resolve_callchain(al.thread, cursor, evsel, sample, NULL, NULL, max_stack))
|
|
|
return -1;
|
|
|
|
|
|
return 0;
|