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:
> > [...]
> > 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"
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()}' systemtap/ tapset/ linux/vfs. stp:882: 18 function( "vfs_read" )
> > [...]
> > semantic error: while resolving probe point: identifier 'kernel' at /usr/share/
> > source: probe vfs.read = kernel.
> > ^
> > [...] doc/systemtap/ README. Debian should help you get started.
> > Pass 2: analysis failed. [man error::pass2]
> > Tip: /usr/share/
> > 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()}' 43456res/ 6848shr/ 37248data kb, in 240usr/ 10sys/257real ms. 4.2.0-25- generic/ build/vmlinux. id 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_ .*)$ sys_exit| sys_exit_ group)$ 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) $ .|\.exit\ .|\.devinit\ .|\.devexit\ .|\.cpuinit\ .|\.cpuexit\ .|\.meminit\ .|\.memexit\ .) 0000-0xc0000000 01820394, bias 0 4.2.0-25- generic ELF machine powerpc| (code 21) systemtap/ tapset/ linux/vfs. stp:882: 18 function( "vfs_read" )
^
Pass 1: parsed user script and 109 library script(s) using
# 55552virt/
Attempting to extract kernel debuginfo build ID from
# /lib/modules/
Attempting to extract kernel debuginfo build ID from /sys/kernel/notes
blacklist regexps:
blfn:
^(atomic_
blfn_ret: ^(do_exit|
blfile: ^(kernel/
blsection: ^(\.init\
parse 'vfs_read', func 'vfs_read'
focused on module 'kernel' = [0xc00000000000
file /boot/vmlinux-
focused on module 'kernel'
suggesting 0 dwarf functions from modules:
kernel
semantic error: while resolving probe point: identifier 'kernel' at
/usr/share/
thrown from: elaborate.cxx:1059
source: probe vfs.read = kernel.
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 49792res/ 8192shr/ 38592data kb, in 10usr/0sys/8real ms. doc/systemtap/ README. Debian should help you get started.
thrown from: elaborate.cxx:1022
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s)
using 56896virt/
Pass 2: analysis failed. [man error::pass2]
Tip: /usr/share/
Running rm -rf /tmp/stap1q3VQz
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stap1q3VQz"