perf compiled without auxtrace

Bug #1641859 reported by Benjamin Peterson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

perf in linux-tools-common_4.8.0-27.29 seems to be compiled without auxtrace support. This prevents perf from using Intel Processor Trace (PT) or Branch Trace Store (BTS). Unfortunately, rather than indicating that auxtrace is missing, perf just records no samples:
# grep -c intel_pt /proc/cpuinfo
8
# perf list | grep intel_pt
# grep intel_pt /proc/cpuinfo
# perf record -e intel_pt// -- ls
...
# perf script

I am able to successfully to use PT on my machine if I compile perf myself.

description: updated
description: updated
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1641859

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
tags: added: kernel-da-key
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Was auxtrace enabled in prior releases, but is not now in Yakkety?

Can you post how you enable auxtrace when you compile your own kernel?

Revision history for this message
Benjamin Peterson (benjaminp) wrote :

I haven't tried any previous Ubuntu or kernel releases. I'm not doing anything special to compile perf myself, i.e., I just run make in tools/perf. Looking at tools/perf/Makefile.config, it seems like auxtrace gets disabled if GCC is detected to not have __get_cpuid, which makes it seems like a bug in the feature detection or an abnormality in the environment where perf is built for linux-tools-common.

Revision history for this message
Benjamin Peterson (benjaminp) wrote :

Seems intel_pt works now on 23.04.

Changed in linux (Ubuntu):
status: Triaged → Fix Released
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.