• Masami Hiramatsu's avatar
    perf probe: Enable to put probe inline function call site · 5069ed86
    Masami Hiramatsu authored
    Enable to put probe inline function call site. This will increase line-based
    probe-ability.
    
    <Without this patch>
    $ ./perf probe -L schedule:48
    <schedule:48>
                    pre_schedule(rq, prev);
    
         50         if (unlikely(!rq->nr_running))
                            idle_balance(cpu, rq);
    
                    put_prev_task(rq, prev);
                    next = pick_next_task(rq);
    
         56         if (likely(prev != next)) {
                            sched_info_switch(prev, next);
                            trace_sched_switch_out(prev, next);
                            perf_event_task_sched_out(prev, next);
    
    <With this patch>
    $ ./perf probe -L schedule:48
    <schedule:48>
         48         pre_schedule(rq, prev);
    
         50         if (unlikely(!rq->nr_running))
         51                 idle_balance(cpu, rq);
    
         53         put_prev_task(rq, prev);
         54         next = pick_next_task(rq);
    
         56         if (likely(prev != next)) {
         57                 sched_info_switch(prev, next);
         58                 trace_sched_switch_out(prev, next);
         59                 perf_event_task_sched_out(prev, next);
    
    Cc: 2nddept-manager@sdl.hitachi.co.jp
    Cc: Franck Bui-Huu <fbuihuu@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    LKML-Reference: <20110113124604.22426.48873.stgit@ltc236.sdl.hitachi.co.jp>
    Signed-off-by: default avatarMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    5069ed86
probe-finder.c 46.6 KB