linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* a few libperf questions
@ 2022-06-02 15:37 Vince Weaver
  2022-06-02 16:25 ` Ian Rogers
  0 siblings, 1 reply; 4+ messages in thread
From: Vince Weaver @ 2022-06-02 15:37 UTC (permalink / raw)
  To: linux-perf-users; +Cc: Jiri Olsa, Arnaldo Carvalho de Melo, Peter Zijlstra

Hello

I work on various perf-related tools in the HPC community, most notably 
the PAPI performance library.

Currently PAPI maintains its own independent code for working with 
perf_event_open(), but with the advent of libperf I was looking into maybe 
linking against libperf to avoid all the code/work duplication.  So I had 
a few questions.

	1. What's the licensing of libperf?  Is it GPLv2?

		PAPI is BSD licensed.
		This is something that actually pushes us to libperf
		because if I wanted to (for example) implement the new 
		ARM rdpmc code I can't just copy it in to PAPI but
		would have to re-implement from scratch

	2. Is it expected that distributions will start shipping
		libperf?  As part of perf or otherwise?

		Telling HPC users they need to dowload an entire
		kernel tree just to build libperf is seen as a huge
		obstacle for many, and just including a snapshot
		of the code into our code tree again starts having
		licensing issues.

	3. Is libperf planned to be backwards compatible with old kernels,
		or will it be tied to whatever kernel it is shipped with?
		Will it have ABI-stable releases?

		Sort of like with perf, I know only supporting the most
		recent kernel makes life easier for the kernel developers
		but it does make for a library versioning nightmare
		especially if trying to support people on older
		distro releases.

I'm going to try to see if I can get a libperf backend for PAPI going and 
maybe try to get some of the other HPC parties involved (they tend to not 
want to deal with kernel development directly for some reason) but I'm not 
sure if they're going to like how closely bound libperf is to 
the kernel tree.

Vince Weaver
vincent.weaver@maine.edu

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-03  9:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-02 15:37 a few libperf questions Vince Weaver
2022-06-02 16:25 ` Ian Rogers
2022-06-02 20:54   ` Vince Weaver
2022-06-03  9:32   ` Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).