[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1460657414-12530-2-git-send-email-dsafonov@virtuozzo.com>
Date: Thu, 14 Apr 2016 21:10:11 +0300
From: Dmitry Safonov <dsafonov@...tuozzo.com>
To: <linux-kernel@...r.kernel.org>
CC: <luto@...capital.net>, <tglx@...utronix.de>, <mingo@...hat.com>,
<hpa@...or.com>, <x86@...nel.org>, <rric@...nel.org>,
<oprofile-list@...ts.sf.net>, <0x7f454c46@...il.com>,
Dmitry Safonov <dsafonov@...tuozzo.com>
Subject: [PATCH 1/4] x86/events: down with test_thread_flag(TIF_IA32)
We can use user_64bit_mode(regs) here instead of thread flag
because we have full register frame.
Signed-off-by: Dmitry Safonov <dsafonov@...tuozzo.com>
---
arch/x86/events/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c
index 041e442a3e28..91d101a9a6e9 100644
--- a/arch/x86/events/core.c
+++ b/arch/x86/events/core.c
@@ -2269,7 +2269,7 @@ perf_callchain_user32(struct pt_regs *regs, struct perf_callchain_entry *entry)
struct stack_frame_ia32 frame;
const void __user *fp;
- if (!test_thread_flag(TIF_IA32))
+ if (user_64bit_mode(regs))
return 0;
cs_base = get_segment_base(regs->cs);
--
2.8.0
Powered by blists - more mailing lists