<?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 No Symbol were found in HotSpot View -- GCC compile options ? in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962525#M8822</link>
    <description>&lt;DIV&gt;
&lt;DIV&gt;I am beginner of VTune. I am using VTune 2.0 for Linux. When I try to view my result with Hotspot View, it always fail to show any function name:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;VTune Performance Analyzer 2.0 for Linux*&lt;BR /&gt;Copyright (C) 2000-2003 Intel Corporation. All rights reserved.&lt;/DIV&gt;
&lt;DIV&gt;Event Summary&lt;BR /&gt;IA64_INST_RETIRED-THIS&lt;BR /&gt; 14538 = Samples collected due to this event&lt;BR /&gt; 900000 = Sample after value used during collection&lt;BR /&gt; 13084200000 = Total events (samples*SAV)&lt;BR /&gt;CPU_CYCLES&lt;BR /&gt; 8034 = Samples collected due to this event&lt;BR /&gt; 900000 = Sample after value used during collection&lt;BR /&gt; 7230600000 = Total events (samples*SAV)&lt;/DIV&gt;
&lt;DIV&gt;HotSpot View grouped by function (all values in decimal except where indicated)&lt;/DIV&gt;
&lt;DIV&gt;No symbols were found&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I looked into the doc and I followed the following to complie my program with -gdwarf-2 options: &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;gcc -gdwarf-2 test.c -o test&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;where test.c is my testing program.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;However, nth change and there is still no symbols were found in hotspots. &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I am wonder how can I show function in the hotspot view? Does anyone got ideas?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I attach the simple testing program for reference as following:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;#include&lt;STDIO.H&gt;&lt;BR /&gt;#include&lt;STRING.H&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;&lt;/DIV&gt;
&lt;DIV&gt;#define MAX_LOOP 2000&lt;/DIV&gt;
&lt;DIV&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;int i=0;&lt;BR /&gt;void func1();&lt;BR /&gt;void func2();&lt;/DIV&gt;
&lt;DIV&gt;while (i &amp;lt; MAX_LOOP) {&lt;BR /&gt; i++;&lt;BR /&gt; func1();&lt;BR /&gt; func2();&lt;BR /&gt;}&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;void func1() {&lt;BR /&gt;int a=0;&lt;BR /&gt;a++;&lt;BR /&gt;}&lt;BR /&gt;void func2() {&lt;BR /&gt; int a=0;&lt;BR /&gt; a++;&lt;BR /&gt;}&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 23 Apr 2004 11:42:11 GMT</pubDate>
    <dc:creator>jvong</dc:creator>
    <dc:date>2004-04-23T11:42:11Z</dc:date>
    <item>
      <title>No Symbol were found in HotSpot View -- GCC compile options ?</title>
      <link>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962525#M8822</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;I am beginner of VTune. I am using VTune 2.0 for Linux. When I try to view my result with Hotspot View, it always fail to show any function name:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;VTune Performance Analyzer 2.0 for Linux*&lt;BR /&gt;Copyright (C) 2000-2003 Intel Corporation. All rights reserved.&lt;/DIV&gt;
&lt;DIV&gt;Event Summary&lt;BR /&gt;IA64_INST_RETIRED-THIS&lt;BR /&gt; 14538 = Samples collected due to this event&lt;BR /&gt; 900000 = Sample after value used during collection&lt;BR /&gt; 13084200000 = Total events (samples*SAV)&lt;BR /&gt;CPU_CYCLES&lt;BR /&gt; 8034 = Samples collected due to this event&lt;BR /&gt; 900000 = Sample after value used during collection&lt;BR /&gt; 7230600000 = Total events (samples*SAV)&lt;/DIV&gt;
&lt;DIV&gt;HotSpot View grouped by function (all values in decimal except where indicated)&lt;/DIV&gt;
&lt;DIV&gt;No symbols were found&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I looked into the doc and I followed the following to complie my program with -gdwarf-2 options: &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;gcc -gdwarf-2 test.c -o test&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;where test.c is my testing program.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;However, nth change and there is still no symbols were found in hotspots. &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I am wonder how can I show function in the hotspot view? Does anyone got ideas?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I attach the simple testing program for reference as following:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;#include&lt;STDIO.H&gt;&lt;BR /&gt;#include&lt;STRING.H&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;&lt;/DIV&gt;
&lt;DIV&gt;#define MAX_LOOP 2000&lt;/DIV&gt;
&lt;DIV&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;int i=0;&lt;BR /&gt;void func1();&lt;BR /&gt;void func2();&lt;/DIV&gt;
&lt;DIV&gt;while (i &amp;lt; MAX_LOOP) {&lt;BR /&gt; i++;&lt;BR /&gt; func1();&lt;BR /&gt; func2();&lt;BR /&gt;}&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;void func1() {&lt;BR /&gt;int a=0;&lt;BR /&gt;a++;&lt;BR /&gt;}&lt;BR /&gt;void func2() {&lt;BR /&gt; int a=0;&lt;BR /&gt; a++;&lt;BR /&gt;}&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Apr 2004 11:42:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962525#M8822</guid>
      <dc:creator>jvong</dc:creator>
      <dc:date>2004-04-23T11:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: No Symbol were found in HotSpot View -- GCC compile options</title>
      <link>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962526#M8823</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;You should be able to just use the '-g' option to include debug information. Have you tried that?&lt;/P&gt;
