<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Resolving symbols on remote Linux machine in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Resolving-symbols-on-remote-Linux-machine/m-p/1091118#M15591</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I'm using VTune 2017 Beta to make remote measurements from one Linux machine to another. &amp;nbsp;I've found it very difficult figure to get all the symbols to resolve correctly. &amp;nbsp;The documentation seems really weak on explaining what's actually happening. &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Eventually I found enough information here in the forums to get things working from the command line (on either the host or target), but I still haven't figured out how to do what I want from the GUI. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;It's possible that I should just give up and stick with the command line, but I feel like I'm close enough that maybe someone can tell me what I'm missing. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;I'm not certain exactly what's actually happening when you do a remote collection from the GUI. First the GUI on the host launches amplxe-cl on the host, which then executes amplxe-runss on the target to collect the data. &amp;nbsp;On the target, amplxe-runss then calls "sep" on the target (because it's called with -collect-with runsa?). &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I don't understand though which files get transferred from the target to the host, and whether they are transferred immediately or during "finalization"? &amp;nbsp; But the important thing I was missing for a long time is that all symbol resolution happens on the host machine, and that all the -search-dir arguments (adjusted in the GUI with the Binary/Symbol search button in Analysis Target&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;) apply only to the Host Machine, and that despite the text at the top of the page, the "symbol server paths" are not available for Linux. &amp;nbsp; Thus if you want the debugging symbols to be available, you need to make them locally accessible through the file system:&amp;nbsp;https://software.intel.com/en-us/forums/intel-vtune-amplifier-xe/topic/534965&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Things got better once I mounted the target /usr/lib/debug directory on the host with sshfs, and then specified this directory in the GUI as a place to search. &amp;nbsp; But still I was missing a lot of important symbols, like those for libc6 (the host and target are running different versions). &amp;nbsp; Maybe the problem is that the debugging symbols in Ubuntu's .dbg and .dbgsym files are not necessarily laid out quite as VTune expect? &amp;nbsp;But when I ran from the command line locally on the target, it worked, so I know the information must be there. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;The "Search Order" page (https://software.intel.com/en-us/node/544099) helped understand that certain directories are treated differently, and that the hardcoded /usr/lib/debug works differently that a /usr/lib/debug/remote specified with -search-dir (where "remote" is the remote mounted /usr/lib/debug). &amp;nbsp;Using the hints here&amp;nbsp;https://software.intel.com/en-us/forums/intel-vtune-amplifier-xe/topic/279763, I was able to figure out that switching to "-search-dir&amp;nbsp;&amp;nbsp;sym:pr=/usr/lib/debug/remote" (added "r" for recursive) works! &amp;nbsp;But contrary to that comment, I can find no "check box at the end of the line with the search path" that allows me to specify this in the GUI.&lt;/P&gt;

&lt;P&gt;1) Is there any way to specify a recursive symbol search directory from within the GUI?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2) Is the format of the argument to -search-dir documented anywhere but the forums?&lt;/P&gt;

