Install Intel (R) VTune (TM) AmplifierXE2011 on Ubuntu * 11.04 through Sudo. No error message is reported throughout the process. Use amplxe-gui to call the graphical interface of the tool, create a project, and select the target application. Then, HotspotsAnalysis is used to analyze the target program, and an error occurs unexpectedly. The same problem also occurs in the parallel analysis (ConcurrencyAnal
Install Intel (R) VTune (TM) Amplifier XE 11.04 on Ubuntu * 2011 through Sudo. No error message is reported throughout the process.
Use amplxe-gui to call the graphical interface of the tool, create a project, and select the target application. Then, use the tool to perform hot spots Analysis on the target program to obtain error information unexpectedly.
The same problem occurs in Concurrency Analysis And Locks And Waits Analysis ).
The reason is that Ubuntu * 10.10 and later versions only allow the process of the parent ptrace application of the traced process when a common user uses ptrace to trace the process.
VTune Amplifier XE is not the parent process of the application. How can we remove this restriction? According to the error message:
$ Sudo echo 0>/proc/sys/kernel/yama/ptrace_scope
Bash:/proc/sys/kernel/yama/ptrace_scope: Permission denied
Use:
$ Echo 0 | sudo tee/proc/sys/kernel/yama/ptrace_scope
[Sudo] password for peter:
0
In this way, VTune (TM) Amplifier XE can work normally.