I still have the following errors, even though I have already executed samply setup.
$ samply record -p 31206
Error: task_for_pid for target task failed with error code 5.
Please run 'samply setup' in order to grant appropriate entitlements
to the binary.