public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: systemtap@sourceware.org
Subject: How to debug what I am doing wrong?
Date: Thu, 17 Jul 2008 21:30:00 -0000	[thread overview]
Message-ID: <E1KJb3E-0002qe-Ey@closure.thunk.org> (raw)

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

             reply	other threads:[~2008-07-17 21:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-17 21:30 Theodore Ts'o [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-17 21:02 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1KJb3E-0002qe-Ey@closure.thunk.org \
    --to=tytso@mit.edu \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).