[LU-3111] Build: Debug symbols needed for the whole stack Created: 05/Apr/13  Updated: 05/Apr/13  Resolved: 05/Apr/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Keith Mannthey (Inactive) Assignee: WC Triage
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

From the lbuild system as provided on the build server.


Severity: 3
Rank (Obsolete): 7562

 Description   

As seen from oprofile on Hyperion.

PU: Intel Sandy Bridge microarchitecture, speed 1200 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000
samples  %        app name                 symbol name
20100    17.5058  zfs                      /zfs
15546    13.5396  libcfs                   /libcfs
9569      8.3340  zcommon                  /zcommon
7959      6.9318  vmlinux-2.6.32-279.19.1.el6_lustre.x86_64 intel_idle
5582      4.8616  spl                      /spl
4149      3.6135  vmlinux-2.6.32-279.19.1.el6_lustre.x86_64 memmove
3792      3.3026  vmlinux-2.6.32-279.19.1.el6_lustre.x86_64 mutex_lock
2835      2.4691  vmlinux-2.6.32-279.19.1.el6_lustre.x86_64 mutex_unlock
1954      1.7018  dm_mod                   /dm_mod

There is a vmlinux (from the kernel-debuginfo package) but it is not clear where the rest of the symbols are.

Everything we build should have debuginfo package that works with standard tools.

In my local system I have pointed to source trees but on a far far away server this will be quite painful. It should be as simple as just installing the correct packages installed.

The build that is currently deployed on Hyperion is, lustre-master-1340

I didn't see any zfs related debug info packages.



 Comments   
Comment by Alex Zhuravlev [ 05/Apr/13 ]

oprofile should be able to get symbol from regular modules (.ko). it seems oprofile couldn't find them.

Comment by Oleg Drokin [ 05/Apr/13 ]

we used to package lustre module rpms with debug symbols by default, but then this patch: http://review.whamcloud.com/4491 suppsedly enabled creation of lustre debuginfo rpm that you need installed.

As for the zfs - no idea.

Comment by Keith Mannthey (Inactive) [ 05/Apr/13 ]

Sorry moved a little fast yesterday.

opreport --session-dir=(right spot) -l -p /lib/modules/`uname -r`

Did the trick.

Comment by Keith Mannthey (Inactive) [ 05/Apr/13 ]

User error.

Generated at Sat Feb 10 01:31:03 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.