On Debian 11, attaching to perf_events fail with the following message:
Exception: Failed to attach BPF to perf event
Investigate why it doest work there. If it's a bcc version problem, we should try to detect it to disable perf events collection.
Thanks to @frost242 for reporting it.