Set Up FreeBSD* System
Intel® VTune™
allows you to collect performance data remotely on a FreeBSD* target system.
Profiler
Intel® VTune™
includes a target package for collecting event-based sampling data on a FreeBSD* target system either via the remote collection capability or by collecting the results locally on the FreeBSD system and copying them to a Linux*, Windows*, or macOS* host system. The collected data is then displayed on a host system that supports the graphical interface.
Profiler
- InstallVTuneon your Linux, Windows, or macOS host.ProfilerRefer to the Installation Guide for your host system for detailed instructions.
- Install the appropriate sampling drivers on the FreeBSD target system. Use thefile for analysis using<vtune-install-dir>/target/freebsd/vtune__target_x86_64.tgzprofilerVTuneor theProfilerfile for analysis using the sampling enabling product (SEP) collectors.<vtune-install-dir>/target/freebsd/vtune__target_sep_x86_64.tgzprofiler
- Collect performance data using one of the following methods. For more information about each of these methods, see .
- Remote analysis from the host system using theVTunecommand line or GUI.Profiler
- Native analysis on the target system using theVTunecommand line.Profiler
- Native analysis on the target system using the SEP collectors.
- Review the results on the host system.
Install the Sampling Drivers on FreeBSD
Use the following steps to configure your FreeBSD target system for event-based sampling analysis. Root privileges are required on the target system to install the
VTune
drivers.
Profiler
- Copy thefile to the target system using FTP, SFTP, or SCP.<vtune-install-dir>/target/freebsd/vtune__target_x86_64.tgzprofiler
- Extract the archive to the/opt/inteldirectory on the target system.
- Navigate to the following location:/opt/intel/sepdk/modules
- Run the following commands to build the appropriate drivers:$ make $ make install
- Run the following command to install the drivers:$ kldload sep pax
Allow non-root users to run an event-based sampling analysis by running the following commands after installing the drivers:
$ chgrp -R <user_group> /dev/pax
$ chgrp -R <user_group> /dev/sep
Remove the Sampling Drivers from FreeBSD
Run the following command to unload the sampling drivers:
$ kldunload sep pax