remote analysis and source

remote analysis and source

Hello,

I did some lightweight hotspots analysis on my server (app running on my server). I have the data folder(rXXXlh.amplxe).

I want to analyse the data through my vtune on my desktop. New project and open the analysis folder which I already copied from my server.

checking the function/ call stacks (in bottom up), when I click in one of the functions, NO source code????

how to get the source code through my desktop vtune? I can copy the source code from my server but where? and how?

Thanks for your help.

42 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Mourad:

Great question!  Copy the source to wherever you want, on the local system, and then set the location in the Source Directories tab of the Project Properties.

Regards,
MrAnderson

Hi MrAnderson,

I am trying to do it but the project propreities is disabled after opening my result (file- open - result)!!! I have my source folders and the app.exe.

should I creat the project in my source folder? please can you help me step by step? I am still confused! 

I have my source folder with exe-app on it and I have my analysis folder.

Thanks

so what should I do after creating a new project? 

Ah!  In your original post, you said, "New project and open the analysis...", so I assumed you created a project.  Yes, you must create a project and "import" the results *file* into the project.  So, create the project, set the directories, then import the .tb6 file located inside the data.0 subdirectory of the results directory (that is actually the only file you need to copy over to the local system).  Note: you will need to have access to the binaries, symbols, and sources to use this model.  When you import the .tb6 file, an attempt will be made to resolve symbolic references and VTune Amplifier XE will need access to the binaries and symbols.  Dbl-clking into a function requires access to sources.

BTW, is this Windows or Linux?

Regards,
MrAnderson

Thanks MrAnderson,

Its Linux-RHEL6. I did all the steps. create a project, import the file from data.0 (the.tb6 file).

I have a different screen result () as in opening the result without to create a new project and import the results?!

PMU Events, and Top-down tree is showing me the hardware event: CPU_CLK,.... ?!

I am looking to get results with CPU utilization/ functions calls as a normal lightweight analysis.

Thanks for your quick reply :)

 

Hi Mourad:

You should be able to change the "viewpoint" and select Hotspots.  For example:

Attachments: 

AttachmentSize
Downloadimage/png changeviewpoint.png81.21 KB
Regards,
MrAnderson

Hi MrAnderson,

what about import a directory? with my rxxxlh folder. then project properties: Application in Target, i gave the path to my source folder to the app.exe. application parameter: folder of my sources.  Source search in Target: folder of my source files. click on IMPORT:

it said: import is completed succefuly but faild to finalize the result???!!! the result you are opning is empty!  try to re-run the analysis.

Thanks for your help

oh thanks MrAnderson I just got your reply. I did it to get the hotspots analysis BUT Source/assembly code is still not available when I am dbl-cliking on the hottest function?!

Thanks 

As long as the Source Directories are configure to search for source files in the correct place, it should work.  Can you give me an example of a source file that is not working?

  1. what is the source file name?
  2. what is the hot function name?
  3. where is the source file located on the local system?
  4. how are your Source Directories configured?

Regards,
MrAnderson

Oh, one thing. What version/update of the VTune Amplifier XE are you using?  Since you are referencing Lightweight Hotspots, I assume it is an older release.  In the older releases, the search directories were in one tab, labeled "Search Directories", and you had to add a "type" of source.  The latest release is Update 11 and has the binaries/symbols separated from the source directories.

Regards,
MrAnderson
  1. what is the source file name? rmserver - this application is running in the server.
  2. what is the hot function name? 1-rmserver/ 2-libstdc++.so library, ... 
  3. where is the source file located on the local system? /home/mysource
  4. how are your Source Directories configured?  I just did a copy from the server to my desktop in this location: /home/mysource 
  5. I have more than 105 threads (some of them are doing the same thing/ same application). for me its enough to check the source/functions of only one or 2 threads. so one thread can have a lot of application, and rmserver is the most important for me to analyze (95% of the CPU utilization).
  6. when I am dbl-clicking on rmserver - its updating for some time, i guess looking for my source and then nothing (no call stack information)! 