&lt;P&gt;3) Is there some better way to resolve remote symbols that doesn't require remote mounting directories, running amplxe-cl with strace to figure out what it's doing, and sifting through years of forum questions for undocumented features? &amp;nbsp;It seems like this would be a major feature that's used very regularly, but it feels like I'm going down an untrodden path.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2016 21:20:13 GMT</pubDate>
    <dc:creator>Nathan_K_5</dc:creator>
    <dc:date>2016-09-25T21:20:13Z</dc:date>
    <item>
      <title>Resolving symbols on remote Linux machine</title>
      <link>https://community.intel.com/t5/Analyzers/Resolving-symbols-on-remote-Linux-machine/m-p/1091118#M15591</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I'm using VTune 2017 Beta to make remote measurements from one Linux machine to another. &amp;nbsp;I've found it very difficult figure to get all the symbols to resolve correctly. &amp;nbsp;The documentation seems really weak on explaining what's actually happening. &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Eventually I found enough information here in the forums to get things working from the command line (on either the host or target), but I still haven't figured out how to do what I want from the GUI. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;It's possible that I should just give up and stick with the command line, but I feel like I'm close enough that maybe someone can tell me what I'm missing. &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;I'm not certain exactly what's actually happening when you do a remote collection from the GUI. First the GUI on the host launches amplxe-cl on the host, which then executes amplxe-runss on the target to collect the data. &amp;nbsp;On the target, amplxe-runss then calls "sep" on the target (because it's called with -collect-with runsa?). &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I don't understand though which files get transferred from the target to the host, and whether they are transferred immediately or during "finalization"? &amp;nbsp; But the important thing I was missing for a long time is that all symbol resolution happens on the host machine, and that all the -search-dir arguments (adjusted in the GUI with the Binary/Symbol search button in Analysis Target&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;) apply only to the Host Machine, and that despite the text at the top of the page, the "symbol server paths" are not available for Linux. &amp;nbsp; Thus if you want the debugging symbols to be available, you need to make them locally accessible through the file system:&amp;nbsp;https://software.intel.com/en-us/forums/intel-vtune-amplifier-xe/topic/534965&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Things got better once I mounted the target /usr/lib/debug directory on the host with sshfs, and then specified this directory in the GUI as a place to search. &amp;nbsp; But still I was missing a lot of important symbols, like those for libc6 (the host and target are running different versions). &amp;nbsp; Maybe the problem is that the debugging symbols in Ubuntu's .dbg and .dbgsym files are not necessarily laid out quite as VTune expect? &amp;nbsp;But when I ran from the command line locally on the target, it worked, so I know the information must be there. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;The "Search Order" page (https://software.intel.com/en-us/node/544099) helped understand that certain directories are treated differently, and that the hardcoded /usr/lib/debug works differently that a /usr/lib/debug/remote specified with -search-dir (where "remote" is the remote mounted /usr/lib/debug). &amp;nbsp;Using the hints here&amp;nbsp;https://software.intel.com/en-us/forums/intel-vtune-amplifier-xe/topic/279763, I was able to figure out that switching to "-search-dir&amp;nbsp;&amp;nbsp;sym:pr=/usr/lib/debug/remote" (added "r" for recursive) works! &amp;nbsp;But contrary to that comment, I can find no "check box at the end of the line with the search path" that allows me to specify this in the GUI.&lt;/P&gt;

&lt;P&gt;1) Is there any way to specify a recursive symbol search directory from within the GUI?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2) Is the format of the argument to -search-dir documented anywhere but the forums?&lt;/P&gt;

&lt;P&gt;3) Is there some better way to resolve remote symbols that doesn't require remote mounting directories, running amplxe-cl with strace to figure out what it's doing, and sifting through years of forum questions for undocumented features? &amp;nbsp;It seems like this would be a major feature that's used very regularly, but it feels like I'm going down an untrodden path.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 21:20:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Resolving-symbols-on-remote-Linux-machine/m-p/1091118#M15591</guid>
      <dc:creator>Nathan_K_5</dc:creator>
      <dc:date>2016-09-25T21:20:13Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Analyzers/Resolving-symbols-on-remote-Linux-machine/m-p/1091119#M15592</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;1) Is there any way to specify a recursive symbol search directory from within the GUI?&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;It is&amp;nbsp;not possible.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;2) Is the format of the argument to -search-dir documented anywhere but the forums?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;It has only one argument - directory path. "sym:pr" syntax is deprecated. You can find&amp;nbsp;description for this option&amp;nbsp;in "./amplxe-cl -help finalize" output or VTune Help.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;3) Is there some better way to resolve remote symbols that doesn't require remote mounting directories, running amplxe-cl with strace to figure out what it's doing, and sifting through years of forum questions for undocumented features? &amp;nbsp;It seems like this would be a major feature that's used very regularly, but it feels like I'm going down an untrodden path.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The only way currently available is to have symbol files on the host file system and&amp;nbsp;specify binary/symbol search directory for each symbol file if they are located&amp;nbsp;in different subdirectories. For example, if path is "/dir1/dir2/symbol_file.dbg", correct option is "-search-dir /dir1/dir2".&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 09:37:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Resolving-symbols-on-remote-Linux-machine/m-p/1091119#M15592</guid>
      <dc:creator>Denis_M_Intel</dc:creator>
      <dc:date>2016-09-26T09:37:28Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Analyzers/Resolving-symbols-on-remote-Linux-machine/m-p/1091120#M15593</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN style="font-size: 1em; font-style: italic;"&gt;1) Is there any way to specify a recursive symbol search directory from within the GUI?&amp;nbsp;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;It is&amp;nbsp;not possible.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thanks, that's nicely clear.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN style="font-size: 1em; font-style: italic;"&gt;2) Is the format of the argument to -search-dir documented anywhere but the forums?&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;It has only one argument - directory path. "sym:pr" syntax is deprecated. You can find&amp;nbsp;description for this option&amp;nbsp;in "./amplxe-cl -help finalize" output or VTune Help.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Unfortunately a little less clear. &amp;nbsp;Do you mean that "sym:", "bin:" and "all:" are deprecated, that the flags after them are deprecated, or that just the "r" for recursive flag is deprecated?&lt;/P&gt;

