These changes should remove the incorrect generation of a warining when setting up a perf event.
The warning says that pid is not part of the ctype (which is is not) but it is required to be set by _open_for_cpu.
Therefore I moved the pid to be an extra argument which removes the need for it to be set in attr fixing the error.
These changes should remove the incorrect generation of a warining when setting up a perf event. The warning says that pid is not part of the ctype (which is is not) but it is required to be set by _open_for_cpu. Therefore I moved the pid to be an extra argument which removes the need for it to be set in attr fixing the error.