Searched refs:ids (Results 1 – 3 of 3) sorted by relevance
/kernel/trace/ |
D | bpf_trace.c | 1817 u32 *ids, prog_cnt, ids_len; in perf_event_query_prog_array() local 1830 ids = kcalloc(ids_len, sizeof(u32), GFP_USER | __GFP_NOWARN); in perf_event_query_prog_array() 1831 if (!ids) in perf_event_query_prog_array() 1842 ret = bpf_prog_array_copy_info(progs, ids, ids_len, &prog_cnt); in perf_event_query_prog_array() 1846 copy_to_user(uquery->ids, ids, ids_len * sizeof(u32))) in perf_event_query_prog_array() 1849 kfree(ids); in perf_event_query_prog_array()
|
/kernel/bpf/ |
D | core.c | 2047 u32 *ids; in bpf_prog_array_copy_to_user() local 2055 ids = kcalloc(cnt, sizeof(u32), GFP_USER | __GFP_NOWARN); in bpf_prog_array_copy_to_user() 2056 if (!ids) in bpf_prog_array_copy_to_user() 2058 nospc = bpf_prog_array_copy_core(array, ids, cnt); in bpf_prog_array_copy_to_user() 2059 err = copy_to_user(prog_ids, ids, cnt * sizeof(u32)); in bpf_prog_array_copy_to_user() 2060 kfree(ids); in bpf_prog_array_copy_to_user()
|
D | btf.c | 6034 return bsearch(&id, set->ids, set->cnt, sizeof(u32), btf_id_cmp_func) != NULL; in btf_id_set_contains()
|