Allow for the creation of custom perf events.
In my case I need access to the attributes sample_type and branch_sample_type which is not allowed with the current api.
I have tried skipping perf_event_open() and just using _open_for_cpu().
However doing so generates warning as the pid is set outside of the Perf class and it is not part of perf_event_attr's ctypes.
Allow for the creation of custom perf events. In my case I need access to the attributes sample_type and branch_sample_type which is not allowed with the current api. I have tried skipping perf_event_open() and just using _open_for_cpu(). However doing so generates warning as the pid is set outside of the Perf class and it is not part of perf_event_attr's ctypes.