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

libbpf-tools: Allow tcppktlat to run on old kernels #4664

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

chenhengqi
Copy link
Collaborator

Currently, tcppktlat can only run on kernel v5.12+ because of the usages of bpf_get_socket_cookie().
This commit gets the tool run on old kernels in a CO-RE way. While at it, also adds tcp_destroy_sock tracepoint. This is necessary since there are cases where the socket does not get the chance to reach the tcp_rcv_space_adjust tracepoint and entries in start map never get removed.

cc @ethercflow

Currently, tcppktlat can only run on kernel v5.12+
because of the usages of bpf_get_socket_cookie().
This commit gets the tool run on old kernels in a CO-RE
way. While at it, also adds tcp_destroy_sock tracepoint.
This is necessary since there are cases where the socket
does not get the chance to reach the tcp_rcv_space_adjust
tracepoint and entries in start map never get removed.

Signed-off-by: Hengqi Chen <[email protected]>
Copy link
Contributor

@ethercflow ethercflow left a comment

Choose a reason for hiding this comment

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

Rest LGTM

@yonghong-song yonghong-song merged commit 4f91c89 into iovisor:master Jul 10, 2023
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.

3 participants