-
Notifications
You must be signed in to change notification settings - Fork 89
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
How to get the value of go arguments interface{}
in bpf?
#1209
Comments
Does #1176 help? |
@damemi The difficulty is how can I get the type of the |
@MrAlias Can you give some guidance about obtaining the Or do I need to first obtain the address of the data in kernel mode, then send it( |
@minimAluminiumalism I am not sure how to achieve this. You will need to parse the This is something that has blocked prior tasks and caused us to search alternate solutions. For what its worth, https://cmc.gitbook.io/go-internals/chapter-ii-interfaces provides a good overview of how the runtime package produces assembly code that will do the thing you need to do. Hopefully it is a decent jumping off point. Good luck. |
I have initially resolved this problem (how to obtain the actual value of a variable of type |
I'm trying to a new instrument probe for a package, the target function attached the probe is:
I successfully obtained the arg
key
with following code:But I I encountered difficulties in obtaining another arg
value
which isinterface{}
type. I searched through all the code in your project but not found any related functions like the above function. Could you provide some guidance?The text was updated successfully, but these errors were encountered: