Re: [PATCH v8 4/4] libperf: Add support for user space counter access

2021-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 14, 2021 at 11:07:39AM -0500, Rob Herring escreveu: > x86 and arm64 can both support direct access of event counters in > userspace. The access sequence is less than trivial and currently exists > in perf test code (tools/perf/arch/x86/tests/rdpmc.c) with copies in > projects such as PA

[PATCH v8 4/4] libperf: Add support for user space counter access

2021-04-14 Thread Rob Herring
x86 and arm64 can both support direct access of event counters in userspace. The access sequence is less than trivial and currently exists in perf test code (tools/perf/arch/x86/tests/rdpmc.c) with copies in projects such as PAPI and libpfm4. In order to support usersapce access, an event must be