Home
last modified time | relevance | path

Searched refs:has_datasec (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.c2368 bool has_datasec = kernel_supports(FEAT_BTF_DATASEC); in btf_needs_sanitization() local
2371 return !has_func || !has_datasec || !has_func_global; in btf_needs_sanitization()
2377 bool has_datasec = kernel_supports(FEAT_BTF_DATASEC); in bpf_object__sanitize_btf() local
2385 if (!has_datasec && btf_is_var(t)) { in bpf_object__sanitize_btf()
2395 } else if (!has_datasec && btf_is_datasec(t)) { in bpf_object__sanitize_btf()
/kernel/linux/linux-6.6/tools/lib/bpf/
Dlibbpf.c2699 bool has_datasec = kernel_supports(obj, FEAT_BTF_DATASEC); in btf_needs_sanitization() local
2706 return !has_func || !has_datasec || !has_func_global || !has_float || in btf_needs_sanitization()
2713 bool has_datasec = kernel_supports(obj, FEAT_BTF_DATASEC); in bpf_object__sanitize_btf() local
2726 if ((!has_datasec && btf_is_var(t)) || (!has_decl_tag && btf_is_decl_tag(t))) { in bpf_object__sanitize_btf()
2736 } else if (!has_datasec && btf_is_datasec(t)) { in bpf_object__sanitize_btf()