* Versioning of perf python bindings
@ 2021-04-28 7:55 Moessbauer, Felix
0 siblings, 0 replies; only message in thread
From: Moessbauer, Felix @ 2021-04-28 7:55 UTC (permalink / raw)
To: linux-perf-users
Hi,
I'm working on packaging the perf python bindings as a versioned package (e.g. perf_5_10).
Having the version number in the package name is important for distros that support co-installation of multiple kernels (like Debian).
By that, multiple versions of the userland tools are installed at the same time and a wrapper is used to dispatch to the correct module.
However, as the package name has to match the PyInit_<package> function names,
for versioning we have to patch the tools/perf/util/python.c file.
This has to be done for each new kernel version. An example for this patch is found here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860957#10
Now to the question: Is there any versioning support built-in into perf that can be used to simplify this use-case?
I saw that there is already an auto-generated include header that provides version information for perf.
Could we use / extend that and replace the python-init function names with macros to inject the version?
Together with a define, we could implement that in a way that is backwards compatible.
What do you think?
Best regards,
Felix Mößbauer
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-28 7:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28 7:55 Versioning of perf python bindings Moessbauer, Felix
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).