Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5255 Discussions

A useful tip for users installing VTune 2016 Sampling Drivers on Ubuntu 16.04 without success

Ricky_F_
Beginner
688 Views

Dear All,

I just wanted to share my experience installing vtune 2016, on Ubuntu 16.04.  Hopefully, this will help you if you're having problems installing the sampling drivers.  Note that this issue helped me, and the kernel that I am using is 4.4.0-36-generic.

If building with the command "build-driver" in the <install-dir>/sepdk/src, and you have the following error:

error: ‘struct module’ has no member named ‘module_core’
     unsigned long module_core = (unsigned long)mod->module_core;

error: ‘struct module’ has no member named ‘core_size’
     unsigned long core_size = mod->core_size

Then, to correct this issue, change into the vtsspp subdirectory and open the files module.c and collector.c with a text editor (make sure to use sudo).  In the modules.c file, comment out the lines:

    unsigned long module_core = (unsigned long)mod->module_core;
    unsigned long core_size = mod->core_size

and replace them with

    unsigned long module_core = (unsigned long)mod->core_layout.base;
    unsigned long core_size = mod->core_layout.size;

In the collector.c file, comment out the lines:

        unsigned long addr = (unsigned long)mod->module_core;
        unsigned long size = mod->core_size;

And replace with

        unsigned long addr = (unsigned long)mod->core_layout.base;
        unsigned long size = mod->core_layout.size;

After doing this, the build *may* work for you.  Hopefully, this helps you if you're reading this.

 

 

0 Kudos
0 Replies
Reply