Public bug reported:

The following kernel commit:

[babd04386b1df8c364cdaa39ac0e54349502e1e5] perf jit: Include program
header in ELF files

introduced a bug in perf that causes samples to be attributed to the wrong 
instructions in
the annotated assembly output of `perf report` and `perf annotate`.

The following commit:

[89b15d00527b7825ff19130ed83478e80e3fae99] perf inject: Fix
GEN_ELF_TEXT_OFFSET for jit

fixes the bug. Can it be backported to 20.04 and wherever else it's needed? The 
output looks very
confusing when parts of the code one expects to accumulate ticks don't and 
other parts
that shouldn't be executed at all accumulate ticks.

The above patch depends on parts of
d6e6a27d960f9f07aef0b979c49c6736ede28f75, which depends on something
else, etc. etc.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2020197

Title:
  perf tool jit profiling broken 20.04

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  The following kernel commit:

  [babd04386b1df8c364cdaa39ac0e54349502e1e5] perf jit: Include program
  header in ELF files

  introduced a bug in perf that causes samples to be attributed to the wrong 
instructions in
  the annotated assembly output of `perf report` and `perf annotate`.

  The following commit:

  [89b15d00527b7825ff19130ed83478e80e3fae99] perf inject: Fix
  GEN_ELF_TEXT_OFFSET for jit

  fixes the bug. Can it be backported to 20.04 and wherever else it's needed? 
The output looks very
  confusing when parts of the code one expects to accumulate ticks don't and 
other parts
  that shouldn't be executed at all accumulate ticks.

  The above patch depends on parts of
  d6e6a27d960f9f07aef0b979c49c6736ede28f75, which depends on something
  else, etc. etc.

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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to