lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <OSBPR01MB46003CB99B9AAC0A574D341DF76E9@OSBPR01MB4600.jpnprd01.prod.outlook.com>
Date:   Tue, 7 Dec 2021 05:49:16 +0000
From:   "nakamura.shun@...itsu.com" <nakamura.shun@...itsu.com>
To:     Jiri Olsa <jolsa@...hat.com>
CC:     Arnaldo Carvalho de Melo <acme@...nel.org>,
        Peter Zijlstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...nel.org>,
        Mark Rutland <mark.rutland@....com>,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        Jiri Olsa <jolsa@...nel.org>,
        Namhyung Kim <namhyung@...nel.org>,
        Rob Herring <robh@...nel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-perf-users@...r.kernel.org" <linux-perf-users@...r.kernel.org>
Subject: Re: libperf: lack of interface

Hi jirka

> > > On Mon, Oct 18, 2021 at 08:57:20AM +0000, nakamura.shun@...itsu.com wrote:
> > > > 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@...itsu.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?
> > > 
> > > I'll try to add that functionality soon,
> > > I'll cc you on patch
> > 
> > Thank you.
> > I look forward to your patch.
> 
> Do you have a specific plan? 
> I would like to know the rough period until your patch is made.
 
I will also try to implement these interfaces.

Best Regards
Shunsuke

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