Skip to content

perf_event_write_value_at_address function #21

Description

@ali-zohrevand

hi a gain ... :))
in line 164 in perf_event.c we have a while ...
why you choose minimum of (value, PERF_SWEVENT_MAX_FILE)?
and then you value -= PERF_SWEVENT_MAX_FILE every time?
value is the address of commit_creds(prepare_kernel_cred(0)) .right?
so why you Subtract it from PERF_SWEVENT_MAX_FILE?
thanks a lot for helping

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