"perf" test is unavailable on ARM Versatile Express A9 Android.

Bug #1182839 reported by Botao on 2013-05-22
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
Critical
Bernhard Rosenkraenzer

Bug Description

On ARM Versatile Express A9 board with Linaro Android image:

https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp/#build=291

"perf" test is unavailable:

root@android:/data # perf stat ls
soinfo_relocate(linker.cpp:975): cannot locate symbol "__tls_get_addr" referenced by "perf"...CANNOT LINK EXECUTABLE
255|root@android:/data #

vishal (vishalbhoj) wrote :

The binary available already in the build is an older perf binary which will not work. Perf compilation is disabled since it fails with this error:
LINK /data/src/android/out/target/product/vexpress/obj/kernel/tools/perf/perf
/data/src/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7-linaro/bin/../libexec/gcc/arm-linux-androideabi/4.7.3/real-ld: error: /data/src/android/out/target/product/vexpress/obj/kernel/tools/perf/liblk.a(debugfs.o): incompatible target
perf.c:217: error: undefined reference to 'debugfs_mountpoint'
util/util.c:258: error: undefined reference to 'debugfs_mount'
util/util.c:271: error: undefined reference to 'debugfs_mountpoint'
tests/parse-events.c:981: error: undefined reference to 'debugfs_find_mountpoint'
util/parse-events.c:163: error: undefined reference to 'debugfs_valid_mountpoint'
util/parse-events.c:460: error: undefined reference to 'debugfs_valid_mountpoint'
util/parse-events.c:949: error: undefined reference to 'debugfs_valid_mountpoint'
util/parse-events.c:998: error: undefined reference to 'debugfs_valid_mountpoint'
collect2: error: ld returned 1 exit status
make[1]: *** [/data/src/android/out/target/product/vexpress/obj/kernel/tools/perf/perf] Error 1
make[1]: Leaving directory `/data/src/android/kernel/linaro/vexpress/tools/perf'
make: *** [android_kernel] Error 2

Changed in linaro-android:
assignee: nobody → Bernhard Rosenkraenzer (berolinux)
importance: Undecided → Critical
milestone: none → 13.05
Botao (botao-sun) wrote :

On ARM Versatile Express A9 board with Linaro Android image:

https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp-13.05-release/#build=2

Kernel panic showed after run "perf stat ls" in serial console. Please refer to attachment to get full log output.

vishal (vishalbhoj) wrote :

perf is currently broken on 3.10-rc2 kernel

Changed in linaro-android:
milestone: 13.05 → 13.06
Botao (botao-sun) wrote :

On ARM Versatile Express A9 board with Linaro Android image:

https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-mp/#build=325

Kernel panic showed after run "perf stat ls" in serial console. Please refer to attachment to get full log output. The Kernel version of this build is "3.10.0-rc5-00176-g35658e7"

Botao (botao-sun) wrote :

On ARM Versatile Express A9 board with Linaro Android image:

https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-13.06-release/#build=1

"perf" test now backs to work:

root@android:/ # perf stat ls
acct
cache
config
d
data
default.prop
dev
etc
fstab.arm-versatileexpress
fstab.arm-versatileexpress-usb
fstab.v2p-aarch64
init
init.arm-versatileexpress-usb.rc
init.arm-versatileexpress.rc
init.goldfish.rc
init.partitions.arm-versatileexpress-usb.rc
init.partitions.arm-versatileexpress.rc
init.rc
init.trace.rc
init.usb.rc
init.v2p-aarch64.rc
mnt
proc
root
sbin
sdcard
storage
sys
system
ueventd.arm-versatileexpress-usb.rc
ueventd.arm-versatileexpress.rc
ueventd.goldfish.rc
ueventd.rc
ueventd.v2p-aarch64.rc
vendor

 Performance counter stats for 'ls':

         13.578958 task-clock # 0.861 CPUs utilized
                 0 context-switches # 0.000 M/sec
                 1 CPU-migrations # 0.000 M/sec
               144 page-faults # 0.011 M/sec
           5385358 cycles # 0.397 GHz
           1333289 stalled-cycles-frontend # 24.76% frontend cycles idle
                 0 stalled-cycles-backend # 0.00% backend cycles idle
           1655805 instructions # 0.31 insns per cycle
                                             # 0.81 stalled cycles per insn
            139587 branches # 10.280 M/sec
             61065 branch-misses # 43.75% of all branches

       0.015772000 seconds time elapsed

root@android:/ #

Changed in linaro-android:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints