<?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 Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel version 2.6.31-14) in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892902#M4948</link>
    <description>I am trying to get the non-commercial version of VTune 9.1 to work on Ubuntu-9.10 (64 bit). I checked the requirements for VTune and I am aware that it only officially supports the 2.6.24-16-generic version on Ubuntu-8.04. But I was hoping that maybe someone here has gotten it to work and can share what they needed to do.&lt;BR /&gt;&lt;BR /&gt;Here's what I have so far on building the sampling driver:&lt;BR /&gt;&lt;BR /&gt;0) I am using the linux headers from /usr/src/linux-headers-2.6.31-14-generic (using sudo apt-get install linux-headers-2.6.31-14-generic )&lt;BR /&gt;1) By changing the kernel_includes in the configure file (see&lt;A target="_blank" href="http://software.intel.com/en-us/forums/showpost.php?p=80423"&gt; this thread&lt;/A&gt;) and also using gcc-4.3 (instead of gcc-4.4), I have gotten the driver to compile.&lt;BR /&gt;&lt;BR /&gt;But during compilation it throws this warning:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; LD &lt;M&gt; /opt/intel/vtune/vdk/src/vtune_drv.o&lt;BR /&gt; Building modules, stage 2.&lt;BR /&gt; MODPOST 1 modules&lt;BR /&gt;WARNING: "find_task_by_pid_ns" [/opt/intel/vtune/vdk/src/vtune_drv.ko] undefined!&lt;BR /&gt; CC /opt/intel/vtune/vdk/src/vtune_drv.mod.o&lt;BR /&gt; LD &lt;M&gt; /opt/intel/vtune/vdk/src/vtune_drv.ko&lt;BR /&gt;make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'&lt;BR /&gt;Renamed vtune_drv.ko to vtune_drv-x32_64-2.6.31-14-genericsmp.ko .&lt;BR /&gt;&lt;BR /&gt;2) I ignored the warning and ran insmod-vtune. Here's the result:&lt;BR /&gt;&lt;BR /&gt;/opt/intel/vtune/vdk/src$ sudo ./insmod-vtune &lt;BR /&gt;Executing: insmod ./vtune_drv-x32_64-2.6.31-14-genericsmp.ko&lt;BR /&gt;insmod: error inserting './vtune_drv-x32_64-2.6.31-14-genericsmp.ko': -1 Unknown symbol in module&lt;BR /&gt;&lt;BR /&gt;3) And I check to see what the error actually is:&lt;BR /&gt;&lt;BR /&gt;/opt/intel/vtune/vdk/src$ sudo dmesg&lt;BR /&gt;[15642.609120] vtune_drv: Unknown symbol find_task_by_pid_ns&lt;BR /&gt;&lt;BR /&gt;I am stuck at this point since I am not sure why it can't find the find_task_by_pid_ns symbol. Earlier in the configure phase, it did find that symbol as evident from this message that it prints to the console:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;checking if kernel percpu segment is used ... no&lt;BR /&gt;checking if on_each_cpu has retry parameter ... no&lt;BR /&gt;checking which apic vector to use ... first device vector&lt;BR /&gt;##&lt;BR /&gt;## Here is where it checks for find_task_by_pid_ns and FINDS it!&lt;BR /&gt;##&lt;BR /&gt;checking whether to use pid namespaces ... yes&lt;BR /&gt;&lt;BR /&gt;Is there anything else that I need to do to help it locate that symbol?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/M&gt;&lt;/M&gt;</description>
    <pubDate>Thu, 05 Nov 2009 23:46:12 GMT</pubDate>
    <dc:creator>vazexqi</dc:creator>
    <dc:date>2009-11-05T23:46:12Z</dc:date>
    <item>
      <title>Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel version 2.6.31-14)</title>
      <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892902#M4948</link>
      <description>I am trying to get the non-commercial version of VTune 9.1 to work on Ubuntu-9.10 (64 bit). I checked the requirements for VTune and I am aware that it only officially supports the 2.6.24-16-generic version on Ubuntu-8.04. But I was hoping that maybe someone here has gotten it to work and can share what they needed to do.&lt;BR /&gt;&lt;BR /&gt;Here's what I have so far on building the sampling driver:&lt;BR /&gt;&lt;BR /&gt;0) I am using the linux headers from /usr/src/linux-headers-2.6.31-14-generic (using sudo apt-get install linux-headers-2.6.31-14-generic )&lt;BR /&gt;1) By changing the kernel_includes in the configure file (see&lt;A target="_blank" href="http://software.intel.com/en-us/forums/showpost.php?p=80423"&gt; this thread&lt;/A&gt;) and also using gcc-4.3 (instead of gcc-4.4), I have gotten the driver to compile.&lt;BR /&gt;&lt;BR /&gt;But during compilation it throws this warning:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; LD &lt;M&gt; /opt/intel/vtune/vdk/src/vtune_drv.o&lt;BR /&gt; Building modules, stage 2.&lt;BR /&gt; MODPOST 1 modules&lt;BR /&gt;WARNING: "find_task_by_pid_ns" [/opt/intel/vtune/vdk/src/vtune_drv.ko] undefined!&lt;BR /&gt; CC /opt/intel/vtune/vdk/src/vtune_drv.mod.o&lt;BR /&gt; LD &lt;M&gt; /opt/intel/vtune/vdk/src/vtune_drv.ko&lt;BR /&gt;make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'&lt;BR /&gt;Renamed vtune_drv.ko to vtune_drv-x32_64-2.6.31-14-genericsmp.ko .&lt;BR /&gt;&lt;BR /&gt;2) I ignored the warning and ran insmod-vtune. Here's the result:&lt;BR /&gt;&lt;BR /&gt;/opt/intel/vtune/vdk/src$ sudo ./insmod-vtune &lt;BR /&gt;Executing: insmod ./vtune_drv-x32_64-2.6.31-14-genericsmp.ko&lt;BR /&gt;insmod: error inserting './vtune_drv-x32_64-2.6.31-14-genericsmp.ko': -1 Unknown symbol in module&lt;BR /&gt;&lt;BR /&gt;3) And I check to see what the error actually is:&lt;BR /&gt;&lt;BR /&gt;/opt/intel/vtune/vdk/src$ sudo dmesg&lt;BR /&gt;[15642.609120] vtune_drv: Unknown symbol find_task_by_pid_ns&lt;BR /&gt;&lt;BR /&gt;I am stuck at this point since I am not sure why it can't find the find_task_by_pid_ns symbol. Earlier in the configure phase, it did find that symbol as evident from this message that it prints to the console:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;checking if kernel percpu segment is used ... no&lt;BR /&gt;checking if on_each_cpu has retry parameter ... no&lt;BR /&gt;checking which apic vector to use ... first device vector&lt;BR /&gt;##&lt;BR /&gt;## Here is where it checks for find_task_by_pid_ns and FINDS it!&lt;BR /&gt;##&lt;BR /&gt;checking whether to use pid namespaces ... yes&lt;BR /&gt;&lt;BR /&gt;Is there anything else that I need to do to help it locate that symbol?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/M&gt;&lt;/M&gt;</description>
      <pubDate>Thu, 05 Nov 2009 23:46:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892902#M4948</guid>
      <dc:creator>vazexqi</dc:creator>
      <dc:date>2009-11-05T23:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel v</title>
      <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892903#M4949</link>
      <description>&lt;BR /&gt;I have exactly same problem on my kubuntu 9.10 even though using gcc-4.3&lt;BR /&gt;&lt;BR /&gt;I guess vtune 9.1 is not compatable with kernel 2.6.31&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Nov 2009 04:49:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892903#M4949</guid>
      <dc:creator>ToTi</dc:creator>
      <dc:date>2009-11-08T04:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel v</title>
      <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892904#M4950</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
