Perf Data Parser failed - Qt Creator
-
When I try to run the Performance Analyzer, I get this error message:
The Perf data parser failed to process all the samples. Your trace is incomplete. The exit code was 4.
I am using Performance Analyzer in Qt for the first time, so any help would be great.
Qt Version: 5.12.9
Perf Version: 5.15.131
OS Version: Ubuntu 22.04.3 LTS -
@shreya_agrawal
The issue was solved. Follow these steps:
Add this line in the /etc/sysctl.conf file and then save the file:kernel.perf_event_paranoid = -1
Earlier, the perf_event_paranoid was set to 4, which was the cause of the error.
-1: Allow use of (almost) all events by all users
0: Disallow raw and ftrace function tracepoint access
1: Disallow CPU event access
2: Disallow kernel profilingThen, apply the changes by running the following command:
sudo sysctl -p
-