Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf_event_write_value_at_address function #21

Open
ali-zohrevand opened this issue Apr 29, 2014 · 1 comment
Open

perf_event_write_value_at_address function #21

ali-zohrevand opened this issue Apr 29, 2014 · 1 comment

Comments

@ali-zohrevand
Copy link

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

@ali-zohrevand
Copy link
Author

please exuse me to write my question in wrong place ...
sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant