When running pwatch on a typical stock Android device where the kernel lacks hardware watchpoint support (CONFIG_HW_PERF_EVENTS), the tool fails with a generic EINVAL: Invalid argument error.
This can be confusing to debug. It would be much more helpful if the tool could detect the lack of kernel support and provide a specific error message.
Example of current error:
$ ./pwatch <pid> rw4 <address>
ERROR pwatch > perf_map_open error: EINVAL: Invalid argument
Environment
- OS: Android 8.1 (Oreo)
- Device: Google Nexus 6P (angler) with stock firmware
When running
pwatchon a typical stock Android device where the kernel lacks hardware watchpoint support (CONFIG_HW_PERF_EVENTS), the tool fails with a genericEINVAL: Invalid argumenterror.This can be confusing to debug. It would be much more helpful if the tool could detect the lack of kernel support and provide a specific error message.
Example of current error:
Environment