FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 01-19-2010, 12:38 AM
Peter Teoh
 
Default running systemtap on ubuntu 9.04 (32bit)

stap -kvvvvvvvvvvvvvvvvvvvv timer.stp
SystemTap translator/driver (version 0.8/0.131 non-git sources)
Copyright (C) 2005-2009 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.28-17-generic
Created temporary directory "/tmp/stapvww9Al"
Searched '/usr/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/share/systemtap/tapset/*.stp', found 45
Pass 1: parsed user script and 47 library script(s) in 260usr/10sys/314real ms.
semantic error: libdwfl failure (missing i686 kernel/module debuginfo
under '/lib/modules/2.6.28-17-generic/build'): No such file or
directory while resolving probe point
kernel.function("timer_interrupt")
dwarf_builder releasing kernel dwflpp
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0
global(s) in 10usr/0sys/2real ms.
Pass 2: analysis failed. Try again with another '--vp 01' option.
Keeping temporary directory "/tmp/stapvww9Al"

and the timer.stp script is:

probe kernel.function("timer_interrupt")
{
printf("Called %s
", probefunc());
print_backtrace();
}

####probe timer.ms(10000) { exit () }

probe end {
printf("
DONE
")
}

Can someone help me out with the "debuginfo" file availability on Ubuntu?

I did a grep:

uname -r
2.6.28-17-generic

grep -i debug_info /boot/config-2.6.28-17-generic
CONFIG_DEBUG_INFO=y

And the current kernel (as apt-get updated, not custom compiled by me)
did compiled with DEBUG INFO.


--
Regards,
Peter Teoh

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 01-19-2010, 07:36 AM
Stefan Bader
 
Default running systemtap on ubuntu 9.04 (32bit)

Peter Teoh wrote:
> stap -kvvvvvvvvvvvvvvvvvvvv timer.stp
> SystemTap translator/driver (version 0.8/0.131 non-git sources)
> Copyright (C) 2005-2009 Red Hat, Inc. and others
> This is free software; see the source for copying conditions.
> Session arch: i686 release: 2.6.28-17-generic
> Created temporary directory "/tmp/stapvww9Al"
> Searched '/usr/share/systemtap/tapset/i686/*.stp', found 2
> Searched '/usr/share/systemtap/tapset/*.stp', found 45
> Pass 1: parsed user script and 47 library script(s) in 260usr/10sys/314real ms.
> semantic error: libdwfl failure (missing i686 kernel/module debuginfo
> under '/lib/modules/2.6.28-17-generic/build'): No such file or
> directory while resolving probe point
> kernel.function("timer_interrupt")
> dwarf_builder releasing kernel dwflpp
> Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0
> global(s) in 10usr/0sys/2real ms.
> Pass 2: analysis failed. Try again with another '--vp 01' option.
> Keeping temporary directory "/tmp/stapvww9Al"
>
> and the timer.stp script is:
>
> probe kernel.function("timer_interrupt")
> {
> printf("Called %s
", probefunc());
> print_backtrace();
> }
>
> ####probe timer.ms(10000) { exit () }
>
> probe end {
> printf("
DONE
")
> }
>
> Can someone help me out with the "debuginfo" file availability on Ubuntu?

The build process is done with debugging info enabled, but the normal packages
will be created by stripping that info away. There usually are debug packages
(.ddeb) on ddebs.ubuntu.com/pool/main/l/linux. Usually because there has been a
cleansing that erased all of the old packages (likely because they are very big).

You can create the packages (with a few GB of diskspace and time) by following
the instructions on https://wiki.ubuntu.com/KernelTeam/StableKernelMaintenance.
To get the source, the simplest way is an "apt-get source
linux-image-2.6.28-17-generic". The actual build command needs to be modified to
use skipdbg=false: "fakeroot debian/rules binary-<flavour>". Replace flavour
with whatever flavour (generic, server, arch (=all)) you want.

-Stefan

> I did a grep:
>
> uname -r
> 2.6.28-17-generic
>
> grep -i debug_info /boot/config-2.6.28-17-generic
> CONFIG_DEBUG_INFO=y
>
> And the current kernel (as apt-get updated, not custom compiled by me)
> did compiled with DEBUG INFO.
>
>


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 05:56 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org