public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* why just the last stap command works?
@ 2013-07-15 18:20 hit201j
  2013-07-16 15:31 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: hit201j @ 2013-07-15 18:20 UTC (permalink / raw)
  To: systemtap

[-- Attachment #1: Type: text/plain, Size: 2429 bytes --]

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]

[-- Attachment #2: stap.out --]
[-- Type: application/octet-stream, Size: 17651 bytes --]

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
Created temporary directory "/tmp/stap3OKcz0"
Session arch: x86_64 release: 3.10.1-systemtap
Parsed kernel "/lib/modules/3.10.1-systemtap/build/.config", containing 5373 tuples
Parsed kernel /lib/modules/3.10.1-systemtap/build/Module.symvers, which contained 7284 vmlinux exports
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/context.stpm"
Searched for library macro files: "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/*.stpm", found: 1, processed: 1
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/choose_defined.stpm"
Searched for library macro files: "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/*.stpm", found: 1, processed: 1
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/x86_64/aux_syscalls.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/x86_64/nd_syscalls.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/x86_64/syscalls.stp"
Searched: "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/x86_64/*.stp", found: 3, processed: 3
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/atomic.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/aux_syscalls.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/context-caller.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/context-envvar.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/context-symbols.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/context-unwind.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/context.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/conversions-guru.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/conversions.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/ctime.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/dentry.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/dev.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/endian.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/guru-delay.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/inet.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/inet_sock.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/ioblock.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/ioscheduler.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/ip.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/ipmib-filter-default.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/ipmib.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/irq.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/kprocess.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/kretprobe.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/linuxmib-filter-default.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/linuxmib.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/logging.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/memory.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/nd_syscalls.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/nd_syscalls2.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/netfilter.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/networking.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/nfs.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/nfs_proc.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/nfsd.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/nfsderrno.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/panic.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/perf.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/proc_mem.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/pstrace.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/rpc.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/scheduler.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/scsi.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/signal.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/socket.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/syscalls.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/syscalls2.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/syscalls_cfg_trunc.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/target_set.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/task.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/task_time.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/tcp.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/tcpmib-filter-default.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/tcpmib.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/timestamp.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/timestamp_gtod.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/timestamp_monotonic.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/tty.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/ucontext-symbols.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/ucontext-unwind.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/ucontext.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/udp.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/utrace.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/vfs.stp"
Searched: "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/linux/*.stp", found: 64, processed: 64
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/x86_64/registers.stp"
Searched: "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/x86_64/*.stp", found: 1, processed: 1
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/ansi.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/argv.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/context.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/errno.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/indent-default.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/indent.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/logging.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/null.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/pn.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/queue_stats.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/random.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/registers.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/speculative.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/stap_staticmarkers.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/stopwatch.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/string.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/system.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/timers.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/tokenize.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/tzinfo.stp"
Processing tapset "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/uconversions.stp"
Searched: "/home/hit201j/depot/root/systemtap-2.2-12439/share/systemtap/tapset/*.stp", found: 21, processed: 21
Pass 1: parsed user script and 91 library script(s) using 52192virt/25824res/1972shr/24812data kb, in 90usr/0sys/84real ms.
Attempting to extract kernel debuginfo build ID from /lib/modules/3.10.1-systemtap/build/vmlinux.id
Attempting to extract kernel debuginfo build ID from /sys/kernel/notes
blacklist regexps:
blfn: ^(atomic_notifier_call_chain|default_do_nmi|__die|die_nmi|do_debug|do_general_protection|do_int3|do_IRQ|do_page_fault|do_sparc64_fault|do_trap|dummy_nmi_callback|flush_icache_range|ia64_bad_break|ia64_do_page_fault|ia64_fault|io_check_error|mem_parity_error|nmi_watchdog_tick|notifier_call_chain|oops_begin|oops_end|program_check_exception|single_step_exception|sync_regs|unhandled_fault|unknown_nmi_error|xen_[gs]et_debugreg|xen_irq_.*|xen_.*_fl_direct.*|check_events|xen_adjust_exception_frame|xen_iret.*|xen_sysret64.*|test_ti_thread_flag.*|inat_get_opcode_attribute|system_call_after_swapgs|HYPERVISOR_[gs]et_debugreg|HYPERVISOR_event_channel_op|hash_64|hash_ptr|native_set_pte|.*raw_.*_lock.*|.*raw_.*_unlock.*|.*raw_.*_trylock.*|.*read_lock.*|.*read_unlock.*|.*read_trylock.*|.*write_lock.*|.*write_unlock.*|.*write_trylock.*|.*write_seqlock.*|.*write_sequnlock.*|.*spin_lock.*|.*spin_unlock.*|.*spin_trylock.*|.*spin_is_locked.*|rwsem_.*lock.*|.*mutex_.*lock.*|raw_.*|atomic_.*|atomic64_.*|get_bh|put_bh|.*apic.*|.*APIC.*|.*softirq.*|.*IRQ.*|.*_intr.*|__delay|.*kernel_text.*|get_current|current_.*|.*exception_tables.*|.*setup_rt_frame.*|.*preempt_count.*|preempt_schedule|__switch_to|special_mapping_.*|.*_pte_.*)$
blfn_ret: ^(do_exit|sys_exit|sys_exit_group)$
blfile: ^(kernel/kprobes\.c|arch/.*/kernel/kprobes\.c|.*/include/asm/io\.h|.*/include/asm/io_64\.h|.*/include/asm/bitops\.h|drivers/ide/ide-iops\.c|arch/.*/kernel/paravirt\.c|.*/include/asm/paravirt\.h|fs/seq_file\.c)$
blsection: ^(\.init\.|\.exit\.|\.devinit\.|\.devexit\.|\.cpuinit\.|\.cpuexit\.|\.meminit\.|\.memexit\.)
parse 'calc_load_account_active', func 'calc_load_account_active'
focused on module 'kernel' = [0xffffffff81000000-0xffffffff823c5000, bias 0 file /lib/modules/3.10.1-systemtap/build/vmlinux ELF machine |x86_64 (code 62)
focused on module 'kernel'
selected inline instance of calc_load_account_active
entry-pc lookup (dwarf_entrypc dieoffset: 0xdcabc1) = 0xffffffff810cf247 (rc 0)
selected inline instance of calc_load_account_active
entry-pc lookup (dwarf_entrypc dieoffset: 0xdcabc1) = 0xffffffff810cf247 (rc 0)
querying entrypc 0xffffffff810cf247 of instance of inline 'calc_load_account_active'
probe calc_load_account_active@kernel/sched/core.c:2444 kernel reloc=.dynamic pc=0xffffffff810cf247
Eliding side-effect-free singleton block operator '{' at <input>:1:51
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) using 268808virt/185096res/122168shr/63668data kb, in 400usr/20sys/433real ms.
Pass 3: using cached /root/.systemtap/cache/01/stap_01f997a8462f89cc6c273649a3f43177_1251.c
Pass 4: using cached /root/.systemtap/cache/01/stap_01f997a8462f89cc6c273649a3f43177_1251.ko
Pass 5: starting run.
Running /home/hit201j/depot/root/systemtap-2.2-12439/bin/staprun -v -v -R /tmp/stap3OKcz0/stap_01f997a8462f89cc6c273649a3f43177_1251.ko
staprun:main:412 modpath="/tmp/stap3OKcz0/stap_01f997a8462f89cc6c273649a3f43177_1251.ko", modname="stap_01f997a8462f89cc6c273649a3f43177_1251"
staprun:init_staprun:314 init_staprun
staprun:insert_module:73 inserting module /tmp/stap3OKcz0/stap_01f997a8462f89cc6c273649a3f43177_1251.ko
staprun:insert_module:99 module options: _stp_bufsize=0
staprun:insert_module:107 module path canonicalized to '/tmp/stap3OKcz0/stap_01f997a8462f89cc6c273649a3f43177_1251.ko'
staprun:insert_module:170 Renaming module 'stap_01f997a8462f89cc6c273649a3f43177_1251'
staprun:insert_module:178 Renamed module to 'stap_01f997a8462f89cc6c273649a3f43177_1251'
staprun:insert_module:185 Module stap_01f997a8462f89cc6c273649a3f43177_1251 inserted from file /tmp/stap3OKcz0/stap_01f997a8462f89cc6c273649a3f43177_1251.ko
staprun:init_ctl_channel:72 Opened /sys/kernel/debug/systemtap/stap_01f997a8462f89cc6c273649a3f43177_1251/.cmd (5)
staprun:close_ctl_channel:112 Closed ctl fd 5
execing: /home/hit201j/depot/root/systemtap-2.2-12439/libexec/systemtap/stapio -v -v -R stap_01f997a8462f89cc6c273649a3f43177_1251 -F4 
stapio:parse_modpath:426 modpath="/lib/modules/3.10.1-systemtap/systemtap/stap_01f997a8462f89cc6c273649a3f43177_1251.ko"
stapio:main:50 modpath="/lib/modules/3.10.1-systemtap/systemtap/stap_01f997a8462f89cc6c273649a3f43177_1251.ko", modname="stap_01f997a8462f89cc6c273649a3f43177_1251"
stapio:init_stapio:369 init_stapio
stapio:init_ctl_channel:30 Opened .cmd (5)
stapio:stp_main_loop:567 in main loop
stapio:stp_main_loop:586 select_supported: 1
stapio:init_relayfs:244 initializing relayfs
stapio:init_relayfs:269 attempting to open trace0
stapio:init_relayfs:269 attempting to open trace1
stapio:init_relayfs:281 ncpus=1, bulkmode = 0
stapio:init_relayfs:364 starting threads
WARNING: probe kernel.function("calc_load_account_active@kernel/sched/core.c:2444") (address 0xffffffff810cf247) registration error (rc -22)
stapio:stp_main_loop:738 systemtap_module_init() returned 0
stapio:signal_thread:44 sigproc 2 (Interrupt)
stapio:urg_proc:64 urg_proc 23 (Urgent I/O condition)
stapio:stp_main_loop:603 signal-triggered 1 exit rc 4
stapio:stp_main_loop:729 got STP_REQUEST_EXIT
stapio:stp_main_loop:603 signal-triggered 1 exit rc 4
stapio:stp_main_loop:722 got STP_EXIT
stapio:cleanup_and_exit:454 detach=0
stapio:close_relayfs:380 closing
stapio:close_relayfs:399 done
stapio:cleanup_and_exit:471 closing control channel
stapio:close_ctl_channel:112 Closed ctl fd 5
stapio:cleanup_and_exit:479 
Renamed module to: stap_01f997a8462f89cc6c273649a3f43177_1251
stapio:cleanup_and_exit:486 removing stap_01f997a8462f89cc6c273649a3f43177_1251
staprun:parse_modpath:426 modpath="/lib/modules/3.10.1-systemtap/systemtap/stap_01f997a8462f89cc6c273649a3f43177_1251.ko"
staprun:main:412 modpath="/lib/modules/3.10.1-systemtap/systemtap/stap_01f997a8462f89cc6c273649a3f43177_1251.ko", modname="stap_01f997a8462f89cc6c273649a3f43177_1251"
staprun:init_staprun:314 init_staprun
staprun:remove_module:225 stap_01f997a8462f89cc6c273649a3f43177_1251
staprun:init_ctl_channel:72 Opened /sys/kernel/debug/systemtap/stap_01f997a8462f89cc6c273649a3f43177_1251/.cmd (5)
staprun:close_ctl_channel:112 Closed ctl fd 5
staprun:remove_module:250 removing module stap_01f997a8462f89cc6c273649a3f43177_1251
staprun:remove_module:262 Module stap_01f997a8462f89cc6c273649a3f43177_1251 removed.
Spawn waitpid result (0x0): 0
Pass 5: run completed in 0usr/0sys/10352real ms.
Running rm -rf /tmp/stap3OKcz0
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stap3OKcz0"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: why just the last stap command works?
  2013-07-15 18:20 why just the last stap command works? hit201j
@ 2013-07-16 15:31 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2013-07-16 15:31 UTC (permalink / raw)
  To: hit201j; +Cc: systemtap

hit201j <hit201j@gmail.com> writes:

> [...]

Those registration-error-negative-22 messages are due to the kernel
rejecting kprobes on the requested addresses.  It can do this for a
variety of reasons, including placement on unfavourable instructions
(like lock/synch ones), or resource constraints (memory shortage), or
blacklisting.  You might try disassembling the kernel code at the
stap-identified addresses to get a hint why the kernel might be saying
no to us.

.function probes place probes at the head of the function.  .statement
probes place them within the body, and different line numbers/addresses
can lead to different rejection criteria. 

- FChE

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-16 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15 18:20 why just the last stap command works? hit201j
2013-07-16 15:31 ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).