Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
4729 Discussions

Why VTune can profile a stripped application?

YWang84
Beginner
297 Views

AFAIK, an unstripped application is necessary to display the function name rather than the func@address when getting profiled.

In my environment, I firstly installed an unstripped version of my application, the profiling is good, the function name can be displayed.

However, in my same environment, I setup a stripped version and profile this, the function name are still displayed. So is my understanding wrong about the requirement of profiling? How does VTune do actually?

To make sure the application is stripped, I used "objdump --syms" to see there is indeed "no symbol" reported.

0 Kudos
1 Solution
Denis_M_Intel
Employee
297 Views

 Stripped binaries contain symbol information needed at runtime in the .dynsym section. It is a small subset of all symbols. That is why it is recommended to have an unstripped version of binary file or full DWARF debugging information (better option). 
readelf -s can show symbols from .dynsym.

View solution in original post

2 Replies
Denis_M_Intel
Employee
298 Views

 Stripped binaries contain symbol information needed at runtime in the .dynsym section. It is a small subset of all symbols. That is why it is recommended to have an unstripped version of binary file or full DWARF debugging information (better option). 
readelf -s can show symbols from .dynsym.

YWang84
Beginner
297 Views

Thank you Denis!

Reply