I supposethat kernel version 2.6.31-14has not been supported yet.&lt;BR /&gt;&lt;BR /&gt;Please visit &lt;A href="http://software.intel.com/en-us/articles/intel-software-products-system-requirements/"&gt;http://software.intel.com/en-us/articles/intel-software-products-system-requirements/&lt;/A&gt;and select "Intel VTune Analyzer for Linux*" - open a release notes document, see Linux* Distributions Supported list.&lt;BR /&gt;&lt;BR /&gt;Regards, Peter</description>
      <pubDate>Mon, 09 Nov 2009 03:12:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892904#M4950</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2009-11-09T03:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel v</title>
      <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892905#M4951</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I tried all vanilla kernels from 2.6.24 to 2.6.31 and i found Vtune working till 2.6.30-*. Seems some datastructure in 2.6.31 doesn't let it load.</description>
      <pubDate>Tue, 10 Nov 2009 02:15:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892905#M4951</guid>
      <dc:creator>titanius_anglesmith</dc:creator>
      <dc:date>2009-11-10T02:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel v</title>
      <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892906#M4952</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/451224"&gt;titanius.anglesmith&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; I tried all vanilla kernels from 2.6.24 to 2.6.31 and i found Vtune working till 2.6.30-*. Seems some datastructure in 2.6.31 doesn't let it load.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I couldn't find in your post - what was the VTune build number you were trying?</description>
      <pubDate>Tue, 10 Nov 2009 09:37:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892906#M4952</guid>
      <dc:creator>Vladimir_T_Intel</dc:creator>
      <dc:date>2009-11-10T09:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel v</title>
      <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892907#M4953</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/120176"&gt;Vladimir Tsymbal (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; I couldn't find in your post - what was the VTune build number you were trying?&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I tried Vtune 9.1 for linux build 226 (non-commercial use) and had the same find_task_by_pid_ns error. Though getting it working for 2.6.30-* was good enough for me.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 18:25:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892907#M4953</guid>
      <dc:creator>titanius_anglesmith</dc:creator>
      <dc:date>2009-11-10T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel v</title>
      <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892908#M4954</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;I think we need to wait next public release of VTune which supports the kernels upper 2.6.30.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Nov 2009 10:29:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892908#M4954</guid>
      <dc:creator>Vladimir_T_Intel</dc:creator>
      <dc:date>2009-11-11T10:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel v</title>
      <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892909#M4955</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/120176"&gt;Vladimir Tsymbal (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;I think we need to wait next public release of VTune which supports the kernels upper 2.6.30.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for all the information. I'll try waiting for the next release of VTune or just use an older kernel.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Nov 2009 16:15:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892909#M4955</guid>
      <dc:creator>vazexqi</dc:creator>
      <dc:date>2009-11-11T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Building VTune 9.1 Sampling Driver on Ubuntu-9.10 (Kernel v</title>
      <link>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892910#M4956</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;&lt;EM&gt;This is a somewhat rude fix, but it should work.&lt;/EM&gt; Open os_dependent.h and change the VTSA_FIND_TASK_BY_PID block to look like this:&lt;BR /&gt;&lt;BR /&gt;//#if defined(USE_PID_NAMESPACE)&lt;BR /&gt;//#define VTSA_FIND_TASK_BY_PID(pid) find_task_by_pid_ns(pid, &amp;amp;init_pid_ns)&lt;BR /&gt;//#else&lt;BR /&gt;//#define VTSA_FIND_TASK_BY_PID(pid) find_task_by_pid(pid)&lt;BR /&gt;//#endif&lt;BR /&gt;#define VTSA_FIND_TASK_BY_PID(pid) &lt;BR /&gt; pid_task(find_pid_ns(pid, &amp;amp;init_pid_ns), PIDTYPE_PID)&lt;BR /&gt;&lt;BR /&gt;That is, comment out the five lines I commented out and add the two lines I added at the end.&lt;BR /&gt;&lt;BR /&gt;The proper fix requires testing the kernel version in configure, passing a new flag to Makefile.in and testing that flag in os_dependent.h. Unfortunately, I don't know the exact kernel version to make the switch flip on and don't have time to research it. This should get you going, but with this patch, you won't be able to compile drivers for older kernels.&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Jan 2010 17:06:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Building-VTune-9-1-Sampling-Driver-on-Ubuntu-9-10-Kernel-version/m-p/892910#M4956</guid>
      <dc:creator>joelkatz</dc:creator>
      <dc:date>2010-01-07T17:06:31Z</dc:date>
    </item>
  </channel>
</rss>

