diff options
author | Jiri Olsa <[email protected]> | 2022-08-02 18:33:24 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-08-08 15:30:45 +0200 |
commit | f1d41f7720c89705c20e4335a807b1c518c2e7be (patch) | |
tree | 7adc30bcf845776cc24bec14389a369b38628322 /scripts/gdb/linux/utils.py | |
parent | 62d468e5e10012e8b67d066ba7bac0a8afdc3cee (diff) |
mptcp, btf: Add struct mptcp_sock definition when CONFIG_MPTCP is disabled
The btf_sock_ids array needs struct mptcp_sock BTF ID for the
bpf_skc_to_mptcp_sock helper.
When CONFIG_MPTCP is disabled, the 'struct mptcp_sock' is not
defined and resolve_btfids will complain with:
[...]
BTFIDS vmlinux
WARN: resolve_btfids: unresolved symbol mptcp_sock
[...]
Add an empty definition for struct mptcp_sock when CONFIG_MPTCP
is disabled.
Fixes: 3bc253c2e652 ("bpf: Add bpf_skc_to_mptcp_sock_proto")
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Mat Martineau <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions