bpf: extract setup_func_entry() utility function