Skip to content

Commit 0188a7e

Browse files
Geliang Tangintel-lab-lkp
authored andcommitted
bpf: Register mptcp tracing kfunc set
Since the kfuncs mptcp_subflow_active() and mptcp_subflow_set_scheduled() are invoked in the mptcp_subflow bpf_iter test in a trace for mptcp_subflow_get_send(), it's necessary to register them into a BPF_PROG_TYPE_TRACING type kfunc set. Note: BTF_KFUNCS_START(bpf_mptcp_sched_kfunc_ids) BTF_ID_FLAGS(func, mptcp_subflow_set_scheduled) BTF_ID_FLAGS(func, mptcp_subflow_active) BTF_KFUNCS_END(bpf_mptcp_sched_kfunc_ids) Signed-off-by: Geliang Tang <[email protected]>
1 parent ef1ac72 commit 0188a7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/mptcp/bpf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ static int __init bpf_mptcp_kfunc_init(void)
301301
int ret;
302302

303303
ret = register_btf_fmodret_id_set(&bpf_mptcp_fmodret_set);
304+
ret = ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_TRACING,
305+
&bpf_mptcp_sched_kfunc_set);
304306
ret = ret ?: register_btf_kfunc_id_set(BPF_PROG_TYPE_STRUCT_OPS,
305307
&bpf_mptcp_sched_kfunc_set);
306308
#ifdef CONFIG_BPF_JIT

0 commit comments

Comments
 (0)