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

nettrace: disable preserve_access_index in vmlinux.h #75

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Conversation

menglongdong
Copy link
Collaborator

The "preserve_access_index" in vmlinux.h makes all probe read CO-RE, but we need to disable CO-RE in some case. Therefore, disable the global CO-RE by adding "-DBPF_NO_PRESERVE_ACCESS_INDEX".

close #34

The "preserve_access_index" in vmlinux.h makes all probe read CO-RE, but
we need to disable CO-RE in some case. Therefore, disable the global CO-RE
by adding "-DBPF_NO_PRESERVE_ACCESS_INDEX".

Signed-off-by: Menglong Dong <[email protected]>
@menglongdong menglongdong self-assigned this Oct 18, 2023
"_C(pkt, xt.state)" looks better than "_C(&(pkt->xt), state)".

Signed-off-by: Menglong Dong <[email protected]>
@menglongdong menglongdong merged commit c1e7b7b into master Oct 18, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

What's wrong with “ERROR: failed to load kprobe-based eBPF”
1 participant