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

Run a script as root

hiraskar__hrishi
ビギナー
1,512件の閲覧回数

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 件の賞賛
3 返答(返信)
Kirill_U_Intel
従業員
1,512件の閲覧回数

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

Vitaly_S_Intel
従業員
1,512件の閲覧回数

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.

hiraskar__hrishi
ビギナー
1,512件の閲覧回数

[SOLVED]

Solution:

I just reinstalled vtune as a root user.

返信