Thanks for your help MrAnderson.

Thanks, Mourad.  By #4, I meant, how are they configured within VTune Amplifier XE?  What did you specify there?

I doubt you have libstdc++.so source files, so you won't be able to drill down to source for that standard library.  Even if you *have* source, unless you built the library and generated debug info, you won't be able to go to source.

Regarding #6, you've included a couple of things.  First, you say "then nothing".  Does the VTune Amplifier XE prompt you to locate the source file or just display assembly code?  Second, you say, "no call stack information."  Are you specifying to collect call stacks on the server when you collect lightweight hotspots?  Even if you did, this is one thing that won't be included in the .tb6 file.  If you truly want that, we have to take a different approach.  Are you using the standalone GUI or the command line interface on the server to collect the data?

Regards,
MrAnderson

thanks MrAnderson,

I was running:amplxe-cl -collect lightweight-hotspots –duration 25 -target-duration-type=veryshort to get the results.

No I am looking only for rmserver code source to analyze. Nothig means the unknown page (source/assembly code is not available).

attached my results and you can see the difference between (1st pic) openning analysis without creating a project and import analysis folder with a new project. I can't see the "rmserver" to check the source code.

any help?


Attachments: 

AttachmentSize
Downloadimage/png openanalysis.png28.13 KB
Downloadimage/png import.png41.51 KB

So, actually, you aren't getting symbols in the "opensource.png" example.  Any time a module is enclosed in square brackets, e.g., [rmserver], it means that no symbols were loaded for that module.

I suspect you are getting symbols in the import.png example.  You need to scroll over to the right and look at the module names for symbols displayed on the left.  Alternately, you can change your "grouping" to Module / Function / Call Stack and expand the rmserver module, e.g.

Attachments: 

AttachmentSize
Downloadimage/png changegrouping.png45.78 KB
Regards,
MrAnderson

selecting function/call stack I can see my application but dbl-clicking on it ... please to attached files.

thanks a lot for your help MrAnderson.

Attachments: 

AttachmentSize
Downloadimage/png rm.png59.13 KB
Downloadimage/png nocode.png56.68 KB

an other thing is my import config.

Thanks

Attachments: 

AttachmentSize
Downloadimage/png target.png79.41 KB
Downloadimage/png source.png48.26 KB

Okay, I'm getting a little bit lost because I'm not sure what is on the local system and what is on the remote.

First, do you ever see 'rmserver' without the square brackets: local or remote?

You don't need to configure the local system to launch an app, since you will never do that.  Either leave it blank or select "Profile system" from the drop down.  All you need on the local system are the search directories configured to point to 1) binaries, 2) symbols, and 3) source files.  You need to point to the binaries on the Binary/Symbol Search tab.

After you make any changes to the search directories, go to the Analysis Target or Analysis Type tab and press the "Re-resolve" button to have the VTune Amplifier attempt to resolve the symbolic references again.

Regards,
MrAnderson

I am collecting using a command line on my server (collecting the lightweight hotspots) copying the rxxxlh on my desktop, start VTune using gui on my desktop for monitoring. create a project, import my rxxxlh. select my binaries (folder of binaries) and my source (source folder). and I can't open the code source. through vtune project propreities and then resolve. >> import is completed successfully and finalization complted successfuly>>> change my analysis type to hotspots - dbl-clicking on my hottest function - code source not available page.

it's my VTune day :) I should solve it :)

Thanks MrAnderson.

I am collecting using a command line on my server (collecting the lightweight hotspots) copying the rxxxlh on my desktop, start VTune using gui on my desktop for monitoring. create a project, import my rxxxlh. select my binaries (folder of binaries) and my source (source folder). and I can't open the code source. through vtune project propreities and then resolve. >> import is completed successfully and finalization complted successfuly>>> change my analysis type to hotspots - dbl-clicking on my hottest function - code source not available page.

it's my VTune day :) I should solve it :)

Thanks MrAnderson.

