This regressed in plucky:

root@p-perf:~# uname -a
Linux p-perf 6.14.0-10-generic #10-Ubuntu SMP PREEMPT_DYNAMIC Wed Mar 12 
16:07:00 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
root@p-perf:~# python3 -c 'import perf; [print(c) for c in perf.cpu_map()]'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import perf; [print(c) for c in perf.cpu_map()]
    ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/perf/__init__.py", line 23, in <module>
    raise KernelNotFoundError()
perf.KernelNotFoundError: 
WARNING: python perf module not found for kernel 6.14.0-10-generic

  You may need to install the following package for this specific kernel:
    linux-tools-6.14.0-10-generic

  You may also want to install the following package to keep up to date:
    linux-tools-generic
root@p-perf:~# dpkg -l linux-tools-6.14.0-10-generic
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                          Version      Architecture Description
+++-=============================-============-============-=========================================================
ii  linux-tools-6.14.0-10-generic 6.14.0-10.10 amd64        Linux kernel 
version specific tools for version 6.14.0-10

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2051560

Title:
  Provide python perf module

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2051560/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to