why just the last stap command works?

hit201j hit201j@gmail.com
Mon Jul 15 18:20:00 GMT 2013


thanks~

 root@hit201:~# uname -a
Linux hit201 3.10.1-systemtap #1 SMP Mon Jul 15 21:50:18 HKT 2013
x86_64 x86_64 x86_64 GNU/Linux

root@hit201:~# stap -V
Systemtap translator/driver (version 2.2/0.155, non-git sources)
Copyright (C) 2005-2013 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: TR1_UNORDERED_MAP NLS

root@hit201:~# stap -L 'kernel.function("*")' | grep calc_load_account_active
kernel.function("calc_load_
account_active@kernel/sched/core.c:2444") $this_rq:struct rq*
root@hit201:~#

root@hit201:/home/hit201j/depot/kernelorg/linux-3.10.1# cat -n
kernel/sched/core.c | sed -n '2444,2456 p'
  2444    static void calc_load_account_active(struct rq *this_rq)
  2445    {
  2446        long delta;
  2447
  2448        if (time_before(jiffies, this_rq->calc_load_update))
  2449            return;
  2450
  2451        delta  = calc_load_fold_active(this_rq);
  2452        if (delta)
  2453            atomic_long_add(delta, &calc_load_tasks);
  2454
  2455        this_rq->calc_load_update += LOAD_FREQ;
  2456    }

root@hit201:~# stap -e 'probe
kernel.function("calc_load_account_active") {exit()}'
WARNING: probe kernel.function("calc_load_account_active@kernel/sched/core.c:2444")
(address 0xffffffff810cf247) registration error (rc -22)
^Croot@hit201:~#

#stap.out is in the attachment of this mail
root@hit201:~#  stap -vvve 'probe
kernel.function("calc_load_account_active") {exit()}' > /tmp/stap.out
2>&1
^Croot@hit201:~#

root@hit201:~# stap -e 'probe
kernel.statement("calc_load_account_active@kernel/sched/core.c:2444")
{print_backtrace();print("\n");exit()}'
WARNING: probe kernel.statement("calc_load_account_active@kernel/sched/core.c:2444")
(address 0xffffffff810cf247) registration error (rc -22)
^Croot@hit201:~#

root@hit201:~#stap -e 'probe
kernel.statement("calc_load_account_active@kernel/sched/core.c:2455")
{print_backtrace();print("\n");exit()}'
 0xffffffff810cf284 : scheduler_tick+0xb4/0x140 [kernel]
 0xffffffff810ac067 : update_process_times+0x67/0x80 [kernel]
 0xffffffff810f627e : tick_sched_handle.isra.10+0x2e/0x70 [kernel]
 0xffffffff810f640c : tick_sched_timer+0x4c/0x80 [kernel]
 0xffffffff810c4029 : __run_hrtimer+0x79/0x1c0 [kernel]
 0xffffffff810c494f : hrtimer_interrupt+0xff/0x240 [kernel]
 0xffffffff81737b49 : smp_apic_timer_interrupt+0x69/0x99 [kernel]
 0xffffffff81736972 : apic_timer_interrupt+0x72/0x80 [kernel]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stap.out
Type: application/octet-stream
Size: 17651 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20130715/16c920e5/attachment.obj>


More information about the Systemtap mailing list