Re: Intel P6 vs P7 system call performance

Linus Torvalds (torvalds@transmeta.com)
Thu, 19 Dec 2002 17:47:55 -0800 (PST)


On Thu, 19 Dec 2002, Daniel Jacobowitz wrote:
> >
> > (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.

It doesn't make gdb all that unhappy, everything seems to work fine
despite the fact that gdb decides it just can't display the instructions.

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

Or even in user space, since the high pages are all the same in all
processes (so gdb doesn't even strictly need ptrace, it can just read it's
_own_ codespace there). But yeah, we could make ptrace aware of the magic
pages.

Linus

-
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/