You are not logged in. Login or Register for free.
Title only?
Strange sound and vision from here to the end of the world.
"We're fans first, journalists second."






  3 comments
  Email this

  


Posted on Thursday, October 26th, 2006 19:59:41 GMT by: quietearth
Posted under: ubuntu systemtap

Rrrrrrrr matey.

Ok well pirate day has been over for a while, but how bout them barnacles in the kernel?

I just got systemtap to compile under ubuntu, which was a much easier task then I thought. First off we need to compile a custom kernel with a couple of things enabled. Follow my post on compiling a custom kernel here. When you get to the part with "make menuconfig" here's the options we need to turn on:
Kernel hacking  --->
    [*] Kernel debugging
        [*]   Compile the kernel with debug info
Instrumentation Support  --->
    [*] Kprobes (EXPERIMENTAL)


Once this is done, install the kernel image and kernel headers package, and make sure to put it at the top of your grub boot list. Reboot and bam, your ready.

So we need to install an extra package:
# apt-get install libglib2.0-dev

Get the systemtap package, I used the latest snapshot 20061021:
ftp://sources.redhat.com/pub/systemtap/snapshots

Then grab the elfutils package, I'm using 0.124.
ftp://sources.redhat.com/pub/systemtap/elfutils

Now gunzip/untar the 2 packages in seperate directories and run configure like such from the systemtap directory:
# ./configure --with-elfutils=/path/to/elfutils/dir
# make
# make install


One last thing, it needs to know where to find the kernel image which has the debug info compiled in. For me this is located at:
/usr/src/linux-source-2.6.15/vmlinux
so we just need to create a symlink for systemtap to find it, your filenames and paths might be different.
# ln -s /usr/src/linux-source-2.6.15/vmlinux /lib/modules/2.6.15.7-ubuntu1custom2/vmlinux

In the systemtap src/examples/small_demos directory are a bunch of example scripts you can run. They worked fine for me. I still don't know much about this program, but at least now I can play with it.

If anyone has any good usage examples or problems please let me know!

Tested under dapper.

Pingbacks

Pingback from http://www.michaeldolan.com/605
on February 27th, 2007 2:55:52 GMT

RSS Feed for comments

Comments

For some more examples, see the wiki page
http://sourceware.org/systemtap/wiki/WarStories

Posted by: Frank Ch. Eigler | October 26, 2006 04:59:03 pm | permalink

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 7.10
Release: 7.10
Codename: gutsy
# apt-cache search systemtap
systemtap - instrumentation system for Linux 2.6

Posted by: Anonymous | November 15, 2007 05:21:09 pm | permalink

Post a comment

Name:
(default is Anonymous)
Contact:
(email or url, optional)
Comment:
(no html or bbcode)
Captcha:



Related articles
Posted on Wednesday, September 27th, 2006 18:22:24 GMT by: quietearth |   14 comments

Posted on Thursday, September 28th, 2006 18:07:49 GMT by: quietearth |   7 comments

Posted on Sunday, October 1st, 2006 3:47:00 GMT by: quietearth |   11 comments

Posted on Thursday, November 16th, 2006 0:10:33 GMT by: quietearth |   1 comment

Posted on Monday, January 8th, 2007 1:07:05 GMT by: quietearth |   0 comments




rss | subscribe via email | the team | contact us | mobile
© 2006-2009 Don Neumann (except where applicable)
We are looking for free hosting with a cut of sales, you'll get a link right here.
If you want news of your film posted, use our contact page and we'll check it out
Permission is granted to use material from this site if you provide a reference to us via a link and DO NOT HOTLINK.


GenreBanners.com Banner Exchange