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:
repo init -u https://aosp.tuna.tsinghua.edu.cn/kernel/manifest -b 
android-msm-crosshatch-4.9-pie-qpr2
repo sync

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

4. Use the test code in 
https://android.googlesource.com/kernel/msm/+/android-msm-marlin-3.18-nougat-dr1/Documentation/kcov.txt
 
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

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/a64e371f-3bbd-45a2-ba98-1c0a5b6331c5%40googlegroups.com.

Reply via email to