Bug 486448 - systemtap won't execute any scripts (F11/Alpha)
systemtap won't execute any scripts (F11/Alpha)
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: systemtap (Show other bugs)
rawhide
All Linux
high Severity high
: ---
: ---
Assigned To: Frank Ch. Eigler
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-19 15:01 EST by Andrew Hecox
Modified: 2009-02-19 18:03 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-02-19 18:03:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Andrew Hecox 2009-02-19 15:01:31 EST
using rawhide (F11), stap cannot execute even a basic hello.stap script. It errors out as below.

ahecox@t61 ~ $ stap -vv hello.stp 
SystemTap translator/driver (version 0.8/0.140 non-git sources)
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.29-0.124.rc5.fc11.i586
Created temporary directory "/tmp/stapj1CIlR"
Searched '/usr/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/share/systemtap/tapset/*.stp', found 43
Pass 1: parsed user script and 45 library script(s) in 310usr/20sys/348real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in 0usr/0sys/4real ms.
Pass 3: translated to C into "/tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c" in 60usr/750sys/844real ms.
Running make -C "/lib/modules/2.6.29-0.124.rc5.fc11.i586/build" M="/tmp/stapj1CIlR" modules >/dev/null
In file included from /usr/share/systemtap/runtime/transport/transport.c:22,
                 from /usr/share/systemtap/runtime/print.c:17,
                 from /usr/share/systemtap/runtime/runtime.h:84,
                 from /tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c:41:
/usr/share/systemtap/runtime/transport/symbols.c:121:33: error: macro "swap" passed 3 arguments, but takes just 2
/usr/share/systemtap/runtime/transport/symbols.c:127:28: error: macro "swap" passed 3 arguments, but takes just 2
/usr/share/systemtap/runtime/transport/symbols.c:134:33: error: macro "swap" passed 3 arguments, but takes just 2
In file included from /usr/share/systemtap/runtime/transport/transport.c:23,
                 from /usr/share/systemtap/runtime/print.c:17,
                 from /usr/share/systemtap/runtime/runtime.h:84,
                 from /tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c:41:
/usr/share/systemtap/runtime/transport/../procfs.c: In function ‘_stp_mkdir_proc_module’:
/usr/share/systemtap/runtime/transport/../procfs.c:102: error: ‘struct nameidata’ has no member named ‘dentry’
/usr/share/systemtap/runtime/transport/../procfs.c:103: error: implicit declaration of function ‘path_release’
In file included from /usr/share/systemtap/runtime/transport/transport.c:35,
                 from /usr/share/systemtap/runtime/print.c:17,
                 from /usr/share/systemtap/runtime/runtime.h:84,
                 from /tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c:41:
/usr/share/systemtap/runtime/transport/utt.c: In function ‘utt_dropped_open’:
/usr/share/systemtap/runtime/transport/utt.c:198: error: ‘struct inode’ has no member named ‘u’
In file included from /usr/share/systemtap/runtime/print.c:17,
                 from /usr/share/systemtap/runtime/runtime.h:84,
                 from /tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c:41:
