Home
last modified time | relevance | path

Searched full:env (Results 1 – 25 of 776) sorted by relevance

12345678910>>...32

/linux/tools/perf/util/
H A Denv.c4 #include "env.h"
27 bool perf_env__insert_bpf_prog_info(struct perf_env *env, in perf_env__insert_bpf_prog_info() argument
32 down_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info()
33 ret = __perf_env__insert_bpf_prog_info(env, info_node); in perf_env__insert_bpf_prog_info()
34 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info()
39 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
46 p = &env->bpf_progs.infos.rb_node; in __perf_env__insert_bpf_prog_info()
62 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in __perf_env__insert_bpf_prog_info()
63 env->bpf_progs.infos_cnt++; in __perf_env__insert_bpf_prog_info()
67 struct bpf_prog_info_node *perf_env__find_bpf_prog_info(struct perf_env *env, in perf_env__find_bpf_prog_info() argument
[all …]
H A Denv.h172 int perf_env__read_core_pmu_caps(struct perf_env *env);
174 void perf_env__exit(struct perf_env *env);
176 int perf_env__kernel_is_64_bit(struct perf_env *env);
178 int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]);
180 int perf_env__read_cpuid(struct perf_env *env);
181 int perf_env__read_pmu_mappings(struct perf_env *env);
182 int perf_env__nr_pmu_mappings(struct perf_env *env);
183 const char *perf_env__pmu_mappings(struct perf_env *env);
185 int perf_env__read_cpu_topology_map(struct perf_env *env);
189 const char *perf_env__arch(struct perf_env *env);
[all …]
H A Dheader.c575 struct perf_env *env = &ff->ph->env; in write_cmdline() local
583 n = env->nr_cmdline + 1; in write_cmdline()
593 for (i = 0 ; i < env->nr_cmdline; i++) { in write_cmdline()
594 ret = do_write_string(ff, env->cmdline_argv[i]); in write_cmdline()
605 struct perf_env *env = &ff->ph->env; in write_cpu_topology() local
633 ret = perf_env__read_cpu_topology_map(env); in write_cpu_topology()
637 for (j = 0; j < env->nr_cpus_avail; j++) { in write_cpu_topology()
638 ret = do_write(ff, &env->cpu[j].core_id, in write_cpu_topology()
639 sizeof(env->cpu[j].core_id)); in write_cpu_topology()
642 ret = do_write(ff, &env->cpu[j].socket_id, in write_cpu_topology()
[all …]
/linux/drivers/iio/adc/
H A Denvelope-detector.c79 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 …]
/linux/tools/testing/selftests/bpf/
H A Dtest_progs.c48 return env.verbosity > VERBOSE_NONE; in verbose()
54 if (verbose() && env.worker_id == -1) { in stdio_hijack_init()
64 stdout = env.stdout_saved; in stdio_hijack_init()
69 if (env.subtest_state) in stdio_hijack_init()
70 env.subtest_state->stdout_saved = stdout; in stdio_hijack_init()
72 env.test_state->stdout_saved = stdout; in stdio_hijack_init()
81 if (verbose() && env.worker_id == -1) { in stdio_hijack()
86 env.stdout_saved = stdout; in stdio_hijack()
87 env.stderr_saved = stderr; in stdio_hijack()
98 if (verbose() && env.worker_id == -1) { in stdio_restore()
[all …]
H A Dxdp_features.c27 static struct env { struct
39 } env; argument
48 if (level == LIBBPF_DEBUG && !env.verbosity) in libbpf_print_fn()
91 env.feature.action = XDP_PASS; in get_xdp_feature()
92 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature()
94 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature()
95 env.feature.action = XDP_DROP; in get_xdp_feature()
97 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature()
98 env.feature.action = XDP_ABORTED; in get_xdp_feature()
100 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature()
[all …]
H A Dveristat.c190 static struct env { struct
237 } env; argument
241 if (!env.verbose) in libbpf_print_fn()
243 if (level == LIBBPF_DEBUG && !env.debug) in libbpf_print_fn()
327 env.show_version = true; in parse_arg()
330 env.verbose = true; in parse_arg()
333 env.debug = true; in parse_arg()
334 env.verbose = true; in parse_arg()
337 env.quiet = true; in parse_arg()
340 err = parse_stats(arg, &env.output_spec); in parse_arg()
[all …]
H A Dbench.c16 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()
315 env.verbose = true; in parse_arg()
318 env in parse_arg()
[all...]
/linux/kernel/bpf/
H A Dverifier.c205 static int acquire_reference(struct bpf_verifier_env *env, int insn_idx);
207 static int release_reference(struct bpf_verifier_env *env, int ref_obj_id);
208 static void invalidate_non_owning_refs(struct bpf_verifier_env *env);
209 static bool in_rbtree_lock_required_cb(struct bpf_verifier_env *env);
210 static int ref_set_non_owning(struct bpf_verifier_env *env,
374 struct bpf_verifier_env *env = private_data; in verbose() local
377 if (!bpf_verifier_log_needed(&env->log)) in verbose()
381 bpf_verifier_vlog(&env->log, fmt, args); in verbose()
385 static void verbose_invalid_scalar(struct bpf_verifier_env *env, in verbose_invalid_scalar() argument
392 verbose(env, "%s the register %s has", ctx, reg_name); in verbose_invalid_scalar()
[all …]
H A Dliveness.c128 /* Cached instance corresponding to env->cur_state, avoids per-instruction ht lookup */
139 static void compute_callchain(struct bpf_verifier_env *env, struct bpf_verifier_state *st, in compute_callchain() argument
142 struct bpf_subprog_info *subprog_info = env->subprog_info; in compute_callchain()
174 * Instances are accumulated in env->liveness->func_instances and persist
177 static struct func_instance *__lookup_instance(struct bpf_verifier_env *env, in __lookup_instance() argument
180 struct bpf_liveness *liveness = env->liveness; in __lookup_instance()
190 subprog = bpf_find_containing_subprog(env, callchain->sp_starts[callchain->curframe]); in __lookup_instance()
208 static struct func_instance *lookup_instance(struct bpf_verifier_env *env, in lookup_instance() argument
214 compute_callchain(env, st, &callchain, frameno); in lookup_instance()
215 return __lookup_instance(env, &callchain); in lookup_instance()
[all …]
H A Dbtf.c446 s32 (*check_meta)(struct btf_verifier_env *env,
449 int (*resolve)(struct btf_verifier_env *env,
451 int (*check_member)(struct btf_verifier_env *env,
455 int (*check_kflag_member)(struct btf_verifier_env *env,
459 void (*log_details)(struct btf_verifier_env *env,
469 static int btf_resolve(struct btf_verifier_env *env,
472 static int btf_func_check(struct btf_verifier_env *env,
1545 __printf(2, 3) static void btf_verifier_log(struct btf_verifier_env *env, in btf_verifier_log() argument
1548 struct bpf_verifier_log *log = &env->log; in btf_verifier_log()
1559 __printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, in __btf_verifier_log_type() argument
[all …]
/linux/lib/
H A Dkobject_uevent.c116 struct kobj_uevent_env *env = NULL; in kobject_action_args() local
127 env = kzalloc_obj(*env); in kobject_action_args()
128 if (!env) in kobject_action_args()
133 add_uevent_var(env, "SYNTH_UUID=%.*s", UUID_STRING_LEN, buf)) in kobject_action_args()
167 if (add_uevent_var(env, "SYNTH_ARG_%.*s=%.*s", in kobject_action_args()
175 kfree(env); in kobject_action_args()
177 *ret_env = env; in kobject_action_args()
196 struct kobj_uevent_env *env; in kobject_synth_uevent() local
212 count - (action_args - buf), &env); in kobject_synth_uevent()
221 r = kobject_uevent_env(kobj, action, env->envp); in kobject_synth_uevent()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A 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 …]
/linux/Documentation/devicetree/bindings/nvmem/layouts/
H A Du-boot,env.yaml4 $id: http://devicetree.org/schemas/nvmem/layouts/u-boot,env.yaml#
21 This binding allows marking storage device (as containing env data) and
32 - description: A standalone env data block
33 const: u-boot,env
35 const: u-boot,env-redundant-bool
37 const: u-boot,env-redundant-count
39 const: brcm,env
42 description: Partition offset and size for env on top of MTD
49 env-size:
91 env: partition@40000 {
[all …]
/linux/security/tomoyo/
H A Denviron.c24 return tomoyo_path_matches_pattern(r->param.environ.name, acl->env); in tomoyo_check_env_acl()
37 return tomoyo_supervisor(r, "misc env %s\n", in tomoyo_audit_env_log()
45 * @env: The name of environment variable.
51 int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env) in tomoyo_env_perm()
56 if (!env || !*env) in tomoyo_env_perm()
58 environ.name = env; in tomoyo_env_perm()
83 return p1->env == p2->env; in tomoyo_same_env_acl()
103 e.env in tomoyo_write_env()
50 tomoyo_env_perm(struct tomoyo_request_info * r,const char * env) tomoyo_env_perm() argument
[all...]
/linux/tools/perf/tests/
H A Dtopology.c73 struct perf_env *env; in check_cpu_topology() local
77 env = perf_session__env(session); in check_cpu_topology()
101 if (!env->cpu && strncmp(env->arch, "s390", 4) && strncmp(env->arch, "aarch64", 7)) in check_cpu_topology()
110 if (!strncmp(env->arch, "ppc64le", 7)) { in check_cpu_topology()
115 TEST_ASSERT_VAL("Session header CPU map not set", env->cpu); in check_cpu_topology()
117 for (i = 0; i < env->nr_cpus_avail; i++) { in check_cpu_topology()
122 env->cpu[i].core_id, in check_cpu_topology()
123 env->cpu[i].socket_id); in check_cpu_topology()
133 env->cpu[cpu.cpu].core_id == id.core); in check_cpu_topology()
135 env->cpu[cpu.cpu].socket_id == id.socket); in check_cpu_topology()
[all …]
/linux/tools/perf/arch/
H A Dcommon.c8 #include "../util/env.h"
109 char *env = getenv("PATH"); in lookup_path() local
111 if (!env) in lookup_path()
114 env = strdup(env); in lookup_path()
115 if (!env) in lookup_path()
118 path = strtok_r(env, ":", &tmp); in lookup_path()
127 free(env); in lookup_path()
144 static int perf_env__lookup_binutils_path(struct perf_env *env, in perf_env__lookup_binutils_path() argument
148 const char *arch = perf_env__arch(env), *cross_env; in perf_env__lookup_binutils_path()
221 int perf_env__lookup_objdump(struct perf_env *env, char **path) in perf_env__lookup_objdump() argument
[all …]
/linux/tools/testing/selftests/drivers/net/lib/py/
H A Denv.py26 self.env = self._load_env_file()
32 env = os.environ.copy()
36 return ksft_setup(env)
51 env[pair[0]] = pair[1]
52 return ksft_setup(env)
73 Class for a single NIC / host env, with no remote end
80 if 'NETIF' in self.env:
84 self.dev = ip("-d link show dev " + self.env['NETIF'], json=True)[0]
128 if "NETIF" in self.env:
133 self.dev = ip("-d link show dev " + self.env['NETI
[all...]
H A Dload.py14 def __init__(self, env, port=None, server_ip=None, client_ip=None):
15 env.require_cmd("iperf3", local=True, remote=True)
16 self.env = env
28 host = self.env.addr if self.server_ip is None else self.server_ip
51 return cmd(cmdline, background=background, host=self.env.remote)
82 def __init__(self, env, port=None):
83 self.env = env
84 self.runner = Iperf3Runner(env, por
9 __init__(self, env, port=None) global() argument
[all...]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_env.c1240 static int mlxsw_env_line_cards_alloc(struct mlxsw_env *env) in mlxsw_env_line_cards_alloc() argument
1245 for (i = 0; i < env->num_of_slots; i++) { in mlxsw_env_line_cards_alloc()
1246 env->line_cards[i] = kzalloc_flex(*env->line_cards[i], in mlxsw_env_line_cards_alloc()
1248 env->max_module_count); in mlxsw_env_line_cards_alloc()
1249 if (!env->line_cards[i]) in mlxsw_env_line_cards_alloc()
1255 for (j = 0; j < env->max_module_count; j++) { in mlxsw_env_line_cards_alloc()
1256 module_info = &env->line_cards[i]->module_info[j]; in mlxsw_env_line_cards_alloc()
1266 kfree(env->line_cards[i]); in mlxsw_env_line_cards_alloc()
1270 static void mlxsw_env_line_cards_free(struct mlxsw_env *env) in mlxsw_env_line_cards_free() argument
1272 int i = env->num_of_slots; in mlxsw_env_line_cards_free()
[all …]
/linux/drivers/of/
H A Ddevice.c213 * @env: Kernel object's userspace event reference to fill up
215 void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
225 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
226 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
229 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
235 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
238 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
244 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
253 int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
261 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
[all …]
/linux/kernel/sched/
H A Dfair.c2189 static void update_numa_stats(struct task_numa_env *env, in update_numa_stats() argument
2210 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) in update_numa_stats()
2223 ns->node_type = numa_classify(env->imbalance_pct, ns); in update_numa_stats()
2229 static void task_numa_assign(struct task_numa_env *env, in task_numa_assign() argument
2232 struct rq *rq = cpu_rq(env->dst_cpu); in task_numa_assign()
2235 if (env->best_cpu != env->dst_cpu && xchg(&rq->numa_migrate_on, 1)) { in task_numa_assign()
2237 int start = env->dst_cpu; in task_numa_assign()
2240 for_each_cpu_wrap(cpu, cpumask_of_node(env->dst_nid), start + 1) { in task_numa_assign()
2241 if (cpu == env->best_cpu || !idle_cpu(cpu) || in task_numa_assign()
2242 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) { in task_numa_assign()
[all …]
/linux/arch/mips/alchemy/common/
H A Dprom.c67 char **env = prom_envp; in prom_getenv() local
69 int yamon = (*env && strchr(*env, '=') == NULL); in prom_getenv()
71 while (*env) { in prom_getenv()
73 if (strcmp(envname, *env++) == 0) in prom_getenv()
74 return *env; in prom_getenv()
75 } else if (strncmp(envname, *env, i) == 0 && (*env)[i] == '=') in prom_getenv()
76 return *env + i + 1; in prom_getenv()
77 env++; in prom_getenv()
/linux/Documentation/sphinx/
H A Dkernel_include.py1 #!/usr/bin/env python3
210 def xref_text(self, env, path, tab_width): argument
232 env._xref_files.add(path)
333 env = self.state.document.settings.env
371 env.note_dependency(os.path.abspath(path))
393 return self.xref_text(env, path, tab_width)
409 def fill_domain_info(env): argument
416 for domain_name, domain_instance in env.domains.items():
425 domain_obj = env.get_domain(domain)
438 def get_suggestions(app, env, node, argument
[all …]
/linux/sound/aoa/soundbus/
H A Dcore.c60 static int soundbus_uevent(const struct device *dev, struct kobj_uevent_env *env) in soundbus_uevent() argument
78 retval = add_uevent_var(env, "OF_NAME=%pOFn", of->dev.of_node); in soundbus_uevent()
82 retval = add_uevent_var(env, "OF_TYPE=%s", of_node_get_device_type(of->dev.of_node)); in soundbus_uevent()
92 int tmp = env->buflen; in soundbus_uevent()
93 retval = add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in soundbus_uevent()
96 compat += env->buflen - tmp; in soundbus_uevent()
97 cplen -= env->buflen - tmp; in soundbus_uevent()
101 retval = add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in soundbus_uevent()
104 retval = add_uevent_var(env, "MODALIAS=%s", soundbus_dev->modalias); in soundbus_uevent()

12345678910>>...32