Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1379190
| From | Dmitry Safonov <dsafonov@virtuozzo.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/4] x86/events: down with test_thread_flag(TIF_IA32) |
| Date | 2016-04-14 20:20 +0200 |
| Message-ID | <rnU1X-6dp-7@gated-at.bofh.it> (permalink) |
| References | <rnU1X-6dp-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
We can use user_64bit_mode(regs) here instead of thread flag because we have full register frame. Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] drop test_thread_flag checks Dmitry Safonov <dsafonov@virtuozzo.com> - 2016-04-14 20:20 +0200
[PATCH 1/4] x86/events: down with test_thread_flag(TIF_IA32) Dmitry Safonov <dsafonov@virtuozzo.com> - 2016-04-14 20:20 +0200
Re: [PATCH 1/4] x86/events: down with test_thread_flag(TIF_IA32) Andy Lutomirski <luto@amacapital.net> - 2016-04-14 20:40 +0200
[PATCH 2/4] x86/intel: down with test_thread_flag(TIF_IA32) Dmitry Safonov <dsafonov@virtuozzo.com> - 2016-04-14 20:20 +0200
csiph-web