netobserv / netobserv-ebpf-agent

Network Observability eBPF Agent
Apache License 2.0
115 stars 29 forks source link

Questions about Flow collections #330

Closed ScmTble closed 2 months ago

ScmTble commented 2 months ago

Hello, I noticed the content about Flow collections docs in docs, but I couldn't find the relevant code in tracer. go. Did I miss anything? thanks

msherif1234 commented 2 months ago

Hi @ScmTble not sure I understand the question or the exact code u are looking for but if u are referring to the code the read the hash tables in userspace https://github.com/netobserv/netobserv-ebpf-agent/blob/main/pkg/ebpf/tracer.go#L497 which is triggered from the eviction logic here https://github.com/netobserv/netobserv-ebpf-agent/blob/main/pkg/flow/tracer_map.go#L104

pls let me know if the above isn't what u are looking for

Thanks!!

ScmTble commented 2 months ago

Hi @ScmTble not sure I understand the question or the exact code u are looking for but if u are referring to the code the read the hash tables in userspace main/pkg/ebpf/tracer.go#L497 which is triggered from the eviction logic here main/pkg/flow/tracer_map.go#L104

pls let me know if the above isn't what u are looking for

Thanks!!

Yes, thank you for your answer. I am a beginner in ebpf and have learned a lot from this project