Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » problem with linuxtools callgraph usage
problem with linuxtools callgraph usage [message #643136] Sun, 05 December 2010 01:50 Go to next message
Ben  is currently offline Ben Friend
Messages: 4
Registered: December 2010
Junior Member
Hello forum members!
I suspect I have a config problem, but I tried different things and couldn't get the callgraph component of the linuxtools to work. If somebody could give me some hint on how to get callgraph to work I'd be very thankful.
After much search and several attempts I finally got (apparently) SystemTap working properly on my ubuntu910. Below is the output of the install test as provided here
( http://sourceware.org/systemtap/SystemTap_Beginners_Guide/us ing-systemtap.html#installproper)

Pass 1: parsed user script and 54 library script(s) in 260usr/0sys/273real ms.
Pass 2: analyzed script: 1 probe(s), 11 function(s), 2 embed(s), 1 global(s) in 370usr/180sys/534real ms.
Pass 3: using cached /home/ben/.systemtap/cache/3e/stap_3ebe9cf751d7f87e588d94c19 ba1cfc8_4650.c
Pass 4: using cached /home/ben/.systemtap/cache/3e/stap_3ebe9cf751d7f87e588d94c19 ba1cfc8_4650.ko
Pass 5: starting run.
read performed
Pass 5: run completed in 0usr/10sys/89real ms.

Now when I go to eclipse and try running profile using Profile as Function callgraph I get this:

SystemTap's version of uprobes is out of date.
As root, run "make -C /usr/share/systemtap/runtime/uprobes".
Pass 4: compilation failed. Try again with another '--vp 0001' option.

It seems to me one should not need to become an expert on SystemTap in order to use profile callgraph with eclipse. However, I did try the suggestions given above.

When I tried running "make -C /usr/share/systemtap/runtime/uprobes" as root I got the following pile of errors:

make: Entering directory `/usr/share/systemtap/runtime/uprobes'
make -C /lib/modules/2.6.31-22-generic/build SUBDIRS=/usr/share/systemtap/runtime/uprobes modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-22-generic'
CC [M] /usr/share/systemtap/runtime/uprobes/uprobes.o
/usr/share/systemtap/runtime/uprobes/uprobes.c:1:26: error: linux/utrace.h: No such file or directory
In file included from /usr/share/systemtap/runtime/uprobes/uprobes.c:8:
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'utask_adjust_flags':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:3 58: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:3 71: error: implicit declaration of function 'utrace_set_events_pid'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'clear_utrace_quiesce':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:3 80: error: implicit declaration of function 'UTRACE_EVENT'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:3 80: error: 'QUIESCE' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:3 80: error: (Each undeclared identifier is reported only once
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:3 80: error: for each function it appears in.)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:3 82: error: implicit declaration of function 'utrace_control_pid'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:3 83: error: 'UTRACE_RESUME' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'uprobe_stop_thread':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:4 34: error: 'UTRACE_STOP' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:4 57: error: 'UTRACE_INTERRUPT' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'quiesce_all_threads':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:4 94: error: 'QUIESCE' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'uprobe_free_task':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:5 33: error: 'UTRACE_DETACH' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'uprobe_add_task':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:6 64: error: implicit declaration of function 'utrace_attach_pid'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:6 64: error: 'UTRACE_ATTACH_CREATE' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:6 65: warning: assignment makes pointer from integer without a cast
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:6 81: error: 'SIGNAL' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:6 81: error: 'SIGNAL_IGN' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:6 82: error: 'SIGNAL_CORE' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:6 82: error: 'EXEC' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:6 83: error: 'CLONE' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:6 83: error: 'EXIT' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'uprobe_report_signal':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 854: error: variable 'signal_action' has initializer but incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 854: error: implicit declaration of function 'utrace_signal_action'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 854: error: storage size of 'signal_action' isn't known
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 855: error: storage size of 'resume_action' isn't known
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 858: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 858: warning: type defaults to 'int' in declaration of '_________p1'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 858: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 858: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 858: warning: type defaults to 'int' in declaration of 'type name'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 867: error: 'UTRACE_SINGLESTEP' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 869: error: 'UTRACE_RESUME' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 874: error: 'UTRACE_SIGNAL_REPORT' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 884: error: 'UTRACE_SIGNAL_IGN' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 890: error: 'UTRACE_DETACH' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 894: error: 'UTRACE_STOP' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 908: error: 'UTRACE_SIGNAL_DELIVER' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 984: error: 'QUIESCE' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 855: warning: unused variable 'resume_action'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:1 854: warning: unused variable 'signal_action'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: At top level:
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 094: warning: 'enum utrace_resume_action' declared inside parameter list
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 094: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 091: error: parameter 1 ('action') has incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'uprobe_report_quiesce':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 100: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 100: warning: type defaults to 'int' in declaration of '_________p1'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 100: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 100: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 100: warning: type defaults to 'int' in declaration of 'type name'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 110: error: 'UTRACE_SINGLESTEP' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 136: error: 'UTRACE_RESUME' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 136: error: 'UTRACE_STOP' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: At top level:
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 205: warning: 'enum utrace_resume_action' declared inside parameter list
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 203: error: parameter 1 ('action') has incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'uprobe_report_exit':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 212: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 212: warning: type defaults to 'int' in declaration of '_________p1'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 212: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 212: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 212: warning: type defaults to 'int' in declaration of 'type name'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 271: error: 'UTRACE_DETACH' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: At top level:
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 415: warning: 'enum utrace_resume_action' declared inside parameter list
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 411: error: parameter 1 ('action') has incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'uprobe_report_clone':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 421: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 421: warning: type defaults to 'int' in declaration of '_________p1'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 421: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 421: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 421: warning: type defaults to 'int' in declaration of 'type name'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 499: error: 'UTRACE_RESUME' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: At top level:
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 523: warning: 'enum utrace_resume_action' declared inside parameter list
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 518: error: parameter 1 ('action') has incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: In function 'uprobe_report_exec':
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 529: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 529: warning: type defaults to 'int' in declaration of '_________p1'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 529: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 529: error: dereferencing pointer to incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 529: warning: type defaults to 'int' in declaration of 'type name'
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 546: error: 'UTRACE_DETACH' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 546: error: 'UTRACE_RESUME' undeclared (first use in this function)
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c: At top level:
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 549: error: variable 'uprobe_utrace_ops' has initializer but incomplete type
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 551: error: unknown field 'report_quiesce' specified in initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 551: warning: excess elements in struct initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 551: warning: (near initialization for 'uprobe_utrace_ops')
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 552: error: unknown field 'report_signal' specified in initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 552: warning: excess elements in struct initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 552: warning: (near initialization for 'uprobe_utrace_ops')
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 553: error: unknown field 'report_exit' specified in initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 553: warning: excess elements in struct initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 553: warning: (near initialization for 'uprobe_utrace_ops')
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 554: error: unknown field 'report_clone' specified in initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 554: warning: excess elements in struct initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 554: warning: (near initialization for 'uprobe_utrace_ops')
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 555: error: unknown field 'report_exec' specified in initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 556: warning: excess elements in struct initializer
/usr/share/systemtap/runtime/uprobes/../uprobes2/uprobes.c:2 556: warning: (near initialization for 'uprobe_utrace_ops')
make[2]: *** [/usr/share/systemtap/runtime/uprobes/uprobes.o] Error 1
make[1]: *** [_module_/usr/share/systemtap/runtime/uprobes] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-22-generic'
make: *** [default] Error 2
make: Leaving directory `/usr/share/systemtap/runtime/uprobes'

I also tried some changes with the configuration of callgraph by was unsuccessful.
Thanks for any help!!!!!!!!
Re: problem with linuxtools callgraph usage [message #643445 is a reply to message #643136] Mon, 06 December 2010 21:28 Go to previous messageGo to next message
Jeff Johnston is currently offline Jeff JohnstonFriend
Messages: 215
Registered: July 2009
Senior Member
Please see: https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/529 313

There is missing utrace support in the Ubuntu kernel.
Re: problem with linuxtools callgraph usage [message #643738 is a reply to message #643136] Wed, 08 December 2010 06:04 Go to previous messageGo to next message
Ben  is currently offline Ben Friend
Messages: 4
Registered: December 2010
Junior Member
So, then I suppose I cannot use callgraph on my ubuntu910 installed eclipse! That's what this post( https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/529 313) seems to indicate.
Thanks for the reply, anyway!
Regards,
Ben
Re: problem with linuxtools callgraph usage [message #644430 is a reply to message #643738] Sat, 11 December 2010 07:36 Go to previous messageGo to next message
Fu Haiping is currently offline Fu HaipingFriend
Messages: 2
Registered: December 2010
Junior Member
I've patched my kernel 2.6.35 with utrace under Ubuntu10.10, but when executing callgraph I encountered some problems:

sh: /usr/bin/staprun: Permission denied
Pass 5: run failed. Try again with another '--vp 00001' option.

How can I get the right permission ?Anybody knows?
Re: problem with linuxtools callgraph usage [message #644694 is a reply to message #644430] Mon, 13 December 2010 19:37 Go to previous messageGo to next message
Jeff Johnston is currently offline Jeff JohnstonFriend
Messages: 215
Registered: July 2009
Senior Member
Did you remember to add your userid to the stapdev group? See the Callgraph Help docs and follow the link to the SystemTap Beginner's Guide. Section 2.3 discusses the stapdev and stapusr user groups.
Re: problem with linuxtools callgraph usage [message #646162 is a reply to message #643136] Wed, 22 December 2010 13:27 Go to previous messageGo to next message
Wainer dos Santos Moschetta is currently offline Wainer dos Santos MoschettaFriend
Messages: 1
Registered: December 2010
Junior Member
Hi all!

I thought I could just install ubuntu debuginfo kernel [1] and thus make it works as expected. However, the error raised when calling callgraph still persist in my ubuntu 10.04 (Lucid).

I have issued (by hands) many simple systemtap scripts only to test the installation and them all ran without errors.

Maybe ubuntu debuginfo kernel is compiled with utrace disabled. Does not exist an /dev/utrace device in the system.

Should I really go for re-compiling the kernel from source? Any idea?

[1] Ubuntu ddebs kernel packages - http://ddebs.ubuntu.com/pool/main/l/linux/

Re: problem with linuxtools callgraph usage [message #646438 is a reply to message #646162] Fri, 24 December 2010 08:24 Go to previous messageGo to next message
Fu Haiping is currently offline Fu HaipingFriend
Messages: 2
Registered: December 2010
Junior Member
Yes, you have to patch the kernel and re-compile it if you want to stap your own apps,otherwise it doesn't have to do so if you only need to collect some information about your OS or kernel.
Re: problem with linuxtools callgraph usage [message #655714 is a reply to message #643136] Tue, 22 February 2011 12:24 Go to previous messageGo to next message
EvgenijM86  is currently offline EvgenijM86 Friend
Messages: 1
Registered: February 2011
Junior Member
Ok, i've downloaded the correct kernel with utrace, added myself to stapdev and stapusr groups and still can't run it:

ERROR: Unable to verify the signature for the module /tmp/stapShZRuj/stap_c9114380922df2350a36dd8ea544d25e_176164 .ko.
Members of the "stapusr" group can only use unsigned modules within
the "/lib/modules/2.6.35-26-generic/systemtap" directory.
Module " /tmp/stapShZRuj/stap_c9114380922df2350a36dd8ea544d25e_176164 .ko " does not exist within that directory.

note: I have manually created systemtap dir with stapdev group rights in "/lib/modules/2.6.35-26-generic/" - previously it complained that it does not exist.

I thought about linking systemtap dir to one used in /tmp/, but its name is always random. Can I just somehow point callgraph to use /lib/modules/2.6.35-26-generic/systemtap instead of tmp? Or is there a way to sign that *.ko module?

Running eclipse as root seems to fix the problem.
Re: problem with linuxtools callgraph usage [message #677420 is a reply to message #655714] Wed, 08 June 2011 13:13 Go to previous messageGo to next message
Pradeep Chhetri is currently offline Pradeep ChhetriFriend
Messages: 1
Registered: June 2011
Junior Member
@Fu Haiping: I am also using Ubuntu 10.10 with linux kernel 2.6.35. Can you kindly give me the link of the patch of utrace and tell me in steps how you patched the kernel with the utrace. Whenever I run the userspace programm and try to trace it, I get the error that CONFIG_UTRACE not set. I am really in need of this. Please help me out as soon as possible
Re: problem with linuxtools callgraph usage [message #690657 is a reply to message #646162] Wed, 29 June 2011 22:52 Go to previous messageGo to next message
java  is currently offline java Friend
Messages: 3
Registered: June 2011
Junior Member
Wainer dos Santos Moschetta wrote on Wed, 22 December 2010 08:27
Hi all!

I thought I could just install ubuntu debuginfo kernel [1] and thus make it works as expected. However, the error raised when calling callgraph still persist in my ubuntu 10.04 (Lucid).

I have issued (by hands) many simple systemtap scripts only to test the installation and them all ran without errors.

Maybe ubuntu debuginfo kernel is compiled with utrace disabled. Does not exist an /dev/utrace device in the system.

Should I really go for re-compiling the kernel from source? Any idea?

[1] Ubuntu ddebs kernel packages - ddebs.ubuntu.com/pool/main/l/linux/


hi
any body know what should i do with the .ddeb file in link above.
i have downloaded utrace enable kernel source from git.kernel.org which it's version is 2.6.38.6.my current kernel version is 2.6.32.21 10.4 ubuntu but i give this error
when running " stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
"
ERROR:
Pass 4: compiled C into "stap_f245413de78bee1b6f1db41ed7447e59_4783.ko" in 5850usr/1180sys/7315real ms.
Pass 4: compilation failed. Try again with another '--vp 0001' option.

and in eclipse i give this error when i profile my program with callgraph:

cc1: warnings being treated as errors
In file included from /usr/share/systemtap/runtime/runtime.h:128,
from /tmp/stapsGhEFC/stap_c06374d670349fc7438fc4189a75e933_7388.c:51:
/usr/share/systemtap/runtime/task_finder.c: In function 'stap_register_task_finder_target':
/usr/share/systemtap/runtime/task_finder.c:178: error: assignment from incompatible pointer type
/usr/share/systemtap/runtime/task_finder.c:179: error: assignment from incompatible pointer type
/usr/share/systemtap/runtime/task_finder.c:180: error: assignment from incompatible pointer type
/usr/share/systemtap/runtime/task_finder.c:182: error: assignment from incompatible pointer type
/usr/share/systemtap/runtime/task_finder.c: At top level:
/usr/share/systemtap/runtime/task_finder.c:1339: error: initialization from incompatible pointer type
/usr/share/systemtap/runtime/task_finder.c:1340: error: initialization from incompatible pointer type
/usr/share/systemtap/runtime/task_finder.c:1341: error: initialization from incompatible pointer type
/tmp/stapsGhEFC/stap_c06374d670349fc7438fc4189a75e933_7388.c:3143: error: 'param_ops_int64_t' undeclared here (not in a function)
make[1]: *** [/tmp/stapsGhEFC/stap_c06374d670349fc7438fc4189a75e933_7388.o] Error 1
make: *** [_module_/tmp/stapsGhEFC] Error 2
Pass 4: compilation failed. Try again with another '--vp 0001' option.

anybody can help me?
thank you
Laughing Shocked Rolling Eyes
Re: problem with linuxtools callgraph usage [message #854393 is a reply to message #643136] Mon, 23 April 2012 23:29 Go to previous messageGo to next message
Gurce Isikyildiz is currently offline Gurce IsikyildizFriend
Messages: 6
Registered: April 2012
Junior Member
I'm also having problems with this callgraph facility. More on this thread at:

forums.opensuse.org/forums/english/get-technical-help-here/applications/474642-eclipse-callgraph-systemtap-problems.html#post2458006

It turns out the latest OpenSuse 12.1 has removed utrace from their trace-flavour of kernel, saying that it is no longer accepted upstream.

That's a shame, I was hoping to explore this tool, but now looks like its out of reach Sad
Re: problem with linuxtools callgraph usage [message #1231550 is a reply to message #854393] Tue, 14 January 2014 23:33 Go to previous messageGo to next message
Gurce Isikyildiz is currently offline Gurce IsikyildizFriend
Messages: 6
Registered: April 2012
Junior Member
I've been giving systemtap another try, this time on my OpenSUSE 11.4 system.

The OpenSuse 11.4 repos came with systemtap v1.4 (which is a bit old now).

I tried running a simple "stap hello.stp" example and encountered this error message, similar to the one EvgenijM86 experienced in his post.

ERROR: Unable to verify the signature for the module /tmp/stapShZRuj/stap_c9114380922df2350a36dd8ea544d25e_176164 .ko
Members of the "stapusr" group can only use unsigned modules within
the "/lib/modules/2.6.35-26-generic/systemtap" directory.


I've learnt you can overcome this error, by doing the following:


  • sudo chgrp stapdev /usr/bin/stap*
  • sudo chmod a+s /usr/bin/stap*


Ie, change the group of those stap* binaries to stapdev and that setuid bit is set.

After this, if I do "stap hello.stp" now, the output is:

hello world
rm: cannot remove `/tmp/stapTJfUev': Permission denied


Hmm, so there's still a permission problem removing those temp folders, but it runs, whew...

Not perfect, but some progress... I'm also thinking of just building the latest systemtap from the source, as I recall the newer version doesn't need utrace, which was a problem in opensuse, as last I heard, they don't include it anymore:

http://www.eclipse.org/forums/index.php/mv/msg/201831/#msg_644880

Gurce
Re: problem with linuxtools callgraph usage [message #1231578 is a reply to message #1231550] Wed, 15 January 2014 01:02 Go to previous message
Gurce Isikyildiz is currently offline Gurce IsikyildizFriend
Messages: 6
Registered: April 2012
Junior Member
Just to follow up:


  • I tried building the latest systemtap v2.4 from the source
  • This worked better with my "stap hello.stp" example (when run as the current user, no longer have the "rm: cannot remove..." error message at the end)
  • In eclipse, it still complains about not having utrace though...


I read a bit more here:

https://sourceware.org/systemtap/wiki/SystemtapOnUbuntu

There was a mention there that utrace is no longer needed for kernels >=3.5.

Aah ok then, in my opensuse11.4, I'm on kernel v2.6.37 right now... So maybe I'll give eclipse+systemtap another try when I upgrade to a newer version of opensuse one day and hopefully things will work out better...
Previous Topic:updating eclipse in OEL 6.0
Next Topic:Man Pages in Windows
Goto Forum:
  


Current Time: Tue Apr 23 10:02:52 GMT 2024

Powered by FUDForum. Page generated in 0.04296 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top