public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* How to debug what I am doing wrong?
@ 2008-07-17 21:02 Theodore Ts'o
  2008-07-17 21:31 ` Masami Hiramatsu
  2008-07-17 22:01 ` Roland McGrath
  0 siblings, 2 replies; 14+ messages in thread
From: Theodore Ts'o @ 2008-07-17 21:02 UTC (permalink / raw)
  To: systemtap

I'm trying to run this systemtap script, ext4_check_desc.stp:

probe module("ext4dev").function("ext4_check_descriptors")
{
	printf("ext4_check_descriptors: flags %x\n", $sb->s_flags);
}

<tytso@closure> {/usr/projects/systemtap/examples}  
4% stap ext4-check-desk.stp
WARNING: cannot find module ext4dev debuginfo: No such file or directory
semantic error: no match while resolving probe point module("ext4dev").function("ext4_check_descriptors")
semantic error: no probes found
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.
<tytso@closure> {/usr/projects/systemtap/examples}  
5% uname -a
Linux closure 2.6.26-03033-g97438cf #16 SMP Thu Jul 17 01:21:12 EDT 2008 i686 GNU/Linux
<tytso@closure> {/usr/projects/systemtap/examples}  
6% ls /usr/lib/debug/lib/modules/2.6.26-03033-g97438cf/kernel/fs/ext4/ext4dev.ko
3428 /usr/lib/debug/lib/modules/2.6.26-03033-g97438cf/kernel/fs/ext4/ext4dev.ko
<tytso@closure> {/usr/projects/systemtap/examples}  
7% stap -V
SystemTap translator/driver (version 0.7.1/0.131 git branch master, commit 82737bef)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
<tytso@closure> {/usr/projects/systemtap/examples}  
8% stap -vvv ext4-check-desk.stp
SystemTap translator/driver (version 0.7.1/0.131 git branch master, commit 82737bef)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.26-03033-g97438cf
Created temporary directory "/tmp/stapfX7KWk"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 41
Pass 1: parsed user script and 43 library script(s) in 360usr/10sys/725real ms.
control symbols: kts: 0xc02f6e60 kte: 0xc02f9f02 stext: 0xc01010e8
parsed 'ext4_check_descriptors' -> func 'ext4_check_descriptors'
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|.*raw_.*lock.*|.*read_.*lock.*|.*write_.*lock.*|.*spin_.*lock.*|.*rwlock_.*lock.*|.*rwsem_.*lock.*|.*mutex_.*lock.*|raw_.*|.*seq_.*lock.*|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)$
blfn_ret: ^(do_exit|sys_exit|sys_exit_group|__switch_to)$
blfile: ^(kernel/kprobes.c|arch/.*/kernel/kprobes.c)$
focused on module 'ext4dev = [0x9aa300-0x9d9888, bias 0x0] file /lib/modules/2.6.26-03033-g97438cf/kernel/fs/ext4/ext4dev.ko ELF machine i?86 (code 3)
WARNING: cannot find module ext4dev debuginfo: No such file or directory
semantic error: no match while resolving probe point module("ext4dev").function("ext4_check_descriptors")
semantic error: no probes found
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s) in 1970usr/170sys/5974real ms.
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapfX7KWk
<tytso@closure> {/usr/projects/systemtap/examples}  
9% grep DEBUG_KERNEL /boot/config-2.6.26-03033-g97438cf 
CONFIG_DEBUG_KERNEL=y


So, what I am doing wrong?  And how am I supposed to figure this what I
should have done to allow systemtap to work correctly?  

						- Ted

^ permalink raw reply	[flat|nested] 14+ messages in thread
* How to debug what I am doing wrong?
@ 2008-07-17 21:30 Theodore Ts'o
  0 siblings, 0 replies; 14+ messages in thread
From: Theodore Ts'o @ 2008-07-17 21:30 UTC (permalink / raw)
  To: systemtap

I'm trying to run this systemtap script, ext4_check_desc.stp:

