Home
last modified time | relevance | path

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

12345678910>>...28

/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.h153 int perf_env__read_core_pmu_caps(struct perf_env *env);
154 void perf_env__exit(struct perf_env *env);
156 int perf_env__kernel_is_64_bit(struct perf_env *env);
158 int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]);
160 int perf_env__read_cpuid(struct perf_env *env);
161 int perf_env__read_pmu_mappings(struct perf_env *env);
162 int perf_env__nr_pmu_mappings(struct perf_env *env);
163 const char *perf_env__pmu_mappings(struct perf_env *env);
165 int perf_env__read_cpu_topology_map(struct perf_env *env);
169 const char *perf_env__arch(struct perf_env *env);
[all …]
H A Dheader.c560 struct perf_env *env = &ff->ph->env; in write_cmdline() local
568 n = env->nr_cmdline + 1; in write_cmdline()
578 for (i = 0 ; i < env->nr_cmdline; i++) { in write_cmdline()
579 ret = do_write_string(ff, env->cmdline_argv[i]); in write_cmdline()
590 struct perf_env *env = &ff->ph->env; in write_cpu_topology() local
618 ret = perf_env__read_cpu_topology_map(env); in write_cpu_topology()
622 for (j = 0; j < env->nr_cpus_avail; j++) { in write_cpu_topology()
623 ret = do_write(ff, &env->cpu[j].core_id, in write_cpu_topology()
624 sizeof(env->cpu[j].core_id)); in write_cpu_topology()
627 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;
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 in stdio_restore_cleanup()
157 struct test_env env = {}; global() variable
1000 struct test_env *env = state->input; parse_arg() local
1582 calculate_summary_and_print_errors(struct test_env * env) calculate_summary_and_print_errors() argument
[all...]
H A Dxdp_features.c26 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 …]
H A Dveristat.c190 static struct env { argument
237 } env; in libbpf_print_fn()
241 if (!env.verbose)
243 if (level == LIBBPF_DEBUG && !env.debug)
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 in parse_arg()
184 static struct env { global() struct
185 filenamesenv global() argument
186 filename_cntenv global() argument
187 verboseenv global() argument
188 debugenv global() argument
189 quietenv global() argument
191 force_reg_invariantsenv global() argument
192 out_fmtenv global() argument
193 show_versionenv global() argument
194 comparison_modeenv global() argument
195 replay_modeenv global() argument
196 top_nenv global() argument
198 log_levelenv global() argument
199 log_sizeenv global() argument
200 log_fixedenv global() argument
202 prog_statsenv global() argument
203 prog_stat_cntenv global() argument
206 baseline_statsenv global() argument
230 } env; global() variable
[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()
314 env.verbose = true; in parse_arg()
317 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,
212 static void specialize_kfunc(struct bpf_verifier_env *env,
367 struct bpf_verifier_env *env = private_data; in verbose() local
370 if (!bpf_verifier_log_needed(&env->log)) in verbose()
374 bpf_verifier_vlog(&env->log, fmt, args); in verbose()
378 static void verbose_invalid_scalar(struct bpf_verifier_env *env, in verbose_invalid_scalar() argument
[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 Dlog.c14 #define verbose(env, fmt, args...) bpf_verifier_log_write(env, fmt, ##args) argument
304 __printf(2, 3) void bpf_verifier_log_write(struct bpf_verifier_env *env, in bpf_verifier_log_write() argument
309 if (!bpf_verifier_log_needed(&env->log)) in bpf_verifier_log_write()
313 bpf_verifier_vlog(&env->log, fmt, args); in bpf_verifier_log_write()
333 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument
340 prog = env->prog; in find_linfo()
381 __printf(3, 4) void verbose_linfo(struct bpf_verifier_env *env, in verbose_linfo() argument
389 if (!bpf_verifier_log_needed(&env->log)) in verbose_linfo()
392 prev_linfo = env in verbose_linfo()
440 reg_type_str(struct bpf_verifier_env * env,enum bpf_reg_type type) reg_type_str() argument
543 print_liveness(struct bpf_verifier_env * env,enum bpf_reg_liveness live) print_liveness() argument
570 verbose_unum(struct bpf_verifier_env * env,u64 num) verbose_unum() argument
578 verbose_snum(struct bpf_verifier_env * env,s64 num) verbose_snum() argument
599 print_scalar_ranges(struct bpf_verifier_env * env,const struct bpf_reg_state * reg,const char ** sep) print_scalar_ranges() argument
681 print_reg_state(struct bpf_verifier_env * env,const struct bpf_func_state * state,const struct bpf_reg_state * reg) print_reg_state() argument
757 print_verifier_state(struct bpf_verifier_env * env,const struct bpf_verifier_state * vstate,u32 frameno,bool print_all) print_verifier_state() argument
869 print_insn_state(struct bpf_verifier_env * env,const struct bpf_verifier_state * vstate,u32 frameno) print_insn_state() argument
[all...]
H A Dbtf.c444 s32 (*check_meta)(struct btf_verifier_env *env,
447 int (*resolve)(struct btf_verifier_env *env,
449 int (*check_member)(struct btf_verifier_env *env,
453 int (*check_kflag_member)(struct btf_verifier_env *env,
457 void (*log_details)(struct btf_verifier_env *env,
467 static int btf_resolve(struct btf_verifier_env *env,
470 static int btf_func_check(struct btf_verifier_env *env,
1434 __printf(2, 3) static void btf_verifier_log(struct btf_verifier_env *env, in btf_verifier_log() argument
1437 struct bpf_verifier_log *log = &env->log; in btf_verifier_log()
1448 __printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, in __btf_verifier_log_type() argument
1492 btf_verifier_log_type(env,t,...) global() argument
1494 btf_verifier_log_basic(env,t,...) global() argument
1498 btf_verifier_log_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const char * fmt,...) btf_verifier_log_member() argument
1551 btf_verifier_log_vsi(struct btf_verifier_env * env,const struct btf_type * datasec_type,const struct btf_var_secinfo * vsi,const char * fmt,...) btf_verifier_log_vsi() argument
1578 btf_verifier_log_hdr(struct btf_verifier_env * env,u32 btf_data_size) btf_verifier_log_hdr() argument
1602 btf_add_type(struct btf_verifier_env * env,struct btf_type * t) btf_add_type() argument
1800 env_resolve_init(struct btf_verifier_env * env) env_resolve_init() argument
1836 btf_verifier_env_free(struct btf_verifier_env * env) btf_verifier_env_free() argument
1842 env_type_is_resolve_sink(const struct btf_verifier_env * env,const struct btf_type * next_type) env_type_is_resolve_sink() argument
1867 env_type_is_resolved(const struct btf_verifier_env * env,u32 type_id) env_type_is_resolved() argument
1877 env_stack_push(struct btf_verifier_env * env,const struct btf_type * t,u32 type_id) env_stack_push() argument
1907 env_stack_set_next_member(struct btf_verifier_env * env,u16 next_member) env_stack_set_next_member() argument
1913 env_stack_pop_resolved(struct btf_verifier_env * env,u32 resolved_type_id,u32 resolved_size) env_stack_pop_resolved() argument
1926 env_stack_peak(struct btf_verifier_env * env) env_stack_peak() argument
2095 btf_df_check_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_df_check_member() argument
2105 btf_df_check_kflag_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_df_check_kflag_member() argument
2118 btf_generic_check_kflag_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_generic_check_kflag_member() argument
2137 btf_df_resolve(struct btf_verifier_env * env,const struct resolve_vertex * v) btf_df_resolve() argument
2151 btf_int_check_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_int_check_member() argument
2189 btf_int_check_kflag_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_int_check_kflag_member() argument
2245 btf_int_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_int_check_meta() argument
2309 btf_int_log(struct btf_verifier_env * env,const struct btf_type * t) btf_int_log() argument
2510 btf_modifier_check_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_modifier_check_member() argument
2535 btf_modifier_check_kflag_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_modifier_check_kflag_member() argument
2560 btf_ptr_check_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_ptr_check_member() argument
2586 btf_ref_type_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_ref_type_check_meta() argument
2634 btf_modifier_resolve(struct btf_verifier_env * env,const struct resolve_vertex * v) btf_modifier_resolve() argument
2676 btf_var_resolve(struct btf_verifier_env * env,const struct resolve_vertex * v) btf_var_resolve() argument
2722 btf_ptr_resolve(struct btf_verifier_env * env,const struct resolve_vertex * v) btf_ptr_resolve() argument
2819 btf_ref_type_log(struct btf_verifier_env * env,const struct btf_type * t) btf_ref_type_log() argument
2843 btf_fwd_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_fwd_check_meta() argument
2869 btf_fwd_type_log(struct btf_verifier_env * env,const struct btf_type * t) btf_fwd_type_log() argument
2884 btf_array_check_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_array_check_member() argument
2913 btf_array_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_array_check_meta() argument
2966 btf_array_resolve(struct btf_verifier_env * env,const struct resolve_vertex * v) btf_array_resolve() argument
3031 btf_array_log(struct btf_verifier_env * env,const struct btf_type * t) btf_array_log() argument
3135 btf_struct_check_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_struct_check_member() argument
3160 btf_struct_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_struct_check_meta() argument
3241 btf_struct_resolve(struct btf_verifier_env * env,const struct resolve_vertex * v) btf_struct_resolve() argument
3312 btf_struct_log(struct btf_verifier_env * env,const struct btf_type * t) btf_struct_log() argument
4267 btf_enum_check_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_enum_check_member() argument
4292 btf_enum_check_kflag_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_enum_check_kflag_member() argument
4327 btf_enum_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_enum_check_meta() argument
4386 btf_enum_log(struct btf_verifier_env * env,const struct btf_type * t) btf_enum_log() argument
4435 btf_enum64_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_enum64_check_meta() argument
4538 btf_func_proto_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_func_proto_check_meta() argument
4566 btf_func_proto_log(struct btf_verifier_env * env,const struct btf_type * t) btf_func_proto_log() argument
4625 btf_func_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_func_check_meta() argument
4650 btf_func_resolve(struct btf_verifier_env * env,const struct resolve_vertex * v) btf_func_resolve() argument
4674 btf_var_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_var_check_meta() argument
4722 btf_var_log(struct btf_verifier_env * env,const struct btf_type * t) btf_var_log() argument
4738 btf_datasec_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_datasec_check_meta() argument
4811 btf_datasec_resolve(struct btf_verifier_env * env,const struct resolve_vertex * v) btf_datasec_resolve() argument
4851 btf_datasec_log(struct btf_verifier_env * env,const struct btf_type * t) btf_datasec_log() argument
4890 btf_float_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_float_check_meta() argument
4915 btf_float_check_member(struct btf_verifier_env * env,const struct btf_type * struct_type,const struct btf_member * member,const struct btf_type * member_type) btf_float_check_member() argument
4950 btf_float_log(struct btf_verifier_env * env,const struct btf_type * t) btf_float_log() argument
4965 btf_decl_tag_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_decl_tag_check_meta() argument
5003 btf_decl_tag_resolve(struct btf_verifier_env * env,const struct resolve_vertex * v) btf_decl_tag_resolve() argument
5049 btf_decl_tag_log(struct btf_verifier_env * env,const struct btf_type * t) btf_decl_tag_log() argument
5064 btf_func_proto_check(struct btf_verifier_env * env,const struct btf_type * t) btf_func_proto_check() argument
5159 btf_func_check(struct btf_verifier_env * env,const struct btf_type * t) btf_func_check() argument
5209 btf_check_meta(struct btf_verifier_env * env,const struct btf_type * t,u32 meta_left) btf_check_meta() argument
5251 btf_check_all_metas(struct btf_verifier_env * env) btf_check_all_metas() argument
5278 btf_resolve_valid(struct btf_verifier_env * env,const struct btf_type * t,u32 type_id) btf_resolve_valid() argument
5319 btf_resolve(struct btf_verifier_env * env,const struct btf_type * t,u32 type_id) btf_resolve() argument
5352 btf_check_all_types(struct btf_verifier_env * env) btf_check_all_types() argument
5386 btf_parse_type_sec(struct btf_verifier_env * env) btf_parse_type_sec() argument
5409 btf_parse_str_sec(struct btf_verifier_env * env) btf_parse_str_sec() argument
5453 btf_check_sec_info(struct btf_verifier_env * env,u32 btf_data_size) btf_check_sec_info() argument
5506 btf_parse_hdr(struct btf_verifier_env * env) btf_parse_hdr() argument
5712 btf_check_type_tags(struct btf_verifier_env * env,struct btf * btf,int start_id) btf_check_type_tags() argument
5779 struct btf_verifier_env *env = NULL; btf_parse() local
6258 struct btf_verifier_env *env = NULL; btf_parse_vmlinux() local
6303 struct btf_verifier_env *env = NULL; btf_parse_module() local
7670 btf_prepare_func_args(struct bpf_verifier_env * env,int subprog) btf_prepare_func_args() argument
[all...]
/linux/lib/
H A Dkobject_uevent.c116 struct kobj_uevent_env *env = NULL; in kobject_action_args() local
127 env = kzalloc(sizeof(*env), GFP_KERNEL); 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
85 env: partition@40000 {
86 compatible = "u-boot,env";
[all …]
/linux/security/tomoyo/
H A Denviron.c24 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 …]
/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.py9 def __init__(self, env, port=None): argument
10 env.require_cmd("iperf3", local=True, remote=True)
12 self.env = env
18 self._iperf_client = cmd(f"iperf3 -c {env.addr} -P 16 -p {self.port} -t 86400",
19 background=True, host=env.remote)
31 … pkt_start = ip("-s link show dev " + self.env.ifname, json=True)[0]["stats64"]["rx"]["packets"]
34 … pkt_now = ip("-s link show dev " + self.env.ifname, json=True)[0]["stats64"]["rx"]["packets"]
67 data = cmd("cat /proc/net/tcp*", host=self.env.remote).stdout
/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(struct_size(env->line_cards[i], in mlxsw_env_line_cards_alloc()
1248 env->max_module_count), in mlxsw_env_line_cards_alloc()
1250 if (!env->line_cards[i]) in mlxsw_env_line_cards_alloc()
1256 for (j = 0; j < env->max_module_count; j++) { in mlxsw_env_line_cards_alloc()
1257 module_info = &env->line_cards[i]->module_info[j]; in mlxsw_env_line_cards_alloc()
1267 kfree(env->line_cards[i]); in mlxsw_env_line_cards_alloc()
1271 static void mlxsw_env_line_cards_free(struct mlxsw_env *env) in mlxsw_env_line_cards_free() argument
1273 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/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/kernel/sched/
H A Dfair.c2113 static void update_numa_stats(struct task_numa_env *env, in update_numa_stats() argument
2134 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) in update_numa_stats()
2147 ns->node_type = numa_classify(env->imbalance_pct, ns); in update_numa_stats()
2153 static void task_numa_assign(struct task_numa_env *env, in task_numa_assign() argument
2156 struct rq *rq = cpu_rq(env->dst_cpu); in task_numa_assign()
2159 if (env->best_cpu != env->dst_cpu && xchg(&rq->numa_migrate_on, 1)) { in task_numa_assign()
2161 int start = env->dst_cpu; in task_numa_assign()
2164 for_each_cpu_wrap(cpu, cpumask_of_node(env->dst_nid), start + 1) { in task_numa_assign()
2165 if (cpu == env->best_cpu || !idle_cpu(cpu) || in task_numa_assign()
2166 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) { in task_numa_assign()
[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>>...28