- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
On compiling and building an executable, I am trying to run VTune on this for hotspot analysis. I am unable to start hotspot analysis under User Mode Sampling option due to the following error:
"Cannot start data collection because the scope of ptrace system call is limited. To enable profiling, please set /proc/sys/kernel/yama/ptrace_scope to 0. To make this change permanent, set kernel.yama.ptrace_scope to 0 in /etc/sysctl.d/10-ptrace.conf and reboot the machine."
On trying to follow this advice, I navigated to the folder in question and issued:
:/proc/sys/kernel/yama$ sudo echo 0 > ptrace_scope
bash: ptrace_scope: Permission denied
but despite sudo, permission seems to be denied.
Is there a way to get around this so that I can use VTune in Linux?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I figured this out following the method suggested by the accepted answer below:
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I figured this out following the method suggested by the accepted answer below:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Good day to you.
Thanks for posting in Intel Communities.
We hope your issue is resolved and thanks for sharing it with the community.
The same fix is mentioned in the official user guide. Refer: https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/troubleshooting/error-ptrace-sys-call-scope-limited.html
Since, your initial query is resolved, we will be closing this thread. If you have any new queries, kindly post a new question since this thread will no longer be monitored by Intel.
Regards,
Jyothis V James

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page