[lkml]   [2012]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples
On 07/10/2012 02:48 AM, Ingo Molnar wrote:
> We could read out the current GDT [the SGDT instruction] instead
> of looking at gdt_page.
> Then we'd have to decode that descriptor, the limit. Decide
> whether the selector points to the GDT or LDT. All the fun x86
> legacies that we mostly forgot already after two decades of
> running the kernel in flat linear mode...

In 32-bit mode there are actually instructions that do that work for you.


H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

 \ /
  Last update: 2012-07-31 21:01    [W:0.051 / U:0.048 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site