-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add BPF map reuse function #346
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ okcontinue() { okay "$1"; } | |
kern_version() { | ||
_oper=$1; _version=$2; _notfatal=$3; | ||
_given=$(($(echo $_version | sed 's:\.::g'))) | ||
_current=$(($(uname -r | cut -d'.' -f1,2 | sed 's:\.::g'))) | ||
_current=$(($(uname -r | cut -d'.' -f1,2,3 | sed 's:\.::g'))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated this check to make it work with my release There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It seems ok, we need to merge only the first and second field of the numeric version. Could you please recheck this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On #356
(Now with kernel There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmmm, it seems a logic issue. I'm going to take a look at this later. Thanks. |
||
|
||
[[ "$_version" == "" ]] && errexit "no kernel version given" | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fd to be updated is an open/dupped one, not the provided. I also noticed that the map name needs to be updated.
Well, my current work is changing BPFMap to:
https://github.com/aquasecurity/libbpfgo/pull/356/files#diff-5ed7da7003773d8e0a4dca00d4fc08fc5582695eefe22a400db15edfd5aab840R20-R24
As I'm introducing a bunch of changes, I'm going to stop to create conflicts to you 😅, cherry-picking your contribution and doing the required adjustments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this, did not know about the refactor!