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

rewrote the bpf example #1877

Merged
merged 1 commit into from
May 4, 2023
Merged

rewrote the bpf example #1877

merged 1 commit into from
May 4, 2023

Conversation

yihuaf
Copy link
Collaborator

@yihuaf yihuaf commented May 3, 2023

Apparently, the bpf example in the libcgroups was never compiled as part of the normal routine. Therefore, it is completely outdated and requires an overhaul.

Question: I rewrote the code, but we are missing the context of this example. @Furisto @utam0k Do you guys recall the context around this snippets of code? We should document this in the libcgroups README.

Fix #1499

@yihuaf yihuaf requested review from utam0k, Furisto and a team May 3, 2023 19:40
@codecov-commenter
Copy link

Codecov Report

Merging #1877 (d549440) into main (ae408ad) will increase coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1877      +/-   ##
==========================================
+ Coverage   68.16%   68.17%   +0.01%     
==========================================
  Files         122      122              
  Lines       14011    14011              
==========================================
+ Hits         9550     9552       +2     
+ Misses       4461     4459       -2     

@utam0k
Copy link
Member

utam0k commented May 3, 2023

Hmm... Sorry, but I don't remember. The cgroup v2 devices are special, and we wanted to test that. Either way, I think it's time to take a proper look at cgroup v2 devices.

@yihuaf yihuaf merged commit 5f31428 into youki-dev:main May 4, 2023
@yihuaf yihuaf deleted the yihuaf/1499 branch May 15, 2023 03:15
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.

Fix libcgroups/examples/bpf.rs
3 participants