Home
last modified time | relevance | path

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

12345678910>>...17

/kernel/linux/linux-5.10/drivers/iio/adc/
Denvelope-detector.c80 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-5.10/tools/perf/util/
Denv.c18 void perf_env__insert_bpf_prog_info(struct perf_env *env, in perf_env__insert_bpf_prog_info() argument
26 down_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info()
27 p = &env->bpf_progs.infos.rb_node; in perf_env__insert_bpf_prog_info()
43 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in perf_env__insert_bpf_prog_info()
44 env->bpf_progs.infos_cnt++; in perf_env__insert_bpf_prog_info()
46 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info()
49 struct bpf_prog_info_node *perf_env__find_bpf_prog_info(struct perf_env *env, in perf_env__find_bpf_prog_info() argument
55 down_read(&env->bpf_progs.lock); in perf_env__find_bpf_prog_info()
56 n = env->bpf_progs.infos.rb_node; in perf_env__find_bpf_prog_info()
70 up_read(&env->bpf_progs.lock); in perf_env__find_bpf_prog_info()
[all …]
Denv.h128 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 struct bpf_prog_info_node *perf_env__find_bpf_prog_info(struct perf_env *env,
[all …]
Dheader.c895 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clockid()
896 sizeof(ff->ph->env.clock.clockid_res_ns)); in write_clockid()
914 data32 = ff->ph->env.clock.clockid; in write_clock_data()
921 data64 = &ff->ph->env.clock.tod_ns; in write_clock_data()
928 data64 = &ff->ph->env.clock.clockid_ns; in write_clock_data()
952 struct perf_env *env = &ff->ph->env; in write_bpf_prog_info() local
957 down_read(&env->bpf_progs.lock); in write_bpf_prog_info()
959 ret = do_write(ff, &env->bpf_progs.infos_cnt, in write_bpf_prog_info()
960 sizeof(env->bpf_progs.infos_cnt)); in write_bpf_prog_info()
964 root = &env->bpf_progs.infos; in write_bpf_prog_info()
[all …]
Dbpf-event.c42 struct perf_env *env = machine->env; in machine__process_bpf_event_load() local
47 if (env == NULL) in machine__process_bpf_event_load()
50 info_node = perf_env__find_bpf_prog_info(env, id); in machine__process_bpf_event_load()
64 map->dso->bpf_prog.env = env; in machine__process_bpf_event_load()
94 static int perf_env__fetch_btf(struct perf_env *env, in perf_env__fetch_btf() argument
112 if (!perf_env__insert_btf(env, node)) { in perf_env__fetch_btf()
176 struct perf_env *env; in perf_event__synthesize_one_bpf_prog() local
185 env = session->data ? &session->header.env : &perf_env; in perf_event__synthesize_one_bpf_prog()
229 perf_env__fetch_btf(env, info->btf_id, btf); in perf_event__synthesize_one_bpf_prog()
283 perf_env__insert_bpf_prog_info(env, info_node); in perf_event__synthesize_one_bpf_prog()
[all …]
Dcgroup.c344 struct cgroup *cgroup__findnew(struct perf_env *env, uint64_t id, in cgroup__findnew() argument
349 down_write(&env->cgroups.lock); in cgroup__findnew()
350 cgrp = __cgroup__findnew(&env->cgroups.tree, id, true, path); in cgroup__findnew()
351 up_write(&env->cgroups.lock); in cgroup__findnew()
355 struct cgroup *cgroup__find(struct perf_env *env, uint64_t id) in cgroup__find() argument
359 down_read(&env->cgroups.lock); in cgroup__find()
360 cgrp = __cgroup__findnew(&env->cgroups.tree, id, false, NULL); in cgroup__find()
361 up_read(&env->cgroups.lock); in cgroup__find()
365 void perf_env__purge_cgroups(struct perf_env *env) in perf_env__purge_cgroups() argument
370 down_write(&env->cgroups.lock); in perf_env__purge_cgroups()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_progs.c19 struct test_env env = {}; variable
74 if (stdout == env.stdout) 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()
94 env.skip_cnt++; in skip_account()
[all …]
Dbench.c16 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-5.10/kernel/bpf/
Dverifier.c250 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 …]
Dbtf.c368 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,
1234 __printf(2, 3) static void btf_verifier_log(struct btf_verifier_env *env, in btf_verifier_log() argument
1237 struct bpf_verifier_log *log = &env->log; in btf_verifier_log()
1248 __printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, in __btf_verifier_log_type() argument
1253 struct bpf_verifier_log *log = &env->log; in __btf_verifier_log_type()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c16 #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/lib/
Dkobject_uevent.c117 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/arch/x86/kernel/fpu/
Dregset.c225 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-5.10/tools/perf/arch/
Dcommon.c97 char *env = getenv("PATH"); in lookup_path() local
99 if (!env) in lookup_path()
102 env = strdup(env); in lookup_path()
103 if (!env) in lookup_path()
106 path = strtok_r(env, ":", &tmp); in lookup_path()
115 free(env); in lookup_path()
132 static int perf_env__lookup_binutils_path(struct perf_env *env, in perf_env__lookup_binutils_path() argument
136 const char *arch = perf_env__arch(env), *cross_env; in perf_env__lookup_binutils_path()
205 int perf_env__lookup_objdump(struct perf_env *env, const char **path) in perf_env__lookup_objdump() argument
211 if (env->arch == NULL) in perf_env__lookup_objdump()
[all …]
/kernel/linux/linux-5.10/arch/mips/alchemy/common/
Dprom.c66 char **env = prom_envp; in prom_getenv() local
68 int yamon = (*env && strchr(*env, '=') == NULL); in prom_getenv()
70 while (*env) { in prom_getenv()
72 if (strcmp(envname, *env++) == 0) in prom_getenv()
73 return *env; in prom_getenv()
74 } else if (strncmp(envname, *env, i) == 0 && (*env)[i] == '=') in prom_getenv()
75 return *env + i + 1; in prom_getenv()
76 env++; in prom_getenv()
/kernel/linux/linux-5.10/security/tomoyo/
Denviron.c24 return tomoyo_path_matches_pattern(r->param.environ.name, acl->env); in tomoyo_check_env_acl()
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()
/kernel/linux/linux-5.10/kernel/sched/
Dfair.c1640 static void update_numa_stats(struct task_numa_env *env, in update_numa_stats() argument
1661 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) in update_numa_stats()
1674 ns->node_type = numa_classify(env->imbalance_pct, ns); in update_numa_stats()
1680 static void task_numa_assign(struct task_numa_env *env, in task_numa_assign() argument
1683 struct rq *rq = cpu_rq(env->dst_cpu); in task_numa_assign()
1686 if (env->best_cpu != env->dst_cpu && xchg(&rq->numa_migrate_on, 1)) { in task_numa_assign()
1688 int start = env->dst_cpu; in task_numa_assign()
1691 for_each_cpu_wrap(cpu, cpumask_of_node(env->dst_nid), start) { in task_numa_assign()
1692 if (cpu == env->best_cpu || !idle_cpu(cpu) || in task_numa_assign()
1693 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) { in task_numa_assign()
[all …]
/kernel/linux/linux-5.10/drivers/of/
Ddevice.c303 void of_device_uevent(struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
313 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
314 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
317 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
323 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
326 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
332 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
340 int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
348 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
351 sl = of_device_get_modalias(dev, &env->buf[env->buflen-1], in of_device_uevent_modalias()
[all …]
/kernel/linux/linux-5.10/Documentation/sphinx/
Dkerneldoc.py71 env = self.state.document.settings.env
72 cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno']
79 filename = env.config.kerneldoc_srctree + '/' + self.arguments[0]
83 env.note_dependency(os.path.abspath(filename))
115 for f in glob.glob(env.config.kerneldoc_srctree + '/' + pattern):
116 env.note_dependency(os.path.abspath(f))
122 kernellog.verbose(env.app,
133 kernellog.warn(env.app,
136 elif env.config.kerneldoc_verbosity > 0:
151 doc = env.srcdir + "/" + env.docname + ":" + str(self.lineno)
[all …]
/kernel/linux/linux-5.10/tools/bpf/runqslower/
Drunqslower.c14 struct env { struct
18 } env = { variable
52 env.verbose = true; in parse_arg()
61 env.pid = pid; in parse_arg()
75 env.min_us = min_us; in parse_arg()
86 if (level == LIBBPF_DEBUG && !env.verbose) in libbpf_print_fn()
150 obj->rodata->targ_pid = env.pid; in main()
151 obj->rodata->min_us = env.min_us; in main()
165 printf("Tracing run queue latency higher than %llu us\n", env.min_us); in main()
/kernel/linux/linux-5.10/sound/aoa/soundbus/
Dcore.c58 static int soundbus_uevent(struct device *dev, struct kobj_uevent_env *env) in soundbus_uevent() argument
76 retval = add_uevent_var(env, "OF_NAME=%pOFn", of->dev.of_node); in soundbus_uevent()
80 retval = add_uevent_var(env, "OF_TYPE=%s", of_node_get_device_type(of->dev.of_node)); in soundbus_uevent()
90 int tmp = env->buflen; in soundbus_uevent()
91 retval = add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in soundbus_uevent()
94 compat += env->buflen - tmp; in soundbus_uevent()
95 cplen -= env->buflen - tmp; in soundbus_uevent()
99 retval = add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in soundbus_uevent()
102 retval = add_uevent_var(env, "MODALIAS=%s", soundbus_dev->modalias); in soundbus_uevent()
/kernel/linux/linux-5.10/drivers/mtd/maps/
Dpmcmsp-flash.c56 char *env; in init_msp_flash() local
70 for (fcnt = 0; (env = prom_getenv(flash_name)); fcnt++) in init_msp_flash()
95 for (pcnt = 0; (env = prom_getenv(part_name)); pcnt++) in init_msp_flash()
111 env = prom_getenv(flash_name); in init_msp_flash()
113 if (sscanf(env, "%x:%x", &addr, &size) < 2) { in init_msp_flash()
153 env = prom_getenv(part_name); in init_msp_flash()
155 if (sscanf(env, "%x:%x:%n", &offset, &size, in init_msp_flash()
166 msp_parts[i][j].name = env + coff; in init_msp_flash()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_env.c607 struct mlxsw_env *env; in mlxsw_env_init() local
618 env = kzalloc(struct_size(env, module_info, module_count), GFP_KERNEL); in mlxsw_env_init()
619 if (!env) in mlxsw_env_init()
622 spin_lock_init(&env->module_info_lock); in mlxsw_env_init()
623 env->core = mlxsw_core; in mlxsw_env_init()
624 env->module_count = module_count; in mlxsw_env_init()
625 *p_env = env; in mlxsw_env_init()
636 env->module_count); in mlxsw_env_init()
640 err = mlxsw_env_module_temp_event_enable(mlxsw_core, env->module_count); in mlxsw_env_init()
648 mlxsw_env_module_plug_event_unregister(env); in mlxsw_env_init()
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/
Dtopology.c91 if (!session->header.env.cpu) in check_cpu_topology()
94 for (i = 0; i < session->header.env.nr_cpus_avail; i++) { in check_cpu_topology()
98 session->header.env.cpu[i].core_id, in check_cpu_topology()
99 session->header.env.cpu[i].socket_id); in check_cpu_topology()
104 (session->header.env.cpu[map->map[i]].core_id == (cpu_map__get_core(map, i, NULL) & 0xffff))); in check_cpu_topology()
107 (session->header.env.cpu[map->map[i]].socket_id == cpu_map__get_socket(map, i, NULL))); in check_cpu_topology()
/kernel/linux/linux-5.10/arch/x86/um/
Dsignal.c85 unsigned long env[7]; in convert_fxsr_to_user() local
90 env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul; in convert_fxsr_to_user()
91 env[1] = (unsigned long)fxsave->swd | 0xffff0000ul; in convert_fxsr_to_user()
92 env[2] = twd_fxsr_to_i387(fxsave); in convert_fxsr_to_user()
93 env[3] = fxsave->fip; in convert_fxsr_to_user()
94 env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16); in convert_fxsr_to_user()
95 env[5] = fxsave->foo; in convert_fxsr_to_user()
96 env[6] = fxsave->fos; in convert_fxsr_to_user()
98 if (__copy_to_user(buf, env, 7 * sizeof(unsigned long))) in convert_fxsr_to_user()
118 unsigned long env[7]; in convert_fxsr_from_user() local
[all …]

12345678910>>...17