systrace for raspberri pi nougat build

168 views
Skip to first unread message

little...@gmail.com

unread,
Feb 27, 2018, 1:19:28 PM2/27/18
to Android-rpi
Hello,

I build Android for raspberry pi 3 according to instructions in https://github.com/android-rpi/device_brcm_rpi3/blob/nougat/README.

I connected to raspberry pi by WiFI using adb but I cannot run systrace on it.
It outputs this error
 /system/bin/sh: <stdin>[2]: can't create /sys/kernel/debug/tracing/trace_marker: No such file or directory

I researched and realized that it's necessary to turn on debugging options for kernel.
However, I examined generated after compilation kernel/rpi/.config and it has CONFIG_PROFILING and CONFIG_DEBUG_KERNEL set to yes.
I added also CONFIG_DEBUG_INFO to kernel/rpi/arch/arm/configs/bcm2709_defconfig, recompiled but still nothing in sys/kernel/debug directory.

Could you say if it's possible to turn on debug support for your kernel (https://github.com/android-rpi/kernel_rpi) and be able to use systrace. if yes, please tell how.

Thank you,
littlewhywhat

little...@gmail.com

unread,
Mar 5, 2018, 1:30:13 PM3/5/18
to Android-rpi
It's necessary to mound debugfs in adb shell using

mount -t debugfs none /sys/kernel/debug 

it will mount necessary files/interfaces under /sys/kernel/debug

Reply all
Reply to author
Forward
0 new messages