public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* stap on RHEL 5.2 (2.6.18-92.1.10-el5)
@ 2008-09-10 21:01 Dave Brolley
  2008-09-10 22:15 ` Mark Wielaard
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Brolley @ 2008-09-10 21:01 UTC (permalink / raw)
  To: systemtap

Hi,

I've built from the latest git on RHEL 5.2 (2.6.18-92.1.10-el5) with no 
problems, but when I try to run a simple example, I get the error below. 
I have the correct kernel-debuginfo and kernel-devel installed and am 
using --with-elfutils when configuring to use the elfutils from our site 
with the portability patch applied.

The same example works ok on my f8 system and I've compared the 
generated C code from both systems (only minor differences), so there 
must be a problem with a header file, I'm guessing.

Anyone seen anything like this?

Thanks,
Dave
--------------------------------------------------------------------------------
 >> stap -e 'probe begin { print ("Hello, World!\n"; }' -vv
SystemTap translator/driver (version 0.7.1/0.131 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.18-92.1.10.el5
Created temporary directory "/tmp/stapIgJl6Q"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 43
Pass 1: parsed user script and 45 library script(s) in 
370usr/0sys/384real ms.
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0 
global(s) in 10usr/0sys/6real ms.
Pass 3: translated to C into 
"/tmp/stapIgJl6Q/stap_1577f611a4f1b47d9b0bd5d112d15b72_163.c" in 
30usr/50sys/76real ms.
Running make -C "/lib/modules/2.6.18-92.1.10.el5/build" 
M="/tmp/stapIgJl6Q" modules >/dev/null
In file included from /usr/local/share/systemtap/runtime/stack.c:35,
from /tmp/stapIgJl6Q/stap_1577f611a4f1b47d9b0bd5d112d15b72_163.c:43:
/usr/local/share/systemtap/runtime/stack-i386.c: In function 
‘__stp_stack_print’:
/usr/local/share/systemtap/runtime/stack-i386.c:57: error: storage size 
of ‘info’ isn’t known
/usr/local/share/systemtap/runtime/stack-i386.c:58: error: implicit 
declaration of function ‘arch_unw_init_frame_info’
/usr/local/share/systemtap/runtime/stack-i386.c:60: error: implicit 
declaration of function ‘arch_unw_user_mode’
/usr/local/share/systemtap/runtime/stack-i386.c:61: error: implicit 
declaration of function ‘unwind’
/usr/local/share/systemtap/runtime/stack-i386.c:64: error: implicit 
declaration of function ‘UNW_PC’
/usr/local/share/systemtap/runtime/stack-i386.c:71: error: implicit 
declaration of function ‘UNW_SP’
make[1]: *** 
[/tmp/stapIgJl6Q/stap_1577f611a4f1b47d9b0bd5d112d15b72_163.o] Error 1
make: *** [_module_/tmp/stapIgJl6Q] Error 2
Pass 4: compiled C into "stap_1577f611a4f1b47d9b0bd5d112d15b72_163.ko" 
in 1220usr/230sys/1479real ms.
Pass 4: compilation failed. Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapIgJl6Q

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

* Re: stap on RHEL 5.2 (2.6.18-92.1.10-el5)
  2008-09-10 21:01 stap on RHEL 5.2 (2.6.18-92.1.10-el5) Dave Brolley
@ 2008-09-10 22:15 ` Mark Wielaard
  2008-09-11 15:03   ` Dave Brolley
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2008-09-10 22:15 UTC (permalink / raw)
  To: Dave Brolley; +Cc: systemtap

Hi Dave,

On Wed, 2008-09-10 at 17:00 -0400, Dave Brolley wrote:
> The same example works ok on my f8 system and I've compared the 
> generated C code from both systems (only minor differences), so there 
> must be a problem with a header file, I'm guessing.
> 
> Anyone seen anything like this?

Sorry I missed this. Fedora has kernels with CONFIG_FRAME_POINTER set
for i386, rhel apparently hasn't. Frank already pushed a fix:

commit da4c496a55b73e2a768d3b1c6cee44b43144bcc8
Author: Frank Ch. Eigler <fche@elastic.org>
Date:   Wed Sep 10 17:18:41 2008 -0400
backtrace fix for i386 with neither frame pointers nor dwarf unwinding

Please yell if that doesn't fix it for you.

Thanks,

Mark

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

* Re: stap on RHEL 5.2 (2.6.18-92.1.10-el5)
  2008-09-10 22:15 ` Mark Wielaard
@ 2008-09-11 15:03   ` Dave Brolley
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Brolley @ 2008-09-11 15:03 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: systemtap

Mark Wielaard wrote:
> Hi Dave,
>
>
>   
> Sorry I missed this. Fedora has kernels with CONFIG_FRAME_POINTER set
> for i386, rhel apparently hasn't. Frank already pushed a fix:
>
> commit da4c496a55b73e2a768d3b1c6cee44b43144bcc8
> Author: Frank Ch. Eigler <fche@elastic.org>
> Date:   Wed Sep 10 17:18:41 2008 -0400
> backtrace fix for i386 with neither frame pointers nor dwarf unwinding
>
> Please yell if that doesn't fix it for you.
>
>   
Thanks Mark. That did the trick.

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

end of thread, other threads:[~2008-09-11 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-10 21:01 stap on RHEL 5.2 (2.6.18-92.1.10-el5) Dave Brolley
2008-09-10 22:15 ` Mark Wielaard
2008-09-11 15:03   ` Dave Brolley

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