diff options
author | Martin KaFai Lau <kafai@fb.com> | 2021-03-29 15:13:57 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-03-29 18:42:43 -0700 |
commit | 7aae231ac93b9d9c45487dcafd844fa756069f3b (patch) | |
tree | f1edf36f86e727776c71a542e6f5a54c13386873 /tools/lib/bpf/linker.c | |
parent | 21cfd2db9f51c0454d44a103ff12398c2236d3a8 (diff) | |
download | linux-7aae231ac93b9d9c45487dcafd844fa756069f3b.tar.bz2 |
bpf: tcp: Limit calling some tcp cc functions to CONFIG_DYNAMIC_FTRACE
pahole currently only generates the btf_id for external function and
ftrace-able function. Some functions in the bpf_tcp_ca_kfunc_ids
are static (e.g. cubictcp_init). Thus, unless CONFIG_DYNAMIC_FTRACE
is set, btf_ids for those functions will not be generated and the
compilation fails during resolve_btfids.
This patch limits those functions to CONFIG_DYNAMIC_FTRACE. I will
address the pahole generation in a followup and then remove the
CONFIG_DYNAMIC_FTRACE limitation.
Fixes: e78aea8b2170 ("bpf: tcp: Put some tcp cong functions in allowlist for bpf-tcp-cc")
Reported-by: Cong Wang <xiyou.wangcong@gmail.com>
Reported-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210329221357.834438-1-kafai@fb.com
Diffstat (limited to 'tools/lib/bpf/linker.c')
0 files changed, 0 insertions, 0 deletions