lkml.org 
[lkml]   [2021]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: libperf: lack of interface
Date
Hi

> > On Wed, Sep 01, 2021 at 10:36:40AM -0300, Arnaldo Carvalho de Melo wrote:
> > > Em Wed, Sep 01, 2021 at 09:45:10AM +0000, nakamura.shun@fujitsu.com escreveu:
> > > > Hello.
> > > >
> > > > I'm trying to change rdpmc test in perf_event_tests[1] to use libperf, but libperf doesn't have enough interfaces.
> > > > Does anyone plan to implement any of these libperf features?
> > > >
> > > > - Interfaces that can run ioctl (PERF_EVENT_IOC_RESET) from userland
> > > > - Interfaces that can run fcntl (SIGIO) from userland
> >
> > hi,
> > we could add perf_evsel__fd like below, would it help your usecase?
> >
> > if you described your usecases in more details we could
> > see if we could add/move something to libperf for that
> >
> > as Arnaldo said below it could be already in tools/perf/util/*.c
> > somewhere ;-)

> As Peter says, I understood that for rdpmc, no reset is needed.

> However, PAPI resets it explicitly, for example, at PAPI_reset.
> In other, PAPI also has the ability to call PERF_EVENT_IOC_REFLESH on overflow to call a user-registered handler, using SIGIO.

> I think it is desirable to be able to achieve similar functionality.

Does anyone have any comments?

Best Regards
Shunsuke
\
 
 \ /
  Last update: 2021-10-18 11:05    [W:0.222 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site