]> git.baikalelectronics.ru Git - kernel.git/commit
x86/stacktrace: Clarify the reliable success paths
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 May 2018 06:47:10 +0000 (08:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Jun 2018 14:34:55 +0000 (16:34 +0200)
commit8e22251f2752ae1c87dec632e2daa9c4f577d63a
tree6af589acc745b753188ef113c0b11f21da4e0c83
parent2b7fb5917c6f8fd430c3dbf8a30feee492f68aeb
x86/stacktrace: Clarify the reliable success paths

Make clear which path is for user tasks and for kthreads and idle
tasks. This will allow easier plug-in of the ORC unwinder in the next
patches.

Note that we added a check for unwind error to the top of the loop, so
that an error is returned also for user tasks (the 'goto success' would
skip the check after the loop otherwise).

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/lkml/20180518064713.26440-3-jslaby@suse.cz
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/stacktrace.c