probe module("ext4dev").function("ext4_check_descriptors")
{
	printf("ext4_check_descriptors: flags %x\n", $sb->s_flags);
}

<tytso@closure> {/usr/projects/systemtap/examples}  
4% stap ext4-check-desk.stp
WARNING: cannot find module ext4dev debuginfo: No such file or directory
semantic error: no match while resolving probe point module("ext4dev").function("ext4_check_descriptors")
semantic error: no probes found
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.
<tytso@closure> {/usr/projects/systemtap/examples}  
5% uname -a
Linux closure 2.6.26-03033-g97438cf #16 SMP Thu Jul 17 01:21:12 EDT 2008 i686 GNU/Linux
<tytso@closure> {/usr/projects/systemtap/examples}  
6% ls /usr/lib/debug/lib/modules/2.6.26-03033-g97438cf/kernel/fs/ext4/ext4dev.ko
3428 /usr/lib/debug/lib/modules/2.6.26-03033-g97438cf/kernel/fs/ext4/ext4dev.ko
<tytso@closure> {/usr/projects/systemtap/examples}  
7% stap -V
SystemTap translator/driver (version 0.7.1/0.131 git branch master, commit 82737bef)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
<tytso@closure> {/usr/projects/systemtap/examples}  
8% stap -vvv ext4-check-desk.stp
SystemTap translator/driver (version 0.7.1/0.131 git branch master, commit 82737bef)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.26-03033-g97438cf
Created temporary directory "/tmp/stapfX7KWk"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 41
Pass 1: parsed user script and 43 library script(s) in 360usr/10sys/725real ms.
control symbols: kts: 0xc02f6e60 kte: 0xc02f9f02 stext: 0xc01010e8
parsed 'ext4_check_descriptors' -> func 'ext4_check_descriptors'
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|.*raw_.*lock.*|.*read_.*lock.*|.*write_.*lock.*|.*spin_.*lock.*|.*rwlock_.*lock.*|.*rwsem_.*lock.*|.*mutex_.*lock.*|raw_.*|.*seq_.*lock.*|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)$
blfn_ret: ^(do_exit|sys_exit|sys_exit_group|__switch_to)$
blfile: ^(kernel/kprobes.c|arch/.*/kernel/kprobes.c)$
focused on module 'ext4dev = [0x9aa300-0x9d9888, bias 0x0] file /lib/modules/2.6.26-03033-g97438cf/kernel/fs/ext4/ext4dev.ko ELF machine i?86 (code 3)
WARNING: cannot find module ext4dev debuginfo: No such file or directory
semantic error: no match while resolving probe point module("ext4dev").function("ext4_check_descriptors")
semantic error: no probes found
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s) in 1970usr/170sys/5974real ms.
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapfX7KWk
<tytso@closure> {/usr/projects/systemtap/examples}  
9% grep DEBUG_KERNEL /boot/config-2.6.26-03033-g97438cf 
CONFIG_DEBUG_KERNEL=y


So, what I am doing wrong?  And how am I supposed to figure this what I
should have done to allow systemtap to work correctly?  

						- Ted

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

end of thread, other threads:[~2008-07-18 12:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-17 21:02 How to debug what I am doing wrong? Theodore Ts'o
2008-07-17 21:31 ` Masami Hiramatsu
2008-07-17 22:07   ` Theodore Tso
2008-07-17 22:01 ` Roland McGrath
2008-07-17 22:10   ` Theodore Tso
2008-07-17 22:23     ` Roland McGrath
2008-07-17 22:38       ` Theodore Tso
2008-07-17 23:01         ` Frank Ch. Eigler
2008-07-18 11:50           ` Theodore Tso
2008-07-18 12:13             ` Frank Ch. Eigler
2008-07-18  0:15         ` Roland McGrath
2008-07-18  1:14           ` Theodore Tso
2008-07-18  2:07             ` Roland McGrath
2008-07-17 21:30 Theodore Ts'o

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).