I am really sorry to say, but that's the perfect example of a typical response in the public support community :-(
In our private portal with paid support hours I did get the correct respone within 3 days, while the reply in the public support community took several weeks and it was wrong.
Just to make it clear:
I don't have a problem with ADB or Systrace at all, it works fine on my mobile phone.
It simply just doesn't work with the Sabre-SDB i.MX6 Android BSP because it hasn't been properly configured.
Correct answer:
Those are the tweaks you have to perform in the IMX6-L500-100-ANDROID-SOURCE-BSP in order to have Systrace support:
On lp5.1, sabersd-6dl, to enable systrace, do below step:
1. In kernel config (/kernel_imx/arch/arm/configs/imx_v7_android_defconfig), add below items
CONFIG_TRACING=y
CONFIG_FTRACE=y
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_FUNCTION_TRACER=y
CONFIG_IRQSOFF_TRACER=y
CONFIG_SCHED_TRACER=y
CONFIG_STACK_TRACER=y
CONFIG_EVENT_TRACING=y
CONFIG_FTRACE_SYSCALLS=y
2. In device/fsl/sabresd_6dq/init.rc:
change "mount debugfs none /sys/kernel/debug/" to "mount debugfs none /sys/kernel/debug/ mode=755"
3. make bootimage, then burn to the board
4. After boot up, run "chmod -R 777 /sys/kernel/debug/tracing"