User Guide

Intel® VTune™ Profiler User Guide

ID 766319
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Error Message: Scope of ptrace System Call Is Limited

Full error message: Failed to start profiling because the scope of ptrace() system call application is limited. To enable profiling, please set /proc/sys/kernel/yama/ptrace_scope to 0. See the Release Notes for instructions on enabling it permanently. This is a Linux* only message.

Cause

VTune Profiler may fail to collect data for Hotspots and Threading analysis types on the Ubuntu* operating system if the scope of ptrace() system call application is limited.

Solution

Set the value of the kernel.yama.ptrace_scopesysctl option to 0 with this command:

sysctl -w kernel.yama.ptrace_scope=0

To make this change permanent, set the kernel.yama.ptrace_scope value to 0 in the /etc/sysctl.d/10-ptrace.conf file using root permissions and reboot the machine.