Try this: create your project, set your directories (binary and source), then import your results.

Regards,
MrAnderson

single file or directory? for import.

thanks

Single file

Regards,
MrAnderson

well still the same problem. I can't the source code.

Thanks,

Mourad

I'm sorry. This should work. At this point, unless you don't mind sharing your results on this public forum, I suggest you submit an issue at Intel® Premier Support.  Our free, secure support web site will allow you to provide your results to us so that we can better assist you.

Regards,
MrAnderson

Hi MrAnderson,

let ask you this question what you mean by binaries and symbols to get the right path for my vtune configuration? same question for source search?

Thanks

an other question for frequency and power analysis.

Prerequisite(s)
-- Power analysis is not enabled
My kernel is 2.6.32-358.0.1 and I got this message above.

I was checking this link: http://software.intel.com/en-us/articles/troubleshooting-vtunetm-amplifi...

so my CONFIG_X86_ACPI_CPUFREQ=m but I don't find ACPI_CPUFREQ.ko on my system. any thoughts or ideas?

Thanks MrAnderson.

Hi Mourad:

Regarding "correct paths," the binaries, symbols (for Linux, symbols are usually included in the binary files, but you should compile with -g option), and source files must be accessible from the system that you are attempting to view the results on.  Thus, if you can ls the files from your local system, you should be able to configure VTune Amplifier XE to "see" those directories.  For example,

$ ls //path/to/files
//path/to/files/cilkdemo.cpp
//path/to/files/cpp_mark.cpp

Then, in the VTune Amplifier XE Project Properties, set that path in the Source Directories:

Regarding power analysis, if you can't get it working following the article's steps, please follow step #5 and submit an issue.  I have no additional instructions for you.  If you don't find the module in the specified location, I don't know what's going on.  Do you get that message when you try to build the power driver?

Attachments: 

AttachmentSize
Downloadimage/png sourcesearch.png27.18 KB
Regards,
MrAnderson

Hi MrAnderson,

Thaks for all your reply- look like its working but it's still going so slow - updating all the time to show the results.

Now I have an other problem. I bought a licence for VTune after a month of eval. version. 

I uninstall the previous version and re-install the new version which I bought, running VTune to check my previous result and I got this message: License check failed, Intel Vtune cannot find valid license. data cannot be displayed. any help?

Thanks

Hi Mourad:

Just for others' reference, you do not need to uninstall to apply a purchased license to an eval installation.  The "eval" is controlled by the license.  Putting a valid license on the system in a known location will "activate" your installation.

So, if you log into the Registration Center and click on the product, e.g., VTune Amplifier XE for Windows* or Linux* (whichever you purchased), you should see your license number(s).  Then, select one (the purchased one - see the Support Status date) and click Manage:

On the resulting page, press the "Resend" button:

When you receive the email, a license *file* will be attached.  Save that file to /opt/intel/licenses (for Linux*) or C:\Program Files (x86)\Common Files\Intel\License (for Windows*).  If those locations do not exist, check out the INTEL_LICENSE_FILE environment variable and save the file to the location specified by the variable.

Let me know if that helps!

Attachments: 

AttachmentSize
Downloadimage/png managelicenses1.png50.38 KB
Downloadimage/png managelicenses2.png19.21 KB
Regards,
MrAnderson

here the error

Attachments: 

here the error

Attachments: 

here the error

Attachments: 

So, it appears you are using a floating license.  Is that correct?  I suggest you submit an issue at Intel Premier Support under the "Download, Licensing, and Registration" product.  Those guys are pros at troubleshooting license server issues.

There is also a useful FAQ for licensing.

Regards,
MrAnderson

Hi MrAnderson,

trying to do some collection for locksandwaits, I got this error message:

amplxe: Error: Assertion '((*desc)->l1.data.flags[tpss_ts_desc_fl_entered] == 0)' failed.[ASSERTION CONTEXT]ASSERT_TID: 33315

