Re: [PATCH v4 0/13] Uprobes v4

From: Srikar Dronamraju
Date: Wed May 19 2010 - 13:38:19 EST


* Peter Zijlstra <peterz@xxxxxxxxxxxxx> [2010-05-19 16:17:40]:

> On Wed, 2010-05-19 at 11:38 +0530, Srikar Dronamraju wrote:
> >
> > Also when uprobes implements global tracing support (i.e probing a
> > particular symbol in a dso across processes), it has to rely on
> > background page replacement.
>
> Uhm, how so?

For global tracing we cant use access_process_vm. The equivalent to
access_process_vm for global tracing would be to use copy_to_user.

However I am sure people wouldnt be happy using copy_to_user on a page
that other processes could have mapped.

So that leaves us with background page replacement method.
I do agree that we will not be using the same routine. But the technique
should be something similar(or do you disagree?).

Or do you suggest any alternative methods for global tracing?

--
Thanks and Regards
Srikar
--
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/