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

Run a script as root

hiraskar__hrishi
Débutant
1 219 Visites

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 Compliments
3 Réponses
Kirill_U_Intel
Employé
1 219 Visites

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 Compliments
Vitaly_S_Intel
Employé
1 219 Visites

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 Compliments
hiraskar__hrishi
Débutant
1 219 Visites

[SOLVED]

Solution:

I just reinstalled vtune as a root user.

0 Compliments
Répondre