&lt;P&gt;The online help (https://software.intel.com/en-us/node/544283) does say to use a bare DIR, but "amplxe-cl -help finalize" still refers to the non-specified &amp;lt;string&amp;gt; and the example at the bottom of the page is "amplxe-cl -finalize -r r001hs -search-dir all=example/bin". &amp;nbsp;&amp;nbsp;If this hasn't already been updated between 2017 Beta and 2017 Final, perhaps this could be fixed to agree with the online docs?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Also, the code generated by the GUI (viewed with the "Command Line" popup) still uses "&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;--search-dir sym:p=/usr/lib/debug/remote" syntax. &amp;nbsp;Since this seems like a canonical reference, if this syntax has been deprecated perhaps this could be changed to use whatever is now correct?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN style="font-style: italic; font-size: 1em;"&gt;3) Is there some better way to resolve remote symbols that doesn't require remote mounting directories, running amplxe-cl with strace to figure out what it's doing, and sifting through years of forum questions for undocumented features? &amp;nbsp;It seems like this would be a major feature that's used very regularly, but it feels like I'm going down an untrodden path.&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;The only way currently available is to have symbol files on the host file system and&amp;nbsp;specify binary/symbol search directory for each symbol file if they are located&amp;nbsp;in different subdirectories. For example, if path is "/dir1/dir2/symbol_file.dbg", correct option is "-search-dir /dir1/dir2".&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;OK, I can work with that. &amp;nbsp;Having to specify each individual directory is an awkward interface, but I can get 95% of what I want with these:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;# sshfs user@remote:/usr/lib/debug /usr/lib/debug/remote&lt;/P&gt;

&lt;P&gt;# amplxe-cl -finalize -r r081hpc1&amp;nbsp;--search-dir /usr/lib/debug/remote&amp;nbsp;--search-dir /usr/lib/debug/remote/lib/x86_64-linux-gnu --search-dir /usr/lib/debug/remote/usr/lib/x86_64-linux-gnu &amp;nbsp;--search-dir /usr/lib/debug/remote/lib/modules/4.4.0-38-generic/kernel/drivers/scsi/megaraid --search-dir /usr/lib/debug/remote/lib/modules/4.4.0-22-generic-real/kernel/drivers/net/bonding&lt;/P&gt;

&lt;P&gt;Thanks for your help. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 20:06:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Resolving-symbols-on-remote-Linux-machine/m-p/1091120#M15593</guid>
      <dc:creator>Nathan_K_5</dc:creator>
      <dc:date>2016-09-26T20:06:54Z</dc:date>
    </item>
    <item>
      <title> All the flags "sym, bin, all</title>
      <link>https://community.intel.com/t5/Analyzers/Resolving-symbols-on-remote-Linux-machine/m-p/1091121#M15594</link>
      <description>&lt;P&gt;&amp;nbsp;All the flags "sym, bin, all, r" are deprecated. They still works but that could be changed in future.&lt;BR /&gt;
	We will update documentation, sorry for the inconvenience.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 08:42:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Resolving-symbols-on-remote-Linux-machine/m-p/1091121#M15594</guid>
      <dc:creator>Denis_M_Intel</dc:creator>
      <dc:date>2016-09-27T08:42:47Z</dc:date>
    </item>
  </channel>
</rss>

