Searched refs:kernel_supports (Results 1 – 4 of 4) sorted by relevance
/tools/lib/bpf/ |
D | libbpf.c | 2698 bool has_func_global = kernel_supports(obj, FEAT_BTF_GLOBAL_FUNC); in btf_needs_sanitization() 2699 bool has_datasec = kernel_supports(obj, FEAT_BTF_DATASEC); in btf_needs_sanitization() 2700 bool has_float = kernel_supports(obj, FEAT_BTF_FLOAT); in btf_needs_sanitization() 2701 bool has_func = kernel_supports(obj, FEAT_BTF_FUNC); in btf_needs_sanitization() 2702 bool has_decl_tag = kernel_supports(obj, FEAT_BTF_DECL_TAG); in btf_needs_sanitization() 2703 bool has_type_tag = kernel_supports(obj, FEAT_BTF_TYPE_TAG); in btf_needs_sanitization() 2704 bool has_enum64 = kernel_supports(obj, FEAT_BTF_ENUM64); in btf_needs_sanitization() 2712 bool has_func_global = kernel_supports(obj, FEAT_BTF_GLOBAL_FUNC); in bpf_object__sanitize_btf() 2713 bool has_datasec = kernel_supports(obj, FEAT_BTF_DATASEC); in bpf_object__sanitize_btf() 2714 bool has_float = kernel_supports(obj, FEAT_BTF_FLOAT); in bpf_object__sanitize_btf() [all …]
|
D | bpf.c | 149 if (memlock_bumped || kernel_supports(NULL, FEAT_MEMCG_ACCOUNT)) in bump_rlimit_memlock() 184 if (map_name && kernel_supports(NULL, FEAT_PROG_NAME)) in bpf_map_create() 265 if (prog_name && kernel_supports(NULL, FEAT_PROG_NAME)) in bpf_prog_load()
|
D | libbpf_internal.h | 378 bool kernel_supports(const struct bpf_object *obj, enum kern_feature_id feat_id);
|
D | usdt.c | 280 man->has_bpf_cookie = kernel_supports(obj, FEAT_BPF_COOKIE); in usdt_manager_new() 292 man->has_uprobe_multi = kernel_supports(obj, FEAT_UPROBE_MULTI_LINK); in usdt_manager_new()
|