Question about the perf_event support
Created by: mcolmant
Hi,
First of all, I would like to thank you for this awesome library and for your reactivity!
I have one question regarding the perf_event support.
I have a specific need regarding this support.
As you may know, the file descriptor are opened with the perf_event_open
function while using this interface.
int perf_event_open(struct perf_event_attr *attr,
pid_t pid, int cpu, int group_fd,
unsigned long flags);
I already looked into the code and this function is wrapped inside perf_*_setup
functions.
What I would like to do is to adapt the code for allowing to use of the pid
and flags
parameters.
The main modification will be located to the perfmon_setupCountersThread
, but will lead to a lot of impacts.
Maybe you will have some advices to limit this impact.
I already wrote something, are you interested by such feature?