Comment 5 for bug 1537125

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1537125] Re: ubuntu-14.04.04: fail to run systemtap test suites

On Tue, Jan 26, 2016 at 01:03:48AM -0000, Frank Ch. Eigler wrote:
> Hi -

> > I have just tested with the systemtap 2.9 package presently in xenial,
> > and the following test case fails the same way there as with systemtap
> > 2.3 in trusty:

> > # stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
> > [...]
> > semantic error: while resolving probe point: identifier 'kernel' at /usr/share/systemtap/tapset/linux/vfs.stp:882:18
> > source: probe vfs.read = kernel.function("vfs_read")
> > ^

> > [...]
> > Pass 2: analysis failed. [man error::pass2]
> > Tip: /usr/share/doc/systemtap/README.Debian should help you get started.

> > It does not appear that an update to a newer systemtap version is going
> > to be of any use on 14.04.
> > [...]

> This message indicates not something wrong with systemtap, but
> something wrong with the installation of kernel debugging symbols.
> (See also the error::pass2 man page and the given README.Debian file.)

This is when following the directions in README.Debian.

# stap-prep ; echo $?
0
#

It's possible there's an error with the generation of the kernel debugging
symbols package itself, but this is following the directions for their
installation.

And with --vp 02 as suggested by the manpage:

# stap --vp 02 -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
Pass 1: parsed user script and 109 library script(s) using
# 55552virt/43456res/6848shr/37248data kb, in 240usr/10sys/257real ms.
Attempting to extract kernel debuginfo build ID from
# /lib/modules/4.2.0-25-generic/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|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 'vfs_read', func 'vfs_read'
focused on module 'kernel' = [0xc000000000000000-0xc000000001820394, bias 0
file /boot/vmlinux-4.2.0-25-generic ELF machine powerpc| (code 21)
focused on module 'kernel'
suggesting 0 dwarf functions from modules:
kernel
semantic error: while resolving probe point: identifier 'kernel' at
/usr/share/systemtap/tapset/linux/vfs.stp:882:18
   thrown from: elaborate.cxx:1059
        source: probe vfs.read = kernel.function("vfs_read")
                                 ^

semantic error: no match
   thrown from: elaborate.cxx:1022
semantic error: while resolving probe point: identifier 'vfs' at <input>:1:7
   thrown from: elaborate.cxx:1059
        source: probe vfs.read {printf("read performed\n"); exit()}
                      ^

semantic error: no match
   thrown from: elaborate.cxx:1022
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s)
using 56896virt/49792res/8192shr/38592data kb, in 10usr/0sys/8real ms.
Pass 2: analysis failed. [man error::pass2]
Tip: /usr/share/doc/systemtap/README.Debian should help you get started.
Running rm -rf /tmp/stap1q3VQz
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stap1q3VQz"