Home
last modified time | relevance | path

Searched refs:aux (Results 1 – 13 of 13) sorted by relevance

/kernel/bpf/
Dcore.c80 struct bpf_prog_aux *aux; in bpf_prog_alloc_no_stats() local
88 aux = kzalloc(sizeof(*aux), GFP_KERNEL | gfp_extra_flags); in bpf_prog_alloc_no_stats()
89 if (aux == NULL) { in bpf_prog_alloc_no_stats()
95 fp->aux = aux; in bpf_prog_alloc_no_stats()
96 fp->aux->prog = fp; in bpf_prog_alloc_no_stats()
99 INIT_LIST_HEAD_RCU(&fp->aux->ksym_lnode); in bpf_prog_alloc_no_stats()
114 prog->aux->stats = alloc_percpu_gfp(struct bpf_prog_stats, gfp_flags); in bpf_prog_alloc()
115 if (!prog->aux->stats) { in bpf_prog_alloc()
116 kfree(prog->aux); in bpf_prog_alloc()
124 pstats = per_cpu_ptr(prog->aux->stats, cpu); in bpf_prog_alloc()
[all …]
Dsyscall.c1213 if (!bpf_prog_is_dev_bound(prog->aux)) in find_prog_type()
1214 prog->aux->ops = ops; in find_prog_type()
1216 prog->aux->ops = &bpf_offload_prog_ops; in find_prog_type()
1222 static void free_used_maps(struct bpf_prog_aux *aux) in free_used_maps() argument
1228 if (!aux->cgroup_storage[stype]) in free_used_maps()
1230 bpf_cgroup_storage_release(aux->prog, in free_used_maps()
1231 aux->cgroup_storage[stype]); in free_used_maps()
1234 for (i = 0; i < aux->used_map_cnt; i++) in free_used_maps()
1235 bpf_map_put(aux->used_maps[i]); in free_used_maps()
1237 kfree(aux->used_maps); in free_used_maps()
[all …]
Doffload.c112 prog->aux->offload = offload; in bpf_prog_offload_init()
133 offload = prog->aux->offload; in bpf_prog_offload_verifier_prep()
150 offload = env->prog->aux->offload; in bpf_prog_offload_verify_insn()
165 offload = env->prog->aux->offload; in bpf_prog_offload_finalize()
186 offload = env->prog->aux->offload; in bpf_prog_offload_replace_insn()
203 offload = env->prog->aux->offload; in bpf_prog_offload_remove_insns()
214 struct bpf_prog_offload *offload = prog->aux->offload; in __bpf_prog_offload_destroy()
224 prog->aux->offload = NULL; in __bpf_prog_offload_destroy()
230 if (prog->aux->offload) in bpf_prog_offload_destroy()
241 offload = prog->aux->offload; in bpf_prog_offload_translate()
[all …]
Dverifier.c179 static bool bpf_map_ptr_poisoned(const struct bpf_insn_aux_data *aux) in bpf_map_ptr_poisoned() argument
181 return BPF_MAP_PTR(aux->map_state) == BPF_MAP_PTR_POISON; in bpf_map_ptr_poisoned()
184 static bool bpf_map_ptr_unpriv(const struct bpf_insn_aux_data *aux) in bpf_map_ptr_unpriv() argument
186 return aux->map_state & BPF_MAP_PTR_UNPRIV; in bpf_map_ptr_unpriv()
189 static void bpf_map_ptr_store(struct bpf_insn_aux_data *aux, in bpf_map_ptr_store() argument
193 unpriv |= bpf_map_ptr_unpriv(aux); in bpf_map_ptr_store()
194 aux->map_state = (unsigned long)map | in bpf_map_ptr_store()
220 nr_linfo = prog->aux->nr_linfo; in find_linfo()
225 linfo = prog->aux->linfo; in find_linfo()
313 ltrim(btf_name_by_offset(env->prog->aux->btf, in verbose_linfo()
[all …]
Dlocal_storage.c433 if (prog->aux->cgroup_storage[stype] && in bpf_cgroup_storage_assign()
434 prog->aux->cgroup_storage[stype] != _map) in bpf_cgroup_storage_assign()
438 prog->aux->cgroup_storage[stype] = _map; in bpf_cgroup_storage_assign()
453 WARN_ON(prog->aux->cgroup_storage[stype] != _map); in bpf_cgroup_storage_release()
455 prog->aux->cgroup_storage[stype] = NULL; in bpf_cgroup_storage_release()
486 map = prog->aux->cgroup_storage[stype]; in bpf_cgroup_storage_alloc()
Darraymap.c592 return ((struct bpf_prog *)ptr)->aux->id; in prog_fd_array_sys_lookup_elem()
Dcgroup.c536 id = pl->prog->aux->id; in __cgroup_bpf_query()
/kernel/
Dauditsc.c880 struct audit_aux_data *aux; in audit_free_aux() local
882 while ((aux = context->aux)) { in audit_free_aux()
883 context->aux = aux->next; in audit_free_aux()
884 kfree(aux); in audit_free_aux()
886 while ((aux = context->aux_pids)) { in audit_free_aux()
887 context->aux_pids = aux->next; in audit_free_aux()
888 kfree(aux); in audit_free_aux()
1449 struct audit_aux_data *aux; in audit_log_exit() local
1478 for (aux = context->aux; aux; aux = aux->next) { in audit_log_exit()
1480 ab = audit_log_start(context, GFP_KERNEL, aux->type); in audit_log_exit()
[all …]
Daudit.h122 struct audit_aux_data *aux; member
/kernel/power/
Dwakelock.c105 struct wakelock *wl, *aux; in __wakelocks_gc() local
111 list_for_each_entry_safe_reverse(wl, aux, &wakelocks_lru_list, lru) { in __wakelocks_gc()
Dsnapshot.c572 struct mem_extent *ext, *aux; in free_mem_extents() local
574 list_for_each_entry_safe(ext, aux, list, hook) { in free_mem_extents()
595 struct mem_extent *ext, *cur, *aux; in create_mem_extents() local
627 list_for_each_entry_safe_continue(cur, aux, list, hook) { in create_mem_extents()
/kernel/trace/
Dbpf_trace.c1392 if (prog->aux->max_ctx_offset > btp->num_args * sizeof(u64)) in __bpf_probe_register()
1395 if (prog->aux->max_tp_access > btp->writable_size) in __bpf_probe_register()
1427 *prog_id = prog->aux->id; in bpf_get_perf_event_info()
/kernel/events/
Dcore.c8029 if (prog->aux->func_cnt == 0) { in perf_event_bpf_emit_ksymbols()
8035 for (i = 0; i < prog->aux->func_cnt; i++) { in perf_event_bpf_emit_ksymbols()
8036 struct bpf_prog *subprog = prog->aux->func[i]; in perf_event_bpf_emit_ksymbols()
8079 .id = prog->aux->id, in perf_event_bpf_event()
9091 if (prog->aux->max_ctx_offset > off) { in perf_event_set_bpf_prog()