- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to perform callgraph profiling on my application. I'm getting a failure that I'm sure is easy to fix but can't seem to find a solution in this forum.
Platform: Itanium 2
Vtune 3.0 for Linux
When I run:
vtl activity -c callgraph -app ./myapp -moi ./myapp run
I get:
---
Reading property files started...
Reading property files done.
Instrumentation of the various modules
Data collection started...
More Instrumentation of modules
Data collection finished...
Error - Internal error while resolving the results file
---
vtl works correctly with a simple call graph test of /bin/ls and /usr/bin/emacs. What am I doing wrong? What is the results file it is referring to?
Many thanks
MJ
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Message Edited by jdgallag on 07-14-2005 07:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's the latest update on my progress:
Regarding point 3)
I think you may have misinterpreted part of my post. Running a callgraph on both /bin/ls and /usr/bin/emacs succeeds.
There are no installation failures visible in /var/log/install.log. There are no errors regarding "bistro" and no mention of "callgraph" in the log
Regarding point 2)
yep my kernel is supported as far as I can see (Red Hat Enterprise Linux 3.0)
Regarding point 1)
Sampling works fine and both data views look normal (I can see instructions retired, cpu cycles etc.)
Regarding point 0)
I've tried to run both as a user and as root + I've checked access rights to the "global_data" directory. Also I have lots of disk space in the install and user dir locations.
It seems like the problem is either related to A) some peculiarity of my application or B) some results file/directory being inaccessible/missing.
Phew hope I've got everything in. Thanks for getting back to me so quickly on this one.
MJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Message Edited by jdgallag on 07-14-2005 02:17 PM
Message Edited by jdgallag on 07-14-2005 02:18 PM
Message Edited by jdgallag on 07-14-2005 02:21 PM
Message Edited by jdgallag on 07-14-2005 02:27 PM
Message Edited by jdgallag on 07-14-2005 02:28 PM
Message Edited by jdgallag on 07-14-2005 02:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think I have diagnosed my problem (or at least ONE of the problems causing failure). It's to do with pthreads.
My app relies on linuxthreads rather than the newer default NPTL (Native POSIX Threading Library). To enable this I need to set the environment variable LD_ASSUME_KERNEL=2.4.1. When "configuring" a callgraph activity on my app I get:
vtl activity -c callgraph -app ./myapp -moi ./myapp
Error in module "libpthread-0.10.so" - File is not valid module
and I can go no further.
vtl activity -c sampling -app ./myapp -moi ./myapp
works fine!
If my app uses NPTL then I get the error mentioned in my first post:
"Internal error while resolving the results file"
and this is because my app seg faults rather than terminating gracefully and clearly vtl doesn't catch this.
So it appears that to use vtl either:
a) I fix my app so it doesn't seg fault with NPTL libpthread-0.60.so
or
b) the vtl install is fixed to work with linuxthreads (could I somehow rebuild the kernel file?)
You can test this for yourself by downloading any pthreads apps such as "pthreadbench" and running the tests through "vtl -c callgraph" with and without LD_ASSUME_KERNEL set. I can callgraph the app fine when LD_ASSUME_KERNEL is *unset*.
If you or anyone can think of a workaround then I'd be really grateful.
Thanks
MJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Error in module "libpthread-0.10.so" - File is not valid module and I can go no further.
vtl activity -c sampling -app ./myapp -moi ./myapp
works fine!
-----------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This seems to imply that my problem is not due to installation errors.
MJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Error in module "libpthread-0.10.so" - File is not valid module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, we know it works. That's pointing to the specifics of your setup now. Engineeringhas asked for more information about your system: OS,glibc version, the value of LD_LIBRARY_PATH.
Probably anything you could think of might be useful with regard to a non-default OS installation, for example any upgrades/downgrades that may be on board.
cheers
jdg
Message Edited by jdgallag on 07-19-2005 08:27 AM
Message Edited by jdgallag on 07-19-2005 08:27 AM
Message Edited by jdgallag on 07-19-2005 08:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm running a modified 2.4.21 kernel (RHE 3) with glibc 2.3.2. In my LD_LIBRARY_PATH I have placed vtune/lib first and similarly vtune/bin for PATH.
MJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We tried VTune 3.0 on RHEL3.0/IA-64 and again: no such problems observed
We tried pthreadbench in any cases: w/ and w/o LD_ASSUME_KERNEL=2.4.1 set.
Please try to remove below temporary, cache and project folders and run vtl again:
rm -fr /tmp/$USER_vtune
rm fr [vtune install dir]/vtune/global_data/ISM/*
rm -fr /home/$USER/VTune
If you still meet the issue - please let us know.
BTW: there is no vtune/lib folder in the 3.0 please provide full LD_LIBRARY_PATH and PATH
Regards,
Katya
Message Edited by elogovsk on 07-20-2005 08:58 AM
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page