Installing Sampling Driver via RPM

Some users have expressed interest in manually installing the sampling driver from an RPM package.  This article describes the necessary steps.  If you are new to the VTune™ Amplifier XE, do NOT use this method.  This method should only be employed by experienced VTune Amplifier XE and Linux users.

After downloading the VTune Amplifier XE 2011 tar file and extracting it via the 'tar xzvf <filename>' command, changing directory into the extracted directory and then into the CLI_install/rpm directory, will reveal a RPM package named intel-vtune-amplifier-xe-sep-<buildnumber>-<versionnumber>.0-<updatenumber>.noarch.rpm.  For example, in Update 5, the filename is intel-vtune-amplifier-xe-sep-186533-11.0-5.noarch.rpm.

Use the RPM package manager to manually install this RPM.  For example,

$> rpm -i intel-vtune-amplifier-xe-sep-186533-11.0-5.noarch.rpm

This will install the files of the package into the default location of /opt/intel/vtune_amplifier_xe_2011/sepdk.  RPM options can be used to install to a different location, e.g. --prefix.

At this point, check to see if a pre-built driver was included for your version of Linux by cd'ing into the prebuilt subdirectory and executing the script ./insmod-sep3.  Note: you may want to specify the group of users that should get access to the driver via the '-g' option (use './insmod-sep3 -help' to see all options).  Group membership is required so that customers can limit access to this kernel module to a subset of all users, if required by their environment.  If there are no limits on access to kernel modules, you can just use a group name that everyone belongs to, for example, 'users'.  The default is the 'vtune' group.

If the script declares that no driver if available for your version of Linux, cd into the src directory, e.g., cd ../src, and use the build-driver script to build a driver for your kernel.  See the README.txt file for details about building the driver, if you run into any errors during the driver build.  In general, accept the defaults for all the prompts from the script, however, the kernel sources and headers must be configured correctly in order to build the driver.  Again, see the README.txt file for details.

Once a driver is built, execute './insmod-sep3 -g <groupname>' to load the driver.  Note: there is also a script named boot-script that can be used to cause the driver to be loaded after every system reboot.  This is the normal operation when VTune Amplifier XE is installed via the installation script.
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.