-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
doc: bpf_get_current_task helper #1547
doc: bpf_get_current_task helper #1547
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to specify what you can get from the task_struct. Also, wasn’t there some issue with field randomization in recent kernel versions?
4.13 has issues and you will need to put the below before your header files:
Other kernel versions should be okay. |
2a69939
to
c37bf4e
Compare
@goldshtn I've added a sentence with a few examples. If you have other more relevant examples, please tell me!
Since the |
At
4.15
for clang, |
I see. I though it was only necessary when the kernel headers and the kernel used differed because I couldn't reproduce with any bcc tool under 4.13. I'll add a note. |
c37bf4e
to
baffe08
Compare
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
Add an entry for
bpf_get_current_task
in the reference guide.