Re: [RFC] [PATCH 7/7] Ftrace plugin for Uprobes

From: Peter Zijlstra
Date: Thu Jan 14 2010 - 06:23:54 EST

On Mon, 2010-01-11 at 17:56 +0530, Srikar Dronamraju wrote:
> This patch implements ftrace plugin for uprobes.

Right, like others have said, trace events is a much saner interface.

So the easiest way I can see that working is to register uprobes against
a file (not a pid). Then on creation it uses rmap to find all current
maps of that file and install the probe if there is a consumer for that

Then for each new mmap() of that file, we also need to check if there's
a consumer ready and install the probe.

The existence of the uprobe trace-event would keep a ref on the
dentry/inode, ensuring it remains around or something.

Consumers could be some utrace thing (currently called uprobe -- which
is a misnomer imo), or perf, or ftrace like.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at