| /kernel/linux/linux-6.6/tools/perf/util/ |
| D | env.c | 4 #include "env.h" 23 bool perf_env__insert_bpf_prog_info(struct perf_env *env, in perf_env__insert_bpf_prog_info() argument 28 down_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 29 ret = __perf_env__insert_bpf_prog_info(env, info_node); in perf_env__insert_bpf_prog_info() 30 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 35 bool __perf_env__insert_bpf_prog_info(struct perf_env *env, struct bpf_prog_info_node *info_node) in __perf_env__insert_bpf_prog_info() argument 42 p = &env->bpf_progs.infos.rb_node; in __perf_env__insert_bpf_prog_info() 58 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in __perf_env__insert_bpf_prog_info() 59 env->bpf_progs.infos_cnt++; in __perf_env__insert_bpf_prog_info() 63 struct bpf_prog_info_node *perf_env__find_bpf_prog_info(struct perf_env *env, in perf_env__find_bpf_prog_info() argument [all …]
|
| D | env.h | 146 void perf_env__exit(struct perf_env *env); 148 int perf_env__kernel_is_64_bit(struct perf_env *env); 150 int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]); 152 int perf_env__read_cpuid(struct perf_env *env); 153 int perf_env__read_pmu_mappings(struct perf_env *env); 154 int perf_env__nr_pmu_mappings(struct perf_env *env); 155 const char *perf_env__pmu_mappings(struct perf_env *env); 157 int perf_env__read_cpu_topology_map(struct perf_env *env); 161 const char *perf_env__arch(struct perf_env *env); 162 const char *perf_env__cpuid(struct perf_env *env); [all …]
|
| /kernel/linux/linux-5.10/tools/perf/util/ |
| D | env.c | 4 #include "env.h" 18 void perf_env__insert_bpf_prog_info(struct perf_env *env, in perf_env__insert_bpf_prog_info() argument 21 down_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 22 __perf_env__insert_bpf_prog_info(env, info_node); in perf_env__insert_bpf_prog_info() 23 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 26 void __perf_env__insert_bpf_prog_info(struct perf_env *env, struct bpf_prog_info_node *info_node) in __perf_env__insert_bpf_prog_info() argument 33 p = &env->bpf_progs.infos.rb_node; in __perf_env__insert_bpf_prog_info() 49 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in __perf_env__insert_bpf_prog_info() 50 env->bpf_progs.infos_cnt++; in __perf_env__insert_bpf_prog_info() 53 struct bpf_prog_info_node *perf_env__find_bpf_prog_info(struct perf_env *env, in perf_env__find_bpf_prog_info() argument [all …]
|
| D | env.h | 128 void perf_env__exit(struct perf_env *env); 130 int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]); 132 int perf_env__read_cpuid(struct perf_env *env); 133 int perf_env__read_cpu_topology_map(struct perf_env *env); 137 const char *perf_env__arch(struct perf_env *env); 138 const char *perf_env__raw_arch(struct perf_env *env); 139 int perf_env__nr_cpus_avail(struct perf_env *env); 141 void perf_env__init(struct perf_env *env); 142 void __perf_env__insert_bpf_prog_info(struct perf_env *env, 144 void perf_env__insert_bpf_prog_info(struct perf_env *env, [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | envelope-detector.c | 80 static int envelope_detector_comp_latch(struct envelope *env) in envelope_detector_comp_latch() argument 84 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 85 comp = env->comp; in envelope_detector_comp_latch() 86 env->comp = 0; in envelope_detector_comp_latch() 87 spin_unlock_irq(&env->comp_lock); in envelope_detector_comp_latch() 99 enable_irq(env->comp_irq); in envelope_detector_comp_latch() 102 synchronize_irq(env->comp_irq); in envelope_detector_comp_latch() 105 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 106 comp = env->comp; in envelope_detector_comp_latch() 107 env->comp = 0; in envelope_detector_comp_latch() [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/adc/ |
| D | envelope-detector.c | 79 static int envelope_detector_comp_latch(struct envelope *env) in envelope_detector_comp_latch() argument 83 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 84 comp = env->comp; in envelope_detector_comp_latch() 85 env->comp = 0; in envelope_detector_comp_latch() 86 spin_unlock_irq(&env->comp_lock); in envelope_detector_comp_latch() 98 enable_irq(env->comp_irq); in envelope_detector_comp_latch() 101 synchronize_irq(env->comp_irq); in envelope_detector_comp_latch() 104 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 105 comp = env->comp; in envelope_detector_comp_latch() 106 env->comp = 0; in envelope_detector_comp_latch() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
| D | test_progs.c | 19 struct test_env env = {}; variable 74 if (stdout == env.stdout) in dump_test_log() 77 fflush(stdout); /* exports env.log_buf & env.log_cnt */ in dump_test_log() 79 if (env.verbosity > VERBOSE_NONE || test->force_log || failed) { in dump_test_log() 80 if (env.log_cnt) { in dump_test_log() 81 env.log_buf[env.log_cnt] = '\0'; in dump_test_log() 82 fprintf(env.stdout, "%s", env.log_buf); in dump_test_log() 83 if (env.log_buf[env.log_cnt - 1] != '\n') in dump_test_log() 84 fprintf(env.stdout, "\n"); in dump_test_log() 93 if (env.test->skip_cnt) { in skip_account() [all …]
|
| D | bench.c | 16 struct env env = { variable 27 if (level == LIBBPF_DEBUG && !env.verbose) in libbpf_print_fn() 59 hits_per_prod = hits_per_sec / env.producer_cnt; in hits_drops_report_progress() 93 hits_mean, hits_stddev, hits_mean / env.producer_cnt); in hits_drops_report_final() 146 env.verbose = true; in parse_arg() 149 env.list = true; in parse_arg() 152 env.duration_sec = strtol(arg, NULL, 10); in parse_arg() 153 if (env.duration_sec <= 0) { in parse_arg() 159 env.warmup_sec = strtol(arg, NULL, 10); in parse_arg() 160 if (env.warmup_sec <= 0) { in parse_arg() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
| D | test_progs.c | 38 return env.verbosity > VERBOSE_NONE; in verbose() 44 if (verbose() && env.worker_id == -1) { in stdio_hijack_init() 54 stdout = env.stdout; in stdio_hijack_init() 59 if (env.subtest_state) in stdio_hijack_init() 60 env.subtest_state->stdout = stdout; in stdio_hijack_init() 62 env.test_state->stdout = stdout; in stdio_hijack_init() 71 if (verbose() && env.worker_id == -1) { in stdio_hijack() 76 env.stdout = stdout; in stdio_hijack() 77 env.stderr = stderr; in stdio_hijack() 86 if (verbose() && env.worker_id == -1) { in stdio_restore_cleanup() [all …]
|
| D | veristat.c | 138 static struct env { struct 176 } env; argument 180 if (!env.verbose) in libbpf_print_fn() 182 if (level == LIBBPF_DEBUG && !env.debug) in libbpf_print_fn() 239 env.show_version = true; in parse_arg() 242 env.verbose = true; in parse_arg() 245 env.debug = true; in parse_arg() 246 env.verbose = true; in parse_arg() 249 env.quiet = true; in parse_arg() 252 err = parse_stats(arg, &env.output_spec); in parse_arg() [all …]
|
| D | xdp_features.c | 26 static struct env { struct 38 } env; argument 47 if (level == LIBBPF_DEBUG && !env.verbosity) in libbpf_print_fn() 90 env.feature.action = XDP_PASS; in get_xdp_feature() 91 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature() 93 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature() 94 env.feature.action = XDP_DROP; in get_xdp_feature() 96 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature() 97 env.feature.action = XDP_ABORTED; in get_xdp_feature() 99 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature() [all …]
|
| D | bench.c | 16 struct env env = { variable 28 if (level == LIBBPF_DEBUG && !env.verbose) in libbpf_print_fn() 74 hits_per_prod = hits_per_sec / env.producer_cnt; in hits_drops_report_progress() 152 hits_mean, hits_stddev, hits_mean / env.producer_cnt); in hits_drops_report_final() 164 hits_per_prod = hits_per_sec / env.producer_cnt; in ops_report_progress() 188 hits_mean, hits_stddev, hits_mean / env.producer_cnt); in ops_report_final() 189 printf("latency %8.3lf ns/op\n", 1000.0 / hits_mean * env.producer_cnt); in ops_report_final() 306 env.verbose = true; in parse_arg() 309 env.list = true; in parse_arg() 312 env.duration_sec = strtol(arg, NULL, 10); in parse_arg() [all …]
|
| /kernel/linux/linux-6.6/kernel/bpf/ |
| D | verifier.c | 194 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx); 195 static int release_reference(struct bpf_verifier_env *env, int ref_obj_id); 196 static void invalidate_non_owning_refs(struct bpf_verifier_env *env); 197 static bool in_rbtree_lock_required_cb(struct bpf_verifier_env *env); 198 static int ref_set_non_owning(struct bpf_verifier_env *env, 200 static void specialize_kfunc(struct bpf_verifier_env *env, 341 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument 347 prog = env->prog; in find_linfo() 363 struct bpf_verifier_env *env = private_data; in verbose() local 366 if (!bpf_verifier_log_needed(&env->log)) in verbose() [all …]
|
| D | btf.c | 433 s32 (*check_meta)(struct btf_verifier_env *env, 436 int (*resolve)(struct btf_verifier_env *env, 438 int (*check_member)(struct btf_verifier_env *env, 442 int (*check_kflag_member)(struct btf_verifier_env *env, 446 void (*log_details)(struct btf_verifier_env *env, 456 static int btf_resolve(struct btf_verifier_env *env, 459 static int btf_func_check(struct btf_verifier_env *env, 1394 __printf(2, 3) static void btf_verifier_log(struct btf_verifier_env *env, in btf_verifier_log() argument 1397 struct bpf_verifier_log *log = &env->log; in btf_verifier_log() 1408 __printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, in __btf_verifier_log_type() argument [all …]
|
| /kernel/linux/linux-5.10/kernel/bpf/ |
| D | verifier.c | 250 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument 256 prog = env->prog; in find_linfo() 309 __printf(2, 3) void bpf_verifier_log_write(struct bpf_verifier_env *env, in bpf_verifier_log_write() argument 314 if (!bpf_verifier_log_needed(&env->log)) in bpf_verifier_log_write() 318 bpf_verifier_vlog(&env->log, fmt, args); in bpf_verifier_log_write() 325 struct bpf_verifier_env *env = private_data; in verbose() local 328 if (!bpf_verifier_log_needed(&env->log)) in verbose() 332 bpf_verifier_vlog(&env->log, fmt, args); in verbose() 357 __printf(3, 4) static void verbose_linfo(struct bpf_verifier_env *env, in verbose_linfo() argument 363 if (!bpf_verifier_log_needed(&env->log)) in verbose_linfo() [all …]
|
| D | btf.c | 368 s32 (*check_meta)(struct btf_verifier_env *env, 371 int (*resolve)(struct btf_verifier_env *env, 373 int (*check_member)(struct btf_verifier_env *env, 377 int (*check_kflag_member)(struct btf_verifier_env *env, 381 void (*log_details)(struct btf_verifier_env *env, 391 static int btf_resolve(struct btf_verifier_env *env, 1230 __printf(2, 3) static void btf_verifier_log(struct btf_verifier_env *env, in btf_verifier_log() argument 1233 struct bpf_verifier_log *log = &env->log; in btf_verifier_log() 1244 __printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, in __btf_verifier_log_type() argument 1249 struct bpf_verifier_log *log = &env->log; in __btf_verifier_log_type() [all …]
|
| /kernel/linux/linux-6.6/lib/ |
| D | kobject_uevent.c | 117 struct kobj_uevent_env *env = NULL; in kobject_action_args() local 128 env = kzalloc(sizeof(*env), GFP_KERNEL); in kobject_action_args() 129 if (!env) in kobject_action_args() 134 add_uevent_var(env, "SYNTH_UUID=%.*s", UUID_STRING_LEN, buf)) in kobject_action_args() 168 if (add_uevent_var(env, "SYNTH_ARG_%.*s=%.*s", in kobject_action_args() 176 kfree(env); in kobject_action_args() 178 *ret_env = env; in kobject_action_args() 197 struct kobj_uevent_env *env; in kobject_synth_uevent() local 213 count - (action_args - buf), &env); in kobject_synth_uevent() 222 r = kobject_uevent_env(kobj, action, env->envp); in kobject_synth_uevent() [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | kobject_uevent.c | 117 struct kobj_uevent_env *env = NULL; in kobject_action_args() local 128 env = kzalloc(sizeof(*env), GFP_KERNEL); in kobject_action_args() 129 if (!env) in kobject_action_args() 134 add_uevent_var(env, "SYNTH_UUID=%.*s", UUID_STRING_LEN, buf)) in kobject_action_args() 168 if (add_uevent_var(env, "SYNTH_ARG_%.*s=%.*s", in kobject_action_args() 176 kfree(env); in kobject_action_args() 178 *ret_env = env; in kobject_action_args() 197 struct kobj_uevent_env *env; in kobject_synth_uevent() local 213 count - (action_args - buf), &env); in kobject_synth_uevent() 222 r = kobject_uevent_env(kobj, action, env->envp); in kobject_synth_uevent() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/bpf/ |
| D | verifier.c | 16 #define pr_vlog(env, fmt, ...) \ argument 17 bpf_verifier_log_write(env, "[nfp] " fmt, ##__VA_ARGS__) 83 static bool nfp_bpf_map_update_value_ok(struct bpf_verifier_env *env) in nfp_bpf_map_update_value_ok() argument 85 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1; in nfp_bpf_map_update_value_ok() 86 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_map_update_value_ok() 92 state = env->cur_state->frame[reg3->frameno]; in nfp_bpf_map_update_value_ok() 113 …pr_vlog(env, "value at offset %d/%d may be non-zero, bpf_map_update_elem() is required to initiali… in nfp_bpf_map_update_value_ok() 124 nfp_bpf_stack_arg_ok(const char *fname, struct bpf_verifier_env *env, in nfp_bpf_stack_arg_ok() argument 131 pr_vlog(env, "%s: unsupported ptr type %d\n", in nfp_bpf_stack_arg_ok() 136 pr_vlog(env, "%s: variable pointer\n", fname); in nfp_bpf_stack_arg_ok() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/ |
| D | verifier.c | 16 #define pr_vlog(env, fmt, ...) \ argument 17 bpf_verifier_log_write(env, "[nfp] " fmt, ##__VA_ARGS__) 83 static bool nfp_bpf_map_update_value_ok(struct bpf_verifier_env *env) in nfp_bpf_map_update_value_ok() argument 85 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1; in nfp_bpf_map_update_value_ok() 86 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_map_update_value_ok() 92 state = env->cur_state->frame[reg3->frameno]; in nfp_bpf_map_update_value_ok() 113 …pr_vlog(env, "value at offset %d/%d may be non-zero, bpf_map_update_elem() is required to initiali… in nfp_bpf_map_update_value_ok() 124 nfp_bpf_stack_arg_ok(const char *fname, struct bpf_verifier_env *env, in nfp_bpf_stack_arg_ok() argument 131 pr_vlog(env, "%s: unsupported ptr type %d\n", in nfp_bpf_stack_arg_ok() 136 pr_vlog(env, "%s: variable pointer\n", fname); in nfp_bpf_stack_arg_ok() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/kernel/fpu/ |
| D | regset.c | 225 convert_from_fxsr(struct user_i387_ia32_struct *env, struct task_struct *tsk) in convert_from_fxsr() argument 228 struct _fpreg *to = (struct _fpreg *) &env->st_space[0]; in convert_from_fxsr() 232 env->cwd = fxsave->cwd | 0xffff0000u; in convert_from_fxsr() 233 env->swd = fxsave->swd | 0xffff0000u; in convert_from_fxsr() 234 env->twd = twd_fxsr_to_i387(fxsave); in convert_from_fxsr() 237 env->fip = fxsave->rip; in convert_from_fxsr() 238 env->foo = fxsave->rdp; in convert_from_fxsr() 243 env->fcs = task_pt_regs(tsk)->cs; in convert_from_fxsr() 245 savesegment(ds, env->fos); in convert_from_fxsr() 247 env->fos = tsk->thread.ds; in convert_from_fxsr() [all …]
|
| /kernel/linux/linux-6.6/arch/x86/kernel/fpu/ |
| D | regset.c | 331 static void __convert_from_fxsr(struct user_i387_ia32_struct *env, in __convert_from_fxsr() argument 335 struct _fpreg *to = (struct _fpreg *) &env->st_space[0]; in __convert_from_fxsr() 339 env->cwd = fxsave->cwd | 0xffff0000u; in __convert_from_fxsr() 340 env->swd = fxsave->swd | 0xffff0000u; in __convert_from_fxsr() 341 env->twd = twd_fxsr_to_i387(fxsave); in __convert_from_fxsr() 344 env->fip = fxsave->rip; in __convert_from_fxsr() 345 env->foo = fxsave->rdp; in __convert_from_fxsr() 350 env->fcs = task_pt_regs(tsk)->cs; in __convert_from_fxsr() 352 savesegment(ds, env->fos); in __convert_from_fxsr() 354 env->fos = tsk->thread.ds; in __convert_from_fxsr() [all …]
|
| /kernel/uniproton/cmake/tool_chain/ |
| D | uniproton_tool_chain_gcc.cmake | 12 set(CPU_TYPE "$ENV{CPU_TYPE}" ) 13 set(PLAM_TYPE "$ENV{PLAM_TYPE}" ) 14 set(LIB_TYPE "$ENV{LIB_TYPE}" ) 15 set(SYSTEM "$ENV{SYSTEM}" ) 16 set(CORE "$ENV{CORE}" ) 17 set(LIB_RUN_TYPE "$ENV{LIB_RUN_TYPE}" ) 18 set(BUILD_DIR "$ENV{BUILD_TMP_DIR}" ) #version id 19 set(OBJCOPY_PATH "$ENV{OBJCOPY_PATH}" ) #OBJCOPY_PATH 20 set(COMPILE_MODE "$ENV{COMPILE_MODE}" ) 21 set(CC_TYPE "$ENV{CC_TYPE}" ) [all …]
|
| /kernel/linux/linux-6.6/security/tomoyo/ |
| D | environ.c | 24 return tomoyo_path_matches_pattern(r->param.environ.name, acl->env); in tomoyo_check_env_acl() 36 return tomoyo_supervisor(r, "misc env %s\n", in tomoyo_audit_env_log() 44 * @env: The name of environment variable. 50 int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env) in tomoyo_env_perm() argument 55 if (!env || !*env) in tomoyo_env_perm() 57 environ.name = env; in tomoyo_env_perm() 82 return p1->env == p2->env; in tomoyo_same_env_acl() 102 e.env = tomoyo_get_name(data); in tomoyo_write_env() 103 if (!e.env) in tomoyo_write_env() 107 tomoyo_put_name(e.env); in tomoyo_write_env() [all …]
|
| /kernel/linux/linux-5.10/security/tomoyo/ |
| D | environ.c | 24 return tomoyo_path_matches_pattern(r->param.environ.name, acl->env); in tomoyo_check_env_acl() 36 return tomoyo_supervisor(r, "misc env %s\n", in tomoyo_audit_env_log() 44 * @env: The name of environment variable. 50 int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env) in tomoyo_env_perm() argument 55 if (!env || !*env) in tomoyo_env_perm() 57 environ.name = env; in tomoyo_env_perm() 82 return p1->env == p2->env; in tomoyo_same_env_acl() 102 e.env = tomoyo_get_name(data); in tomoyo_write_env() 103 if (!e.env) in tomoyo_write_env() 107 tomoyo_put_name(e.env); in tomoyo_write_env() [all …]
|