Caukie  Relsis
Caukie Relsis

Reputation: 51

Vtune report Outside any known module

I am using Intel(R) VTune(TM) Amplifier XE 2013 Update 5 (build 274450) for my linux application hotspot collect, but the report says the "[Outside any known module]" consume most of the time, so i want to get more info about the unknow module.

when i read the release notes of the vtune Amplifier, it says "List of hotspots may contain "Outside any known module" on systems with kernel older than 2.6.20 (200233501)", but my linux kernel is "2.6.32", any idea about this?

Upvotes: 5

Views: 2370

Answers (3)

Karo S
Karo S

Reputation: 1

Probably you have some kernel hidden addresses by kptr_restrict, you ca review the value of "/proc/sys/kernel/kptr_restrict":

kptr_restrict = 0, kernel addresses are provided without limitations (recommended).

kptr_restict = 1, addresses are provided if the current user has a CAP_SYSLOG capability.

kptr_restrict = 2, the kernel addresses are hidden regardless of privileges the current user has.

You can use this option before running the trace:

sysctl -w kernel.kptr_restrict=0

More details here: https://software.intel.com/en-us/vtune-help-enabling-linux-kernel-analysis

Hope this helps!

Upvotes: 0

pveentjer
pveentjer

Reputation: 11307

I have been suffering from this issue in the past as well and it is very frustrating if you don't know why it is happening.

2 weeks ago I installed Ubuntu 13.04 and vtune update 14 and I was jumping from joy because I could see (again) what happened inside my code.

After doing some updates on my Ubuntu, vtune started to show your problem

  • I installed the kernel sources.. no help..

  • I reinstalled the driver, no help.

  • I reinstalled intel vtune.. no help.

And then I decided to run under root, and what do you know.. It works; no more 'Outside any known module'. I switched back to my regular user, it stopped working. I switched back to my root, and it works. So perhaps some kinds of access issue.

Maybe you could try this.

Upvotes: 4

acid-art
acid-art

Reputation: 126

Check that your program is not generating code on the fly (i.e. is not JIT-ing). You may also want to switch grouping to "Module / Code Location / Call stack" and see which virtual addresses cannot be mapped by VTune to any known module.

Upvotes: 3

Related Questions