Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)

Run a script as root

hiraskar__hrishi
Beginner
882 Views

I need to run a DPDK application under vtune amplifier. It needs to be run with super user privileges. This application is run using a script as it needs some environment variables to be set.

Usually I run this script by switching the user to root.

How can I do this?

Things that I've tried:
+ Run vtune amplifier as root, but this fails to launch any application saying 'License check failed'.
+ Set suid bit on the script, but this fails to run the application.

0 Kudos
3 Replies
Kirill_U_Intel
Employee
882 Views

Hi.

Could you try to copy licenses dir ~/intel/licenses to the product dir VTUNE_INSTALL_DIR/licenses and run root gui again?

Does it still have license issues?

Kirill

0 Kudos
Vitaly_S_Intel
Employee
882 Views

VTune checks license on finalization step only. You can collect on any target platform and under any user. When you see the message about license check failure, the result directory should already contain all the collected traces. Now you can open it under your regular user (make sure files within result directory are accessible to this user) to cause data analysis and report.

0 Kudos
hiraskar__hrishi
Beginner
882 Views

[SOLVED]

Solution:

I just reinstalled vtune as a root user.

0 Kudos
Reply