Messages in this thread | | | Date | Wed, 26 Jun 2013 11:56:31 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH v2 00/14] perf, persistent: Kernel updates for perf tool integration |
| |
On Wed, Jun 26, 2013 at 11:46:34AM +0200, Ingo Molnar wrote: > If already existing persistent events show up somewhere in sysfs > (or in a separate pseudofilesystem) then an open() of them [given > sufficient privileges of the caller, etc.] could attach to them.
Yep, I think we want to say sys_perf_event_open(attr.persistent=1) which would give you a file descriptor to an already existing persistent event with attr.config=<id>.
If it doesn't exist, it creates it.
-- Regards/Gruss, Boris.
Sent from a fat crate under my desk. Formatting is fine. --
| |