Re: Intel P6 vs P7 system call performance

Daniel Jacobowitz (dan@debian.org)
Thu, 19 Dec 2002 19:53:33 -0500


On Wed, Dec 18, 2002 at 02:57:11PM -0800, Linus Torvalds wrote:
>
> Btw, I'm pushing what looks like the "final" version of sysenter/sysexit
> for now. There may be bugs left, but all the known issues are resolved:
>
> - single-stepping over the system call now works. It doesn't actually see
> all of the user-mode instructions, since the fast system call interface
> does not lend itself well to restoring "TF" in eflags on return, but
> the trampoline code saves and restores the flags, so you will be able
> to step over the important bits.
>
> (ptrace also doesn't actually allow you to look at the instruction
> contents in high memory, so gdb won't see the instructions in the
> user-mode fast system call trampoline even when it can single-step
> them, and I don't think I'll bother to fix it up).

This worries me. I'm no x86 guru, but I assume the trampoline's setting of
the TF bit will kick in right around the following 'ret'. So the
application will stop and GDB won't be able to read the instruction at
PC. I bet that makes it unhappy.

Shouldn't be that hard to fix this up in ptrace, though.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/