Home
last modified time | relevance | path

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

12345678910>>...33

/linux/tools/perf/util/
H A Denv.c4 #include "env.h"
25 void 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 __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()
33 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
40 p = &env->bpf_progs.infos.rb_node; in __perf_env__insert_bpf_prog_info()
56 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in __perf_env__insert_bpf_prog_info()
57 env->bpf_progs.infos_cnt++; in __perf_env__insert_bpf_prog_info()
60 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.h157 void perf_env__exit(struct perf_env *env);
159 int perf_env__kernel_is_64_bit(struct perf_env *env);
161 int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]);
163 int perf_env__read_cpuid(struct perf_env *env);
164 int perf_env__read_pmu_mappings(struct perf_env *env);
165 int perf_env__nr_pmu_mappings(struct perf_env *env);
166 const char *perf_env__pmu_mappings(struct perf_env *env);
168 int perf_env__read_cpu_topology_map(struct perf_env *env);
172 const char *perf_env__arch(struct perf_env *env);
173 const char *perf_env__arch_strerrno(struct perf_env *env, int err);
[all …]
H A Dheader.c903 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clockid()
904 sizeof(ff->ph->env.clock.clockid_res_ns)); in write_clockid()
922 data32 = ff->ph->env.clock.clockid; in write_clock_data()
929 data64 = &ff->ph->env.clock.tod_ns; in write_clock_data()
936 data64 = &ff->ph->env.clock.clockid_ns; in write_clock_data()
1045 struct perf_env *env = &ff->ph->env; in write_bpf_prog_info() local
1050 down_read(&env->bpf_progs.lock); in write_bpf_prog_info()
1052 ret = do_write(ff, &env->bpf_progs.infos_cnt, in write_bpf_prog_info()
1053 sizeof(env->bpf_progs.infos_cnt)); in write_bpf_prog_info()
1057 root = &env->bpf_progs.infos; in write_bpf_prog_info()
[all …]
H A Dbpf-event.c18 #include "env.h"
40 struct perf_env *env = machine->env; in machine__process_bpf_event_load() local
46 if (env == NULL) in machine__process_bpf_event_load()
49 info_node = perf_env__find_bpf_prog_info(env, id); in machine__process_bpf_event_load()
65 dso__bpf_prog(dso)->env = env; in machine__process_bpf_event_load()
96 static int perf_env__fetch_btf(struct perf_env *env, in perf_env__fetch_btf() argument
114 if (!perf_env__insert_btf(env, node)) { in perf_env__fetch_btf()
178 struct perf_env *env; in perf_event__synthesize_one_bpf_prog() local
184 * for perf-record and perf-report use header.env; in perf_event__synthesize_one_bpf_prog()
187 env = session->data ? &session->header.env : &perf_env; in perf_event__synthesize_one_bpf_prog()
[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/kernel/bpf/
H A Dverifier.c197 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx);
198 static int release_reference(struct bpf_verifier_env *env, int ref_obj_id);
199 static void invalidate_non_owning_refs(struct bpf_verifier_env *env);
200 static bool in_rbtree_lock_required_cb(struct bpf_verifier_env *env);
201 static int ref_set_non_owning(struct bpf_verifier_env *env,
203 static void specialize_kfunc(struct bpf_verifier_env *env,
356 struct bpf_verifier_env *env = private_data; in verbose() local
359 if (!bpf_verifier_log_needed(&env->log)) in verbose()
363 bpf_verifier_vlog(&env->log, fmt, args); in verbose()
367 static void verbose_invalid_scalar(struct bpf_verifier_env *env, in verbose_invalid_scalar() argument
[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->prev_linfo; in verbose_linfo()
393 linfo = find_linfo(env, insn_off); in verbose_linfo()
[all …]
H A Dbtf.c443 s32 (*check_meta)(struct btf_verifier_env *env,
446 int (*resolve)(struct btf_verifier_env *env,
448 int (*check_member)(struct btf_verifier_env *env,
452 int (*check_kflag_member)(struct btf_verifier_env *env,
456 void (*log_details)(struct btf_verifier_env *env,
466 static int btf_resolve(struct btf_verifier_env *env,
469 static int btf_func_check(struct btf_verifier_env *env,
1420 __printf(2, 3) static void btf_verifier_log(struct btf_verifier_env *env, in btf_verifier_log() argument
1423 struct bpf_verifier_log *log = &env->log; in btf_verifier_log()
1434 __printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, in __btf_verifier_log_type() argument
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_progs.c42 return env.verbosity > VERBOSE_NONE; in verbose()
48 if (verbose() && env.worker_id == -1) { in stdio_hijack_init()
58 stdout = env.stdout_saved; in stdio_hijack_init()
63 if (env.subtest_state) in stdio_hijack_init()
64 env.subtest_state->stdout_saved = stdout; in stdio_hijack_init()
66 env.test_state->stdout_saved = stdout; in stdio_hijack_init()
75 if (verbose() && env.worker_id == -1) { in stdio_hijack()
80 env.stdout_saved = stdout; in stdio_hijack()
81 env.stderr_saved = stderr; in stdio_hijack()
90 if (verbose() && env.worker_id == -1) { in stdio_restore_cleanup()
[all …]
H A Dveristat.c142 static struct env { struct
182 } env; argument
186 if (!env.verbose) in libbpf_print_fn()
188 if (level == LIBBPF_DEBUG && !env.debug) in libbpf_print_fn()
248 env.show_version = true; in parse_arg()
251 env.verbose = true; in parse_arg()
254 env.debug = true; in parse_arg()
255 env.verbose = true; in parse_arg()
258 env.quiet = true; in parse_arg()
261 err = parse_stats(arg, &env.output_spec); in parse_arg()
[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 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()
310 env.verbose = true; in parse_arg()
313 env.list = true; in parse_arg()
316 env.duration_sec = strtol(arg, NULL, 10); in parse_arg()
[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/arch/x86/kernel/fpu/
H A Dregset.c330 static void __convert_from_fxsr(struct user_i387_ia32_struct *env, in __convert_from_fxsr() argument
334 struct _fpreg *to = (struct _fpreg *) &env->st_space[0]; in __convert_from_fxsr()
338 env->cwd = fxsave->cwd | 0xffff0000u; in __convert_from_fxsr()
339 env->swd = fxsave->swd | 0xffff0000u; in __convert_from_fxsr()
340 env->twd = twd_fxsr_to_i387(fxsave); in __convert_from_fxsr()
343 env->fip = fxsave->rip; in __convert_from_fxsr()
344 env->foo = fxsave->rdp; in __convert_from_fxsr()
349 env->fcs = task_pt_regs(tsk)->cs; in __convert_from_fxsr()
351 savesegment(ds, env->fos); in __convert_from_fxsr()
353 env->fos = tsk->thread.ds; in __convert_from_fxsr()
[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/tools/testing/selftests/drivers/net/lib/py/
H A Denv.py14 env = os.environ.copy()
18 return ksft_setup(env)
33 env[pair[0]] = pair[1]
34 return ksft_setup(env)
39 Class for a single NIC / host env, with no remote end
44 self.env = _load_env_file(src_path)
46 if 'NETIF' in self.env:
47 self.dev = ip("link show dev " + self.env['NETIF'], json=True)[0]
85 self.env = _load_env_file(src_path)
96 if "NETIF" in self.env:
[all …]
H A Dload.py8 def __init__(self, env, port=None): argument
9 env.require_cmd("iperf3", remote=True)
11 self.env = env
18 self._iperf_client = cmd(f"iperf3 -c {env.addr} -P 16 -p {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"]
/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/Documentation/sphinx/
H A Dkerneldoc.py61 env = self.state.document.settings.env
62 cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno']
69 filename = env.config.kerneldoc_srctree + '/' + self.arguments[0]
73 env.note_dependency(os.path.abspath(filename))
105 for f in glob.glob(env.config.kerneldoc_srctree + '/' + pattern):
106 env.note_dependency(os.path.abspath(f))
112 kernellog.verbose(env.app,
123 kernellog.warn(env.app,
126 elif env.config.kerneldoc_verbosity > 0:
141 doc = str(env.srcdir) + "/" + env.docname + ":" + str(self.lineno)
[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/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/tools/perf/tests/
H A Dtopology.c98 if (!session->header.env.cpu in check_cpu_topology()
99 && strncmp(session->header.env.arch, "s390", 4) in check_cpu_topology()
100 && strncmp(session->header.env.arch, "aarch64", 7)) in check_cpu_topology()
109 if (!strncmp(session->header.env.arch, "ppc64le", 7)) { in check_cpu_topology()
114 TEST_ASSERT_VAL("Session header CPU map not set", session->header.env.cpu); in check_cpu_topology()
116 for (i = 0; i < session->header.env.nr_cpus_avail; i++) { in check_cpu_topology()
121 session->header.env.cpu[i].core_id, in check_cpu_topology()
122 session->header.env.cpu[i].socket_id); in check_cpu_topology()
132 session->header.env.cpu[cpu.cpu].core_id == id.core); in check_cpu_topology()
134 session->header.env in check_cpu_topology()
[all...]
/linux/tools/perf/arch/x86/util/
H A Denv.c3 #include "util/env.h"
4 #include "env.h"
8 struct perf_env env = { .total_mem = 0, }; in x86__is_amd_cpu() local
14 perf_env__cpuid(&env); in x86__is_amd_cpu()
15 is_amd = env.cpuid && strstarts(env.cpuid, "AuthenticAMD") ? 1 : -1; in x86__is_amd_cpu()
16 perf_env__exit(&env); in x86__is_amd_cpu()
/linux/drivers/of/
H A Ddevice.c217 * @env: Kernel object's userspace event reference to fill up
219 void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
229 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
230 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
233 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
239 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
242 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
248 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
257 int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
265 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
[all …]

12345678910>>...33