------- Comment From [email protected] 2016-01-08 09:16 EDT-------
Tested systemtap from trusty-proposed and it seems to work.
System tap version :
# stap --version
Systemtap translator/driver (version 2.3/0.158, Debian version 2.3-1ubuntu1.3
(trusty))
Copyright (C) 2005-2013 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: AVAHI LIBSQLITE3 NSS TR1_UNORDERED_MAP NLS
Here is how I tested :
For uprobes :
# cat test_prog.c
#include <stdio.h>
void foo(void)
{
printf("Inside foo\n");
}
int main(void)
{
return foo();
}
# gcc test_prog.c -g -o test_prog
# stap -ve 'probe process("./test_prog").function("foo") { printf("hit\n"); }'
-c ./test_prog
Pass 1: parsed user script and 95 library script(s) using
42112virt/32064res/5952shr/25344data kb, in 150usr/30sys/181real ms.
Pass 2: analyzed script: 2 probe(s), 0 function(s), 0 embed(s), 0 global(s)
using 42880virt/33920res/6720shr/25984data kb, in 0usr/0sys/7real ms.
Pass 3: translated to C into
"/tmp/stapT5MpEn/stap_712b2bd0a7f7d10866d5e1187590250b_1091_src.c" using
66560virt/35072res/7744shr/26112data kb, in 20usr/170sys/193real ms.
Pass 4: compiled C into "stap_712b2bd0a7f7d10866d5e1187590250b_1091.ko" in
6730usr/1710sys/8514real ms.
Pass 5: starting run.
Inside foo
hit
This shows that it hits the probe point "foo". I also verified the
address and found that it places the probe at intended location which is
at the Local Entry Point of "foo".
Similarly, to test kprobes :
# stap -ve 'probe kernel.function("do_fork") { printf("hit\n"); }'
And it showed "hit" upon executing a program from shell. Please note
that kernel debuginfo (debugsym) package is needed to test kprobes.
So, from the above tests it looks like systemtap is able to put the
probes at the right places.
** Tags removed: verification-needed
** Tags added: verification-done
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1511347
Title:
Feature request to enable systemtap on ubuntu 14.04.04.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1511347/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs