Skip to content

Conversation

@gmichelo
Copy link
Contributor

The example uses sockops interface to:

  1. Track passive and active established TCP connections.
  2. Extract sRTT value every time TCP socket recalculates it.
  3. Log 4-tuple and RTT in user space.

Note

Fresh PR from: #760

The example uses sockops interface to:
1. Track passive and active established TCP connections.
2. Extract sRTT value every time TCP socket recalculates it.
3. Log 4-tuple and RTT in user space.
Copy link
Collaborator

@lmb lmb left a comment

Choose a reason for hiding this comment

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

Very nice, thanks!

@lmb lmb merged commit 63a1b9e into cilium:master Aug 30, 2022
}

// Find the path to a cgroup enabled to version 2
cgroupPath, err := findCgroupPath()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Follow up question: does this even work with v1 cgroups? If not findCgroupPath can be simplified I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I won't, sockops only work with cgroupv2.

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.

2 participants