Re: [tip:perfcounters/core] perf_counter: x86: Fix call-chain supportto use NMI-safe methods
From: Linus Torvalds
Date: Mon Jun 15 2009 - 18:40:57 EST
On Mon, 15 Jun 2009, H. Peter Anvin wrote:
>
> cs/ss you could potentially restore with sysret/sysexit, at least for
> the common case. Of course, this means more cases...
Yes. But it gets pretty complicated. You now have to make user space
restore some of the registers, so you end up having to write to the user
space stack etc.
It might be worth it (iret really is very slow, _especially_ to user
space, but it's definitely nontrivial.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/