Bug 81024
Summary: | oprofile incorrect sample filenames | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | William Cohen <wcohen> |
Component: | oprofile | Assignee: | William Cohen <wcohen> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 0.5.4-22 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-08-27 17:18:53 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
William Cohen
2003-01-03 16:04:12 UTC
oprofile gets the path for the module from /proc/ksyms. It appears that the /proc/ksyms has incorrect information for some of the modules. dfd20000 __insmod_ext3_O/lib/ext3.o.gz_M3E035AEB_V132116 [ext3] dfd50000 __insmod_jbd_O/lib/jbd.o.gz_M3E035AEB_V132116 [jbd] dfd80000 __insmod_aic7xxx_O/lib/aic7xxx.o.gz_M3E035AE5_V132116 [aic7xxx] dfdf0000 __insmod_sd_mod_O/lib/sd_mod.o.gz_M3E035AE4_V132116 [sd_mod] c2200000 __insmod_scsi_mod_O/lib/scsi_mod.o.gz_M3E035AE4_V132116 [scsi_mod] The problem is due to the way that oprofiled obtains the path for a module. oprofiled extracts the information from /proc/ksyms. Unfortunately, modules in the initrd are have different path. Thus, modules loaded from the initrd do not have an appropriate path in the /proc/ksyms. oprofile could do a filetree walk under /lib/modules/`uname -r`/ to find the correct path. (Just an idea.) For RHEL3 oprofile (oprofile-0.5.4-22) opd_kernel.c:opd_reread_module_info() obtains the information from /proc/ksyms for example and entry from /proc/ksyms: e0db6000 __insmod_cast6_O/lib/modules/2.4.21-20.ELsmp/kernel/crypto/cast6.o_M412 Note that oprofile-0.8 has completely different logic for handling the modules and that won't give the complet path to modules. |