perf should be compiled with libtraceevent

Bug #2019247 reported by Benjamin Peterson
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

libtraceevent was removed from the kernel tree in https://<email address hidden>/. The linux-tools-6.2.0-20-generic I have in Lunar doesn't not use compile perf against libtraceevent, making perf unable to record traceevents.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2019247

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Craig Ringer (ringerc) wrote :

This still appears to be an issue. Events are listed in `perf list` but not available for use by `perf record`

e.g.

$ sudo /usr/lib/linux-tools/6.2.0-39-generic/perf record -e syscalls:sys_enter_fsync -ag
event syntax error: 'syscalls:sys_enter_fsync'
                     \___ unsupported tracepoint

libtraceevent is necessary for tracepoint support
Run 'perf list' for a list of valid events

 Usage: perf record [<options>] [<command>]
    or: perf record [<options>] -- <command> [<options>]

    -e, --event <event> event selector. use 'perf list' to list available events

➜ test git:(UPM-29742) ✗ /usr/lib/linux-tools/6.2.0-39-generic/perf version
perf version 6.2.16

Revision history for this message
Roxana Nicolescu (roxanan) wrote :

Lunar is EOL, it's not supported anymore.Is this a problem in noble (6.8) or mantic (6.5)?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Benjamin Peterson (benjaminp) wrote :

Yes, this issue has continued through all releases in the last year. The source of the issue is in debian/rules.d/2-binary-arch.mk: NO_LIBTRACEEVENT=1 continues to be passed while building perf.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
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.