This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: systemtap probing user space function on Ubuntu


Hi -

abruzzoforteegentile wrote:
>>> [... trying to run systemtap user-space probing on ubuntu 10.10 ...]
>> [... need utrace kernel ...]
> [...]
> Before writing few lines of recipes let me understand something that
> it is also interesting to know in general,
> [...]
> // my machines
> Ubuntu 10.10 2.6.35-25-generic
> Ubuntu 10.04.2 LTS 2.6.32-28-generic
> //patch version
> 2.6.35-27.47
> 2.6.35-26.46
> I think that this is a common scenario where it would be nice to find
> a recipe written in the wiki.

Yeah - it is confusing (and more so to a Ubuntu newbie like I am).

> Let me find out ( and write on that wiki ) whether is possible and how
> to make this patch for any version
> ( need to contact UBUNTU people ).

For what it's worth, I've had a first userspace 'hello world' stap
success on ubuntu maverick.  The steps consisted of:

# echo 'deb http://ppa.launchpad.net/speijnik/utrace-kernel/ubuntu maverick main' >> /etc/apt/sources.list
# echo 'deb-src http://ppa.launchpad.net/speijnik/utrace-kernel/ubuntu maverick main' >> /etc/apt/sources.list
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6aa1691f
# apt-get install 'linux-image-2.6.35-26-server=2.6.35-26.46~utrace0'
# apt-get install 'linux-image-2.6.35-26-server-dbgsym=2.6.35-26.46~utrace0'
# apt-get install 'linux-headers-2.6.35-26-server=2.6.35-26.46~utrace0'
# apt-get install systemtap # or build your own
# stap -tv -e 'probe process("a.out").function("main") {}' -c ./a.out

No other symlinking magic setup was necessary!
Much thanks to Stephan Peijnik for maintaining that PPA.

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]