aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r--tools/perf/builtin-script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index 88d52ed85ffc..d079f36d342d 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -1182,7 +1182,7 @@ static int perf_sample__fprintf_callindent(struct perf_sample *sample,
1182 struct addr_location *al, FILE *fp) 1182 struct addr_location *al, FILE *fp)
1183{ 1183{
1184 struct perf_event_attr *attr = &evsel->attr; 1184 struct perf_event_attr *attr = &evsel->attr;
1185 size_t depth = thread_stack__depth(thread); 1185 size_t depth = thread_stack__depth(thread, sample->cpu);
1186 const char *name = NULL; 1186 const char *name = NULL;
1187 static int spacing; 1187 static int spacing;
1188 int len = 0; 1188 int len = 0;
@@ -1716,7 +1716,7 @@ static bool show_event(struct perf_sample *sample,
1716 struct thread *thread, 1716 struct thread *thread,
1717 struct addr_location *al) 1717 struct addr_location *al)
1718{ 1718{
1719 int depth = thread_stack__depth(thread); 1719 int depth = thread_stack__depth(thread, sample->cpu);
1720 1720
1721 if (!symbol_conf.graph_function) 1721 if (!symbol_conf.graph_function)
1722 return true; 1722 return true;