Home
last modified time | relevance | path

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

/openbmc/linux/kernel/bpf/
H A Dbtf.c7361 struct btf_module *btf_mod, *tmp; in btf_module_notify() local
7373 btf_mod = kzalloc(sizeof(*btf_mod), GFP_KERNEL); in btf_module_notify()
7374 if (!btf_mod) { in btf_module_notify()
7380 kfree(btf_mod); in btf_module_notify()
7393 kfree(btf_mod); in btf_module_notify()
7399 btf_mod->module = module; in btf_module_notify()
7400 btf_mod->btf = btf; in btf_module_notify()
7401 list_add(&btf_mod->list, &btf_modules); in btf_module_notify()
7427 btf_mod->sysfs_attr = attr; in btf_module_notify()
7433 list_for_each_entry_safe(btf_mod, tmp, &btf_modules, list) { in btf_module_notify()
[all …]
H A Dcore.c2721 struct btf_mod_pair *btf_mod; in __bpf_free_used_btfs() local
2725 btf_mod = &used_btfs[i]; in __bpf_free_used_btfs()
2726 if (btf_mod->module) in __bpf_free_used_btfs()
2727 module_put(btf_mod->module); in __bpf_free_used_btfs()
2728 btf_put(btf_mod->btf); in __bpf_free_used_btfs()
H A Dverifier.c17369 struct btf_mod_pair *btf_mod; in check_pseudo_btf_id() local
17477 btf_mod = &env->used_btfs[env->used_btf_cnt]; in check_pseudo_btf_id()
17478 btf_mod->btf = btf; in check_pseudo_btf_id()
17479 btf_mod->module = NULL; in check_pseudo_btf_id()
17483 btf_mod->module = btf_try_get_module(btf); in check_pseudo_btf_id()
17484 if (!btf_mod->module) { in check_pseudo_btf_id()