Can anybody provide me with a reason why #Ubuntu packaged #Linux #perf doesn't/ shouldn't ship a tips.txt file? If you run perf without manually installing the tips.txt it will complain and ask you to install perf (see very bottom of the screen: `Cannot load tips.txt file, please install perf!`).

It seems to me that shipping the 5.4KiB file in the package would be helpful.

Bug #2059712 “`perf report` complains about missing tips.txt fil...” : Bugs : linux package : Ubuntu

The `perf` command-line tool expects a tips.txt file at /usr/share/doc/perf-tip/tips.txt, from which it displays random tips in `perf report` mode. If this file is not present (it is not on Ubuntu 22.04 LTS), `perf report` complains, both in interactive and in non-interactive mode, that: > Cannot load tips.txt file, please install perf! Reproduction: $ mkdir tmpdir; cd tmpdir $ perf record ls $ perf report | cat The expected behaviour is that this message is not shown (and a (useful?) tip...

Launchpad

@inawhilecrocodile Thank you for bringing that to my attention.

I've now registered that the bug affects me and presented the work-around I used. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2059712/comments/2

Comment #2 : Bug #2059712 : Bugs : linux package : Ubuntu

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04.2 LTS Release: 24.04 Codename: noble $ apt list --installed 'linux-tools-common' linux-tools-common/noble-updates,noble-updates,noble-security,noble-security,now 6.8.0-60.63 all [installed] $ perf --version perf version 6.8.12 The tips file: https://github.com/torvalds/linux/blob/master/tools/perf/Documentation/tips.txt Work around: sudo mkdir -p /usr/share/doc/perf-tip cur...

Launchpad