Home
last modified time | relevance | path

Searched refs:btf_mod (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/kernel/bpf/
Dbtf.c7862 struct btf_module *btf_mod, *tmp; in btf_module_notify() local
7874 btf_mod = kzalloc(sizeof(*btf_mod), GFP_KERNEL); in btf_module_notify()
7875 if (!btf_mod) { in btf_module_notify()
7882 kfree(btf_mod); in btf_module_notify()
7895 kfree(btf_mod); in btf_module_notify()
7901 btf_mod->module = module; in btf_module_notify()
7902 btf_mod->btf = btf; in btf_module_notify()
7903 list_add(&btf_mod->list, &btf_modules); in btf_module_notify()
7929 btf_mod->sysfs_attr = attr; in btf_module_notify()
7935 list_for_each_entry_safe(btf_mod, tmp, &btf_modules, list) { in btf_module_notify()
[all …]
Dcore.c2762 struct btf_mod_pair *btf_mod; in __bpf_free_used_btfs() local
2766 btf_mod = &used_btfs[i]; in __bpf_free_used_btfs()
2767 if (btf_mod->module) in __bpf_free_used_btfs()
2768 module_put(btf_mod->module); in __bpf_free_used_btfs()
2769 btf_put(btf_mod->btf); in __bpf_free_used_btfs()
Dverifier.c18695 struct btf_mod_pair *btf_mod; in check_pseudo_btf_id() local
18803 btf_mod = &env->used_btfs[env->used_btf_cnt]; in check_pseudo_btf_id()
18804 btf_mod->btf = btf; in check_pseudo_btf_id()
18805 btf_mod->module = NULL; in check_pseudo_btf_id()
18809 btf_mod->module = btf_try_get_module(btf); in check_pseudo_btf_id()
18810 if (!btf_mod->module) { in check_pseudo_btf_id()