/usr/share/systemtap/runtime/transport/transport.c: In function ‘_stp_transport_init’:
/usr/share/systemtap/runtime/transport/transport.c:214: error: ‘struct task_struct’ has no member named ‘uid’
/usr/share/systemtap/runtime/transport/transport.c:215: error: ‘struct task_struct’ has no member named ‘gid’
In file included from /tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c:42:
/usr/share/systemtap/runtime/regs.c: In function ‘_stp_ret_addr’:
/usr/share/systemtap/runtime/regs.c:49: error: ‘struct pt_regs’ has no member named ‘esp’
/usr/share/systemtap/runtime/regs.c: In function ‘_stp_print_regs’:
/usr/share/systemtap/runtime/regs.c:235: error: ‘struct pt_regs’ has no member named ‘eip’
/usr/share/systemtap/runtime/regs.c:236: error: ‘struct pt_regs’ has no member named ‘esp’
/usr/share/systemtap/runtime/regs.c:238: error: ‘struct pt_regs’ has no member named ‘eax’
/usr/share/systemtap/runtime/regs.c:238: error: ‘struct pt_regs’ has no member named ‘ebx’
/usr/share/systemtap/runtime/regs.c:238: error: ‘struct pt_regs’ has no member named ‘ecx’
/usr/share/systemtap/runtime/regs.c:238: error: ‘struct pt_regs’ has no member named ‘edx’
/usr/share/systemtap/runtime/regs.c:240: error: ‘struct pt_regs’ has no member named ‘esi’
/usr/share/systemtap/runtime/regs.c:240: error: ‘struct pt_regs’ has no member named ‘edi’
/usr/share/systemtap/runtime/regs.c:240: error: ‘struct pt_regs’ has no member named ‘ebp’
/usr/share/systemtap/runtime/regs.c:242: error: ‘struct pt_regs’ has no member named ‘xds’
/usr/share/systemtap/runtime/regs.c:242: error: ‘struct pt_regs’ has no member named ‘xes’
/usr/share/systemtap/runtime/regs.c: In function ‘_stp_get_sp’:
/usr/share/systemtap/runtime/regs.c:417: error: ‘struct pt_regs’ has no member named ‘esp’
/usr/share/systemtap/runtime/regs.c:418: error: ‘struct pt_regs’ has no member named ‘esp’
/usr/share/systemtap/runtime/regs.c: In function ‘_stp_get_arg32_by_number’:
/usr/share/systemtap/runtime/regs.c:505: error: ‘struct pt_regs’ has no member named ‘eax’
/usr/share/systemtap/runtime/regs.c:506: error: ‘struct pt_regs’ has no member named ‘edx’
/usr/share/systemtap/runtime/regs.c:507: error: ‘struct pt_regs’ has no member named ‘ecx’
In file included from /usr/share/systemtap/runtime/stack.c:35,
                 from /tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c:43:
/usr/share/systemtap/runtime/stack-i386.c: In function ‘__stp_stack_print’:
/usr/share/systemtap/runtime/stack-i386.c:33: error: ‘struct pt_regs’ has no member named ‘esp’
/usr/share/systemtap/runtime/stack-i386.c:37: error: ‘struct pt_regs’ has no member named ‘ebp’
In file included from /tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c:43:
/usr/share/systemtap/runtime/stack.c: In function ‘_stp_stack_print’:
/usr/share/systemtap/runtime/stack.c:61: error: ‘struct pt_regs’ has no member named ‘eip’
/usr/share/systemtap/runtime/stack.c:65: error: ‘struct pt_regs’ has no member named ‘eip’
/usr/share/systemtap/runtime/stack.c:67: error: ‘struct pt_regs’ has no member named ‘eip’
In file included from /tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c:45:
/usr/share/systemtap/runtime/stat.c:213:16: error: macro "for_each_cpu" requires 2 arguments, but only 1 given
In file included from /tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.c:45:
/usr/share/systemtap/runtime/stat.c: In function ‘_stp_stat_get’:
/usr/share/systemtap/runtime/stat.c:213: error: ‘for_each_cpu’ undeclared (first use in this function)
/usr/share/systemtap/runtime/stat.c:213: error: (Each undeclared identifier is reported only once
/usr/share/systemtap/runtime/stat.c:213: error: for each function it appears in.)
/usr/share/systemtap/runtime/stat.c:213: error: expected ‘;’ before ‘{’ token
/usr/share/systemtap/runtime/stat.c:248:16: error: macro "for_each_cpu" requires 2 arguments, but only 1 given
/usr/share/systemtap/runtime/stat.c: In function ‘_stp_stat_clear’:
/usr/share/systemtap/runtime/stat.c:248: error: ‘for_each_cpu’ undeclared (first use in this function)
/usr/share/systemtap/runtime/stat.c:248: error: expected ‘;’ before ‘{’ token
make[1]: *** [/tmp/stapj1CIlR/stap_e12ddf2f64248e7d910f202a52ea6f89_292.o] Error 1
make: *** [_module_/tmp/stapj1CIlR] Error 2
Pass 4: compiled C into "stap_e12ddf2f64248e7d910f202a52ea6f89_292.ko" in 790usr/1010sys/2100real ms.
Pass 4: compilation failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapj1CIlR


ahecox@t61 ~ $ cat hello.stap                                 
#! /usr/bin/stap

probe begin
{
        printf("hello world\n");
        exit();
}
$ rpm -q systemtap
systemtap-0.8-1.fc11.i386
Comment 1 Frank Ch. Eigler 2009-02-19 15:07:10 EST
Try the -0.9-1 release that was just pushed to koji/bodhi.
Comment 2 Andrew Hecox 2009-02-19 18:03:03 EST
works, great. thanks.

$ stap hello.stp 
hello world

Note You need to log in before you can comment on or make changes to this bug.