I would like to filter my ebpf with address in stack,
by example if stack trace contain the address of _do_fork
then write to map.
I seen this https://www.kernel.org/doc/html/latest/bpf/bpf_design_QA.html#q-can-bpf-programs-access-stack-pointer saying that it isn't possible to get adresses. But I also seen this https://www.spinics.net/lists/netdev/msg497159.html "The bpf program is able to see all stack traces, and then can do in-kernel processing or send stack traces to user space through". So I'm confused. The final question is how we can get adresses of stack trace in-kernel with bpf_get_stack, if it is possible?
thanks in advance