Public bug reported:

perf probe doesn't work because the register names in the perf tool are
incorrect. This was fixed upstream by
https://patchwork.kernel.org/patch/9534823/.

perf probe -x /lib/aarch64-linux-gnu/libc.so.6 -a 'malloc bytes'
Failed to write event: Invalid argument
  Error: Failed to add events.

Rebuilding perf with the above mentioned change results in:
ubuntu:/usr/src/linux-source-4.10.0/tools/perf# ./perf probe -x 
/lib/aarch64-linux-gnu/libc.so.6 -a 'malloc bytes'
Added new event:
  probe_libc:malloc    (on malloc in /lib/aarch64-linux-gnu/libc-2.24.so with 
bytes)

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

-- 
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/1671917

Title:
  perf probes on arm64 don't work with 4.10 kernel b/c of register name
  issue

Status in linux package in Ubuntu:
  New

Bug description:
  perf probe doesn't work because the register names in the perf tool
  are incorrect. This was fixed upstream by
  https://patchwork.kernel.org/patch/9534823/.

  perf probe -x /lib/aarch64-linux-gnu/libc.so.6 -a 'malloc bytes'
  Failed to write event: Invalid argument
    Error: Failed to add events.

  Rebuilding perf with the above mentioned change results in:
  ubuntu:/usr/src/linux-source-4.10.0/tools/perf# ./perf probe -x 
/lib/aarch64-linux-gnu/libc.so.6 -a 'malloc bytes'
  Added new event:
    probe_libc:malloc    (on malloc in /lib/aarch64-linux-gnu/libc-2.24.so with 
bytes)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1671917/+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