Hello!
I want to use kcov of android kernel. And these are my steps.
Phone: pixel3
Kenel version: android-msm-crosshatch-4.9-pie-qpr2
1. Download kernel source using repo:
2. Use the config file ${repo}/private/msm-google/build.config.kasan to compile kernel.
BUILD_CONFIG=${repo}/private/msm-google/build.config.kasan build/build.sh
Then I got a compiled kernel "
Image.lz4-dtb".
3. flash my kernel:
adb reboot bootloader
fastboot boot Image.lz4-dtb
and cross-compile it into arm64. Adb push the binary into my pixel3
5. Run the binary and got the error:
ioctl: Not a typewriter
Below are the lines about kcov in config file:${repo}/out/android-msm-bluecross-4.9/dist/.config
CONFIG_ARCH_HAS_KCOV=y
CONFIG_KCOV=y
CONFIG_KCOV_INSTRUMENT_ALL=y
How can I fix this? T.T
regards,
chenyixiu