projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
214f0e8
)
x86/oprofile: Avoid TIF_IA32 when checking 64bit mode
author
Gabriel Krisman Bertazi
<krisman@collabora.com>
Sun, 4 Oct 2020 03:25:29 +0000
(23:25 -0400)
committer
Thomas Gleixner
<tglx@linutronix.de>
Mon, 26 Oct 2020 12:46:46 +0000
(13:46 +0100)
In preparation to remove TIF_IA32, stop using it in oprofile code. Use
user_64bit_mode() instead.
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link:
https://lore.kernel.org/r/20201004032536.1229030-4-krisman@collabora.com
arch/x86/oprofile/backtrace.c
patch
|
blob
|
history
diff --git
a/arch/x86/oprofile/backtrace.c
b/arch/x86/oprofile/backtrace.c
index a2488b6e27d6c20aefcfff006ae63da03eec9b22..1d8391fcca68f594805c79fd4eef1ef067c45303 100644
(file)
--- a/
arch/x86/oprofile/backtrace.c
+++ b/
arch/x86/oprofile/backtrace.c
@@
-49,7
+49,7
@@
x86_backtrace_32(struct pt_regs * const regs, unsigned int depth)
struct stack_frame_ia32 *head;
/* User process is IA32 */
- if (!current ||
!test_thread_flag(TIF_IA32
))
+ if (!current ||
user_64bit_mode(regs
))
return 0;
head = (struct stack_frame_ia32 *) regs->bp;