Home
last modified time | relevance | path

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

/tools/bpf/bpftool/
Dcommon.c360 struct pinned_obj *obj_node = NULL; in build_pinned_obj_table() local
402 obj_node = malloc(sizeof(*obj_node)); in build_pinned_obj_table()
403 if (!obj_node) { in build_pinned_obj_table()
410 memset(obj_node, 0, sizeof(*obj_node)); in build_pinned_obj_table()
411 obj_node->id = pinned_info.id; in build_pinned_obj_table()
412 obj_node->path = strdup(ftse->fts_path); in build_pinned_obj_table()
413 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()