-
Notifications
You must be signed in to change notification settings - Fork 787
feat: more link inspection support #1896
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
base: main
Are you sure you want to change the base?
Conversation
26a871d to
9b0dcdd
Compare
mmat11
left a comment
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.
looks mostly good to me, left a few comments; can this be split in multiple commits?
| if umi.offsets == nil { | ||
| return nil, fmt.Errorf("no offsets available") | ||
| } | ||
| ex, err := OpenExecutable(umi.path) |
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.
hmm I wonder if this is safe to do; should we just return addresses like for kprobeMulti?
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.
I'm not sure, that's why there are the different Offsets and Symbols functions. Offsets returns the raw offsets, and only Symbols tries to resolve them.
Sure, I'll try. Any ideas on how the commits should be structured? E.g. one focused on uprobe, one focused on tracepoint, ...? |
I guess you could split code generation and the different link types in different commits |
9b0dcdd to
d0b8794
Compare
Signed-off-by: Max Altgelt <[email protected]>
Signed-off-by: Max Altgelt <[email protected]>
Signed-off-by: Max Altgelt <[email protected]>
Signed-off-by: Max Altgelt <[email protected]>
The netfilter options / info required / contained protocol family and hook, with little information for the user what values were expected. Add explicit types with constants to clarify what values are supported. Signed-off-by: Max Altgelt <[email protected]>
Signed-off-by: Max Altgelt <[email protected]>
Signed-off-by: Max Altgelt <[email protected]>
Signed-off-by: Max Altgelt <[email protected]>
d0b8794 to
5f0a645
Compare
|
Split is done. |
Add support for more link inspection types, e.g. to query a uprobe's symbol.