Lines Matching refs:spec_id
904 int *spec_id, bool *is_new) in allocate_spec_id() argument
912 *spec_id = tmp; in allocate_spec_id()
927 *spec_id = man->free_spec_ids[man->free_spec_cnt - 1]; in allocate_spec_id()
930 err = hashmap__add(specs_hash, target->spec_str, *spec_id); in allocate_spec_id()
940 *spec_id = man->next_free_spec_id; in allocate_spec_id()
943 err = hashmap__add(specs_hash, target->spec_str, *spec_id); in allocate_spec_id()
951 link->spec_ids[link->spec_cnt] = *spec_id; in allocate_spec_id()
1036 int spec_id; in usdt_manager_attach_usdt() local
1046 err = allocate_spec_id(man, specs_hash, link, target, &spec_id, &is_new); in usdt_manager_attach_usdt()
1050 if (is_new && bpf_map_update_elem(spec_map_fd, &spec_id, &target->spec, BPF_ANY)) { in usdt_manager_attach_usdt()
1053 spec_id, usdt_provider, usdt_name, path, errstr(err)); in usdt_manager_attach_usdt()
1057 bpf_map_update_elem(ip_map_fd, &target->abs_ip, &spec_id, BPF_NOEXIST)) { in usdt_manager_attach_usdt()
1061 spec_id, usdt_provider, usdt_name, path); in usdt_manager_attach_usdt()
1064 target->abs_ip, spec_id, usdt_provider, usdt_name, in usdt_manager_attach_usdt()
1073 cookies[i] = spec_id; in usdt_manager_attach_usdt()
1076 opts.bpf_cookie = man->has_bpf_cookie ? spec_id : 0; in usdt_manager_attach_usdt()