Home
last modified time | relevance | path

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

/tools/bpf/bpftool/
Dcommon.c365 struct pinned_obj *obj_node = NULL; in build_pinned_obj_table() local
407 obj_node = malloc(sizeof(*obj_node)); in build_pinned_obj_table()
408 if (!obj_node) { in build_pinned_obj_table()
415 memset(obj_node, 0, sizeof(*obj_node)); in build_pinned_obj_table()
416 obj_node->id = pinned_info.id; in build_pinned_obj_table()
417 obj_node->path = strdup(ftse->fts_path); in build_pinned_obj_table()
418 hash_add(tab->table, &obj_node->hash, obj_node->id); in build_pinned_obj_table()
Dbtf.c585 struct btf_attach_point *obj_node; in build_btf_type_table() local
659 obj_node = calloc(1, sizeof(*obj_node)); in build_btf_type_table()
660 if (!obj_node) { in build_btf_type_table()
665 obj_node->obj_id = id; in build_btf_type_table()
666 obj_node->btf_id = btf_id; in build_btf_type_table()
667 hash_add(tab->table, &obj_node->hash, obj_node->btf_id); in build_btf_type_table()