Re: [PATCH v5 8/14] samples: Uprobes samples

Christoph Hellwig
2010-06-14T17:48:30Z

On Mon, Jun 14, 2010 at 01:59:23PM +0530, Srikar Dronamraju wrote:
> samples.patch
>
> From: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
>
> Uprobes Samples
>
> This provides an example uprobes module in the samples directory.
>
> To run this module run (as root)
> insmod uprobe_example.ko vaddr=<vaddr> pid=<pid>
> Where <vaddr> is the address where we want to place the probe.
> <pid> is the pid of the process we are interested to probe.

What's the point of this sample? It's a sub-set of what the perf
uprobes inteface supports, and writing kernel modules to probe userspace
code is braindead to start with. So if you remove this example of what
people should not do we can also get rid of all the exports.