[tpss_ts_desc]: addr = 0x7f7c6a83bb80
flags:
cached = 1
recursive = 1
entered = 1
acquired = 0
orphan = 0
magic = 48815
link = [prev:0x7f7c6a83bac8|next:0x7f7c6a83bc48]
tid = 33315
[tpss_tsd]: addr = 0x7f7c6a706c40
mgr = 0x7f7cc0686200
link = [prev:(nil)|next:(nil)]
magic = 48815
tid = 33315
state = 3
desc = 0x7f7c6a83bb80

[CONTEXT END]. Please contact the technical support.

amplxe-cl -collect locksandwaits -follow-child --target-process MYAPPLICATION.

any idea MrAnderson?

Thanks,

Mourad.

just additional information: there is no files on data folder (for the previous message for the same data collection)

Thanks,

Mourad

MrAnderson,

Just FYI, I can see the code source through VTune.

Now I have some issue with the power and freq. analysis. checking this link: http://software.intel.com/en-us/articles/troubleshooting-vtunetm-amplifi...

doing : cat /boot/config-2.6.41.1-1.fc15.i686.PAE | grep CPUFREQ
CONFIG_X86_ACPI_CPUFREQ=m.

then:

./insmod-apwr
Executing: insmod ./apwr3_1-x32_64-2.6.32-358.0.1.x86_64smp.ko
insmod: error inserting './apwr3_1-x32_64-2.6.32-358.0.1.x86_64smp.ko': -1 Unknown symbol in module

Error: apwr3_1 driver failed to load!

You may need to build apwr3_1 driver for your kernel.
Please see the apwr3_1 driver README for instructions.

any suggestions?

Thanks,

Mourad

Greetings,

I'm on MSW, latest update VtTune 2015  (the latest version up to date) and I am unable to get stack backrace in the GUI.

It shows something like stack strace is not available.

PS:: I built it w/o optimiziation (inlining) and with debug sybols.

best,

--
With best regards,
VooDooMan
-
If you find my post helpful, please rate it and/or select it as a best answer where applies. Thank you.

Hi Marian,

Can you please post a screenshot of the issue? Which analysis type did you use?

Quote:

Vitaly Slobodskoy (Intel) wrote:

Hi Marian,

Can you please post a screenshot of the issue? Which analysis type did you use?

Greetings Vitaly,

The VTune project file and screenshot is attached.

I'm using TSX Hostspots analysis on Haswell checked option "Collect stacks". Also I encountering this error when I do custom analysis with my specified HW counters. Therefore I run VTune with elevated privileges (an Administrator).

PS: Since I have hit a spam filter, I'm trying again with both files 7z-ed.
PS2: I again hit the spam filter, so I am trying again from Chrome now, not FFX.

PS3: I again hit the spam filter, even though I entered (hopefully) correct Captcha. I don't like the Captcha idea, since it is often very hard to read, a similar letters like 'S' and '8', or 'G' and '6' are often not distinguishable. I reported it by link as a false positive the forum gave me, so I will wait a day, or two and try again.

Attachments: 

AttachmentSize
Downloadapplication/x-7z-compressed bug01.7z227.9 KB
Downloadapplication/x-7z-compressed bug02.7z455.5 KB
--
With best regards,
VooDooMan
-
If you find my post helpful, please rate it and/or select it as a best answer where applies. Thank you.

Can you post a screenshot of the Analysis Type tab, please?

Also, in the future, it would be preferable for you to start a new topic rather than append your question to an old topic.

Regards,
MrAnderson

Greetings,

I am attaching image for bug01.

PS: could it be problem because I am connecting via remote desktop to that machine?

Attachments: 

AttachmentSize
Downloadimage/png r000ths_type.png53.48 KB
--
With best regards,
VooDooMan
-
If you find my post helpful, please rate it and/or select it as a best answer where applies. Thank you.

Okay.  I'm seeing the same thing.  I think this is a defect and will report it as such.  Thank you for reporting it.

Regards,
MrAnderson

Leave a Comment

Please sign in to add a comment. Not a member? Join today