Re: [PATCH 5/7] uprobes/perf: Teach trace_uprobe/perf code to pre-filter

2013-02-11 Thread Srikar Dronamraju
* Oleg Nesterov [2013-02-04 20:02:58]: > Finally implement uprobe_perf_filter() which checks ->nr_systemwide or > ->perf_events to figure out whether we need to insert the breakpoint. > > uprobe_perf_open/close are changed to do uprobe_apply(true/false) when > the new perf event comes or goes

Re: [PATCH 5/7] uprobes/perf: Teach trace_uprobe/perf code to pre-filter

2013-02-11 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-02-04 20:02:58]: Finally implement uprobe_perf_filter() which checks -nr_systemwide or -perf_events to figure out whether we need to insert the breakpoint. uprobe_perf_open/close are changed to do uprobe_apply(true/false) when the new perf event comes

[PATCH 5/7] uprobes/perf: Teach trace_uprobe/perf code to pre-filter

2013-02-04 Thread Oleg Nesterov
Finally implement uprobe_perf_filter() which checks ->nr_systemwide or ->perf_events to figure out whether we need to insert the breakpoint. uprobe_perf_open/close are changed to do uprobe_apply(true/false) when the new perf event comes or goes away. Note that currently this is very suboptimal:

[PATCH 5/7] uprobes/perf: Teach trace_uprobe/perf code to pre-filter

2013-02-04 Thread Oleg Nesterov
Finally implement uprobe_perf_filter() which checks -nr_systemwide or -perf_events to figure out whether we need to insert the breakpoint. uprobe_perf_open/close are changed to do uprobe_apply(true/false) when the new perf event comes or goes away. Note that currently this is very suboptimal: