Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 3 of 3) sorted by relevance

/kernel/trace/
Dbpf_trace.c2203 u32 *ids, prog_cnt, ids_len; in perf_event_query_prog_array() local
2216 ids = kcalloc(ids_len, sizeof(u32), GFP_USER | __GFP_NOWARN); in perf_event_query_prog_array()
2217 if (!ids) in perf_event_query_prog_array()
2228 ret = bpf_prog_array_copy_info(progs, ids, ids_len, &prog_cnt); in perf_event_query_prog_array()
2232 copy_to_user(uquery->ids, ids, ids_len * sizeof(u32))) in perf_event_query_prog_array()
2235 kfree(ids); in perf_event_query_prog_array()
/kernel/bpf/
Dcore.c2315 u32 *ids; in bpf_prog_array_copy_to_user() local
2323 ids = kcalloc(cnt, sizeof(u32), GFP_USER | __GFP_NOWARN); in bpf_prog_array_copy_to_user()
2324 if (!ids) in bpf_prog_array_copy_to_user()
2326 nospc = bpf_prog_array_copy_core(array, ids, cnt); in bpf_prog_array_copy_to_user()
2327 err = copy_to_user(prog_ids, ids, cnt * sizeof(u32)); in bpf_prog_array_copy_to_user()
2328 kfree(ids); in bpf_prog_array_copy_to_user()
Dbtf.c7071 return bsearch(&id, set->ids, set->cnt, sizeof(u32), btf_id_cmp_func) != NULL; in btf_id_set_contains()