Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1528912 > unrolled thread

[PATCH 3/3] perf sched timehist: Enlarge max stack depth by 2

Started byNamhyung Kim <namhyung@kernel.org>
First post2016-11-24 02:20 +0100
Last post2016-11-24 02:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] perf sched timehist: Enlarge max stack depth by 2 Namhyung Kim <namhyung@kernel.org> - 2016-11-24 02:20 +0100

#1528912 — [PATCH 3/3] perf sched timehist: Enlarge max stack depth by 2

FromNamhyung Kim <namhyung@kernel.org>
Date2016-11-24 02:20 +0100
Subject[PATCH 3/3] perf sched timehist: Enlarge max stack depth by 2
Message-ID<sGQRI-41E-11@gated-at.bofh.it>
When it records callchains, they will always have 2 scheduler functions
(__schedule + schedule or __schedule + preempt_schedule) and get
ignored.  So it should collect 2 more functions to show the expected
number of callchains to user.

Cc: David Ahern <dsahern@gmail.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
 tools/perf/builtin-sched.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index 06be809a02ab..a49a032f5b15 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -1960,7 +1960,7 @@ static bool is_idle_sample(struct perf_sched *sched,
 		return false;
 
 	if (thread__resolve_callchain(thread, cursor, evsel, sample,
-				      NULL, NULL, sched->max_stack) != 0) {
+				      NULL, NULL, sched->max_stack + 2) != 0) {
 		if (verbose)
 			error("Failed to resolve callchain. Skipping\n");
 
-- 
2.10.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web