Re: [RFC PATCH 3/6] uretprobes: return probe entry, prepare uretprobe

2012-12-22 Thread Oleg Nesterov
On 12/21, Anton Arapov wrote: > > struct uprobe { > struct rb_node rb_node;/* node in the rb tree */ > atomic_tref; > @@ -70,12 +72,20 @@ struct uprobe { > struct rw_semaphore consumer_rwsem; > struct list_headpending_list; >

[RFC PATCH 3/6] uretprobes: return probe entry, prepare uretprobe

2012-12-21 Thread Anton Arapov
When a uprobe with return consumer is hit, prepare_uretprobe function is invoked. It creates return_instance, hijacks return address and replaces it with the trampoline. This patch introduces return_consumer field in uprobe_task. It creates additional overhead in filter_chain(), but this is the le