Tested the following on bionic:
$ cat main.cpp
#include <benchmark/benchmark.h>
#include <vector>
static __attribute__ ((noinline)) int my_really_big_function()
{
for(size_t i = 0; i < 1000; ++i)
{
benchmark::DoNotOptimize(i % 5);
}
return 0;
}
static __attribute__ ((noinline)) void caller1()
{
for(size_t i = 0; i < 1000; ++i)
{
benchmark::DoNotOptimize(my_really_big_function());
benchmark::DoNotOptimize(i % 5);
}
}
static __attribute__ ((noinline)) void myfun(benchmark::State& state)
{
while(state.KeepRunning())
{
caller1();
}
}
BENCHMARK(myfun);
BENCHMARK_MAIN();
$ clang++ main.cpp -o main -fno-omit-frame-pointer -O0 -lpthread
-lbenchmark
$ perf record -g ./main
$ perf report -g 'graph,0.5,caller'
Result:
- with linux-tools-common 4.15.0-46.49:
Samples: 3K of event 'cpu-clock', Event count (approx.): 757250000
Children Self Command Shared Object Symbol
+ 99.67% 0.00% main libbenchmark.so.1.3.0 [.] 0x0000000000015b58
+ 99.67% 0.00% main main [.]
_ZL5myfunRN9benchmark5StateE
+ 99.64% 0.17% main main [.] _ZL7caller1v
+ 99.50% 99.47% main main [.]
_ZL22my_really_big_functionv
...
- with linux-tools-common 4.15.0-47.50 (from -proposed):
Samples: 3K of event 'cpu-clock', Event count (approx.): 755000000
Children Self Command Shared Object Symbol
+ 99.77% 0.00% main libbenchmark.so.1.3.0 [.] 0x0000000000015b58
+ 99.77% 0.00% main main [.] myfun
+ 99.70% 0.13% main main [.] caller1
+ 99.64% 99.64% main main [.] my_really_big_function
...
This problem seems fixed now.
** Tags removed: verification-failed-bionic
** Tags added: verification-done-bionic
--
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/1396654
Title:
C++ demangling support missing from perf
Status in linux package in Ubuntu:
Triaged
Status in linux-hwe package in Ubuntu:
Confirmed
Status in linux source package in Xenial:
Fix Committed
Status in linux-hwe source package in Xenial:
Fix Committed
Status in linux source package in Yakkety:
Won't Fix
Status in linux source package in Zesty:
Fix Released
Status in linux source package in Bionic:
Fix Committed
Status in linux-hwe source package in Bionic:
Fix Committed
Status in linux source package in Cosmic:
Fix Committed
Status in linux-hwe source package in Cosmic:
Confirmed
Status in linux source package in Disco:
Triaged
Status in linux-hwe source package in Disco:
Confirmed
Bug description:
Hi,
It appears that C++ demangling support is missing from linux-tools-3.16.0-24,
on Utopic on arm64.
Could the following please be added to the build dependencies for that
package:
libiberty-dev
binutils-dev
Installing the above and rebuilding the package fixed the problem for
me.
Cheers,
--
Steve
---
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code
2: ls: cannot access /dev/snd/: No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.14.7-0ubuntu8
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory
CRDA: Error: [Errno 2] No such file or directory
CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order
/var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: Permission
denied
DistroRelease: Ubuntu 14.10
IwConfig: Error: [Errno 2] No such file or directory
Lspci:
Lsusb: Error: command ['lsusb'] failed with exit code 1: unable to initialize
libusb: -99
Package: linux (not installed)
PciMultimedia:
ProcFB:
ProcKernelCmdLine: console=ttyS0,115200n8 ro
ProcVersionSignature: Ubuntu 3.16.0-24.32-generic 3.16.4
RfKill: Error: [Errno 2] No such file or directory
Tags: utopic utopic
Uname: Linux 3.16.0-24-generic aarch64
UnreportableReason: The report belongs to a package that is not installed.
UpgradeStatus: Upgraded to utopic on 2014-11-17 (9 days ago)
UserGroups: sudo
WifiSyslog:
_MarkForUpload: True
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1396654/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp