On Fri, Sep 28, 2018 at 10:59 PM Andi Kleen <[email protected]> wrote: > > > This new file descriptor argument doesn't exist today so it would > > > need to create a new system call with more arguments > > > > Is that true? The first argument is a pointer to a struct that > > contains its own size, so it can be expanded without an ABI break. I > > don't see any reason why you couldn't cram more stuff in there. > > You're right we could put the fd into the perf_event, but the following is > still true: > > > > Obviously we would need to keep the old system call around > > > for compability, so you would need to worry about this > > > interaction in any case!
<blasphemy> Is that true? IIRC if you want to use the perf tools after a kernel update, you have to install a new version of perf anyway, no? I think after I run a kernel update, when I run "perf top", it just refuses to start and tells me to go install a newer version. Would the users of perf_event_open() that want to monitor this graphics stuff normally keep working after a kernel version bump? I realize that the kernel is very much against breaking userspace interfaces, but if userspace has already decided to break itself after every update, we might as well take advantage of that... </blasphemy> > > > So tying it together doesn't make any sense, because > > > the problem has to be solved separately anyways.

