`perf report` complains about missing tips.txt file

Bug #2059712 reported by Tom Smeding
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
New
Undecided
Kleber Sacilotto de Souza

Bug Description

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 is shown instead).

This has led to bug reports (and fixes) on various other Linux distributions: at least Fedora [1] and Arch [2].

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1448402
[2]: https://bugs.archlinux.org/task/48788

Further info:
$ lsb_release -rd
Description: Ubuntu 22.04.4 LTS
Release: 22.04

$ apt-cache policy linux-tools-common | head -5
linux-tools-common:
  Installed: 5.15.0-101.111
  Candidate: 5.15.0-101.111
  Version table:
 *** 5.15.0-101.111 500

$ cat /proc/version_signature
Ubuntu 5.15.0-101.111-generic 5.15.143

Changed in linux (Ubuntu):
assignee: nobody → Kleber Sacilotto de Souza (kleber-souza)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.