Skip to content
New issue

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

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

Already on GitHub? # to your account

libbpf-tools: Allow tools to run on old kernels #4546

Closed
wants to merge 1 commit into from

Conversation

michael-chuh
Copy link
Contributor

Add more tools to fallback to use kprobes if kernel lacks support for fentry/fexit,
discussion is on #4231

Fallback to use kprobes if kernel lacks support for fentry/fexit.

Signed-off-by: mickey_zhu <mickey_zhu@realsil.com.cn>
Copy link
Collaborator

@chenhengqi chenhengqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please separate the changes per tool.

Comment on lines +70 to +71
static __always_inline
int trace_done(void *ctx, struct request *rq)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep this in single line. We don't need __always_inline here.


SEC("fexit/__page_cache_alloc")
int BPF_PROG(page_cache_alloc_ret, gfp_t gfp, struct page *ret)
static __always_inline
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@michael-chuh
Copy link
Contributor Author

I have separated it into 3 patches, and remove '__always_inline '
#4549
#4550
#4551

@chenhengqi
Copy link
Collaborator

Close this in favor of new ones.

@chenhengqi chenhengqi closed this Apr 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants