News: 0001533643

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Proposed Patches Would Allow Using Linux Kernel's libperf From Python

([Programming] 62 Minutes Ago libperf + Python)


A set of patches from IBM would introduce a C extension module for the Linux kernel's libperf code to allow usage from the Python programming language.

Libperf is the Linux kernel's perf event library that lives within the kernel source tree. In making it easier to leverage this API for accessing the Linux kernel's perf events subsystem, the "request for comments" patches would introduce a C extension module so it's easy to tap libperf from Python code.

This proposed module would allow calling the libperf API functions from Python as an alternative to C programs. IBM engineers will likely support all of the libperf library but for now the RFC patches are intended just for demonstration and to solicit feedback. With this initial code is also some simple demonstration Python code too.

Those interested in the prospects of leveraging the libperf API from Python code can see [1]this RFC patch series for all the details.



[1] https://lore.kernel.org/lkml/20250313075126.547881-1-gautam@linux.ibm.com/



kieffer

The Great Movie Posters:

An AVALANCHE of KILLER WORMS!
-- Squirm (1976)

Most Movies Live Less Than Two Hours.
This Is One of Everlasting Torment!
-- The New House on the Left (1977)

WE ARE GOING TO EAT YOU!
-- Zombie (1980)

It's not human and it's got an axe.
-- The Prey (1981)