On Sat, 2015-01-10 at 08:14 -0700, David Ahern wrote:
> On 1/9/15 9:15 PM, William Cohen wrote:
> >> I have thought about pipes, callbacks, but I don't see any way to get
> >> these to work between the library loaded in the Java program and perf.
> >> Just wondering if you had any thoughts on how to do the communication?
> >>
> >> Carl Love
> >
> > Hi Carl,
> >
> > Too bad there isn't a "sys_perf_event" syscall to allow user-space
> > applications to inject like a software event style entries into the
> > kernel's recording of perf events. The AMD lightweight profiling mechanism
> > specified the LWPINS instruction to insert a software event entry into the
> > data buffer (http://support.amd.com/TechDocs/43724.pdf). Seems like the
> > linux kernel should have a similar mechanism to allow user and kernel-space
> > to inject data in the perf records.
> >
> > -Will
>
> https://lkml.org/lkml/2014/11/3/917
>
> David
>
David:
Ah, this is the ioctl patch you had mentioned you mentioned previously.
I hadn't found the patch before. Yes, this looks like it would work. I
will see if I can get a prototype working with this patch. Thanks.
Carl Love
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html