Skip to content

i can't use it successful #12

Description

@SimpsonGet

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions