Re: [PATCH] RFC x86_64 more accurate KSTK_ESP implementation

From: Ingo Molnar
Date: Sun Nov 08 2009 - 07:55:49 EST



* Stefani Seibold <stefani@xxxxxxxxxxx> wrote:

> > I'd suggest a competely different method: why dont you use an IPI to
> > sample the SP whenever someone wants to read it from /proc and we
> > see that the task is running on a CPU right now?
>
> Sounds like a challenge, i like the idea. I will have a look on it...

It's not a fastpath, so smp_function_call() ought to do the trick.

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