You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to attach three or more hooks in one event,but i don't know how to load prog in user space by golang.
Do I need to call loadBpfObjects and link.xxx once for each hook in main.go? So what's the difference between that and splitting it into multiple events?
How to share the MAP in multi hooks? Is the same MAP used by multi hooks?
Can i attach multi hooks of different types? Such as attach to kprobe and tracepoint in one event.
I found some examples of kernel space, but no examples of user space.
Any help would be appreciated!
By the way, how do I know what the parameters are for each type of hook function? Such as uretprobe
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to attach three or more hooks in one event,but i don't know how to load prog in user space by golang.
loadBpfObjects
andlink.xxx
once for each hook inmain.go
? So what's the difference between that and splitting it into multiple events?MAP
in multi hooks? Is the sameMAP
used by multi hooks?kprobe
andtracepoint
in one event.I found some examples of kernel space, but no examples of user space.
Any help would be appreciated!
By the way, how do I know what the parameters are for each type of hook function? Such as uretprobe
Beta Was this translation helpful? Give feedback.
All reactions