&lt;DIV&gt;Also, what verison of gcc are you using?&lt;/DIV&gt;&lt;P&gt;Message Edited by dlanders on &lt;SPAN class="date_text"&gt;04-27-2004&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:17 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2004 06:17:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962526#M8823</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2004-04-28T06:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: No Symbol were found in HotSpot View -- GCC compile options</title>
      <link>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962527#M8824</link>
      <description>&lt;P&gt;My gcc version:&lt;/P&gt;
&lt;P&gt;[root@SDV900 root]# gcc -v&lt;BR /&gt;Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/2.96/specs&lt;BR /&gt;gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-118.7.2)&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I tried to recompile the program with -g like following:&lt;/P&gt;
&lt;P&gt;gcc -g test.c -o test&lt;/P&gt;
&lt;P&gt;However, I still get the same result.&lt;/P&gt;
&lt;P&gt;Do youhave any idea for that?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Apr 2004 12:33:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962527#M8824</guid>
      <dc:creator>jvong</dc:creator>
      <dc:date>2004-04-28T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: No Symbol were found in HotSpot View -- GCC compile options</title>
      <link>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962528#M8825</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Basically, your application isn't doing enough to be noticed. :-} That is, it executes so fast, that the only samples collected in the whole process are in the kernel and runtime library. You can verify this by examining the output of 'vtl view' and noticing that the only modules reported for the application are vmlinux and ld-2.5.5.so, of something similar. So, actually, the analyzer is telling you that there are no samples to be displayed for the module you are specifying.&lt;/P&gt;
&lt;P&gt;If you enhance your code to something like:&lt;/P&gt;
&lt;DIV&gt;#include "stdio.h"&lt;BR /&gt;#include "string.h"&lt;BR /&gt;#define MAX_LOOP 2000&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;int i=0;&lt;BR /&gt;void func1();&lt;BR /&gt;void func2();&lt;BR /&gt;while (i &amp;lt; MAX_LOOP) {&lt;BR /&gt;i++;&lt;BR /&gt;func1();&lt;BR /&gt;func2();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void func1() {&lt;BR /&gt;int i;&lt;BR /&gt;char a[10000], b[10000];&lt;BR /&gt;for (i=0;i&amp;lt;10000;i++)&lt;BR /&gt;{&lt;BR /&gt;a&lt;I&gt; = b&lt;I&gt;*2;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;void func2() {&lt;BR /&gt;int a=0;&lt;BR /&gt;a++;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV&gt;You will see some samples collected in func1() and you can use the hotspot view to examine this.&lt;/DIV&gt;&lt;/I&gt;&lt;/I&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Apr 2004 00:15:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962528#M8825</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2004-04-29T00:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: No Symbol were found in HotSpot View -- GCC compile options</title>
      <link>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962529#M8826</link>
      <description>Hello,&lt;BR /&gt;   I am also having similar kind of problem, even though&lt;BR /&gt; I compile the code with -g option I am not getting the&lt;BR /&gt; function profile with hotspot option(-hf).&lt;BR /&gt;   So I tried the modified code which you posted above, &lt;BR /&gt; but still I get the "No symbols were found" message.&lt;BR /&gt;   Further insights to the problem will be appreciated&lt;BR /&gt;  Thanks,&lt;BR /&gt;   Shiv</description>
      <pubDate>Mon, 12 Jul 2004 23:33:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962529#M8826</guid>
      <dc:creator>gowda</dc:creator>
      <dc:date>2004-07-12T23:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: No Symbol were found in HotSpot View -- GCC compile options</title>
      <link>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962530#M8827</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Did you check to make sure there were samples in your module? (see previous post)&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;If so, what version of the gcc compiler are you using and which switches?&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jul 2004 04:47:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/No-Symbol-were-found-in-HotSpot-View-GCC-compile-options/m-p/962530#M8827</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2004-07-21T04:47:22Z</dc:date>
    </item>
  </channel>
</rss>

