Replies: 2 comments
-
collection.Maps["go_procs"].Put() should write value per CPU, i cant understand why in uprobe the value is unavilable |
Beta Was this translation helpful? Give feedback.
0 replies
-
the reason is i attach tracepoint with loadBpf -> newCollection, while attach uprobe with loadBpfObjects() -> ex.Uprobe(sym.Symbol, objs.Program, nil), maybe two ways conflict in one project. when i use common approach: loadBpf -> newCollection-> attach, it's solved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
a simple map defined in ebpf prog to store golang info:
and updated in go proc:
and the uprobe prog is attached successfully
the same code with same map key can get value in
SEC("tracepoint/syscalls/sys_enter_connect")
but cant inSEC("uprobe/runtime.execute")
。uprobe prog is triggered normallyand if i update the map with a temporary value in uprobe, the temporary value can be read. It seems like the map in uprobe ebpf probe is a new map. how can i get the map value in uprobe?
thanks for help
Beta Was this translation helpful? Give feedback.
All reactions