After collecting lightweight-hotspots data, you may find that functions within the kernel are not displayed in the results. Instead, the function or module name is displayed as "[vmlinux]", e.g.:
After installing the Linux* operating system, the kernel is contained in vmlinux, or vmlinuz, or bzImage in /boot. vmlinux is the uncompressed Linux* kernel, but doesn't include debug information. vmlinuz or bzImage is the compressed kernel and the VTuneAmplifier XE can't retrieved kernel function information from them. Thus, all hot addresses captured in the kernel are contained in a unique function or module named "[vmlinux]".
The VTune Amplifier XE must have access to symbol information for the kernel in order to display function names. To provide kernel symbol information to the VTune Amplifier XE, follow these steps:
- Use "uname -r" to identify the running Linux* kernel version -- you must download and install the matching kernel-debuginfo RPMs. Two RPMs are required: kernel-debug-debuginfo-*.rpm and kernel-debuginfo-common-*.rpm
- Locate these RPMs. Several options exist:
- Browse through the RPMs on your installation CDs or DVDs.
- Browse through the OS vendor FTP site and download the packages. For example: look at ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os to get packages for Redhat* Enterprise Server.
- Look for other sources on the internet. For example: http://people.redhat.com/duffy/debuginfo/index-js.html
- Use the following commands to install the RPMs:
rpm -ivh kernel-debuginfo-common-*.rpm
rpm -ivh kernel-debug-debuginfo-*.rpm
- For some operating systems, you can use "yum" to install packages directly. For example,
yum --enablerepo=rhel-debuginfo install kernel-debuginfo
- Verify that the packages have been installed, e.g., "rpm -qa|grep kernel"
- Modify the Project Properties and specify the path to the uncompressed kernel binary, for example,
- To resolve the previously collected data against this new symbol information, see this article.
- Any future lightweight-hotspots analyses will display the kernel functions appropriately.