Home
last modified time | relevance | path

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

/linux-6.1.9/tools/lib/bpf/
Dusdt.bpf.h98 int spec_id; in bpf_usdt_arg_cnt() local
100 spec_id = __bpf_usdt_spec_id(ctx); in bpf_usdt_arg_cnt()
101 if (spec_id < 0) in bpf_usdt_arg_cnt()
104 spec = bpf_map_lookup_elem(&__bpf_usdt_specs, &spec_id); in bpf_usdt_arg_cnt()
121 int err, spec_id; in bpf_usdt_arg() local
125 spec_id = __bpf_usdt_spec_id(ctx); in bpf_usdt_arg()
126 if (spec_id < 0) in bpf_usdt_arg()
129 spec = bpf_map_lookup_elem(&__bpf_usdt_specs, &spec_id); in bpf_usdt_arg()
199 int spec_id; in bpf_usdt_cookie() local
201 spec_id = __bpf_usdt_spec_id(ctx); in bpf_usdt_cookie()
[all …]
Dusdt.c893 int *spec_id, bool *is_new) in allocate_spec_id() argument
900 *spec_id = (long)tmp; in allocate_spec_id()
915 *spec_id = man->free_spec_ids[man->free_spec_cnt - 1]; in allocate_spec_id()
918 err = hashmap__add(specs_hash, target->spec_str, (void *)(long)*spec_id); in allocate_spec_id()
928 *spec_id = man->next_free_spec_id; in allocate_spec_id()
931 err = hashmap__add(specs_hash, target->spec_str, (void *)(long)*spec_id); in allocate_spec_id()
939 link->spec_ids[link->spec_cnt] = *spec_id; in allocate_spec_id()
1022 int spec_id; in usdt_manager_attach_usdt() local
1032 err = allocate_spec_id(man, specs_hash, link, target, &spec_id, &is_new); in usdt_manager_attach_usdt()
1036 if (is_new && bpf_map_update_elem(spec_map_fd, &spec_id, &target->spec, BPF_ANY)) { in usdt_manager_attach_usdt()
[all …]