Home
last modified time | relevance | path

Searched refs:env (Results 1 – 4 of 4) sorted by relevance

/kernel/bpf/
Dverifier.c191 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx);
192 static int release_reference(struct bpf_verifier_env *env, int ref_obj_id);
274 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument
280 prog = env->prog; in find_linfo()
335 __printf(2, 3) void bpf_verifier_log_write(struct bpf_verifier_env *env, in bpf_verifier_log_write() argument
340 if (!bpf_verifier_log_needed(&env->log)) in bpf_verifier_log_write()
344 bpf_verifier_vlog(&env->log, fmt, args); in bpf_verifier_log_write()
351 struct bpf_verifier_env *env = private_data; in verbose() local
354 if (!bpf_verifier_log_needed(&env->log)) in verbose()
358 bpf_verifier_vlog(&env->log, fmt, args); in verbose()
[all …]
Dbtf.c407 s32 (*check_meta)(struct btf_verifier_env *env,
410 int (*resolve)(struct btf_verifier_env *env,
412 int (*check_member)(struct btf_verifier_env *env,
416 int (*check_kflag_member)(struct btf_verifier_env *env,
420 void (*log_details)(struct btf_verifier_env *env,
430 static int btf_resolve(struct btf_verifier_env *env,
433 static int btf_func_check(struct btf_verifier_env *env,
1377 __printf(2, 3) static void btf_verifier_log(struct btf_verifier_env *env, in btf_verifier_log() argument
1380 struct bpf_verifier_log *log = &env->log; in btf_verifier_log()
1391 __printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, in __btf_verifier_log_type() argument
[all …]
Doffload.c143 int bpf_prog_offload_verify_insn(struct bpf_verifier_env *env, in bpf_prog_offload_verify_insn() argument
150 offload = env->prog->aux->offload; in bpf_prog_offload_verify_insn()
152 ret = offload->offdev->ops->insn_hook(env, insn_idx, in bpf_prog_offload_verify_insn()
159 int bpf_prog_offload_finalize(struct bpf_verifier_env *env) in bpf_prog_offload_finalize() argument
165 offload = env->prog->aux->offload; in bpf_prog_offload_finalize()
168 ret = offload->offdev->ops->finalize(env); in bpf_prog_offload_finalize()
178 bpf_prog_offload_replace_insn(struct bpf_verifier_env *env, u32 off, in bpf_prog_offload_replace_insn() argument
186 offload = env->prog->aux->offload; in bpf_prog_offload_replace_insn()
190 ret = ops->replace_insn(env, off, insn); in bpf_prog_offload_replace_insn()
197 bpf_prog_offload_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) in bpf_prog_offload_remove_insns() argument
[all …]
/kernel/sched/
Dfair.c1788 static void update_numa_stats(struct task_numa_env *env, in update_numa_stats() argument
1809 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) in update_numa_stats()
1822 ns->node_type = numa_classify(env->imbalance_pct, ns); in update_numa_stats()
1828 static void task_numa_assign(struct task_numa_env *env, in task_numa_assign() argument
1831 struct rq *rq = cpu_rq(env->dst_cpu); in task_numa_assign()
1834 if (env->best_cpu != env->dst_cpu && xchg(&rq->numa_migrate_on, 1)) { in task_numa_assign()
1836 int start = env->dst_cpu; in task_numa_assign()
1839 for_each_cpu_wrap(cpu, cpumask_of_node(env->dst_nid), start) { in task_numa_assign()
1840 if (cpu == env->best_cpu || !idle_cpu(cpu) || in task_numa_assign()
1841 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) { in task_numa_assign()
[all …]