Home
last modified time | relevance | path

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

12

/tools/perf/util/
Denv.c10 void perf_env__exit(struct perf_env *env) in perf_env__exit() argument
14 zfree(&env->hostname); in perf_env__exit()
15 zfree(&env->os_release); in perf_env__exit()
16 zfree(&env->version); in perf_env__exit()
17 zfree(&env->arch); in perf_env__exit()
18 zfree(&env->cpu_desc); in perf_env__exit()
19 zfree(&env->cpuid); in perf_env__exit()
20 zfree(&env->cmdline); in perf_env__exit()
21 zfree(&env->cmdline_argv); in perf_env__exit()
22 zfree(&env->sibling_cores); in perf_env__exit()
[all …]
Denv.h61 void perf_env__exit(struct perf_env *env);
63 int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]);
65 int perf_env__read_cpu_topology_map(struct perf_env *env);
69 const char *perf_env__raw_arch(struct perf_env *env);
70 int perf_env__nr_cpus_avail(struct perf_env *env);
Dunwind-libunwind.c35 if (!thread->mg->machine->env || !thread->mg->machine->env->arch) in unwind__prepare_access()
42 arch = normalize_arch(thread->mg->machine->env->arch); in unwind__prepare_access()
Dllvm-utils.c65 char *env, *path, *tmp = NULL; in search_program() local
80 env = getenv("PATH"); in search_program()
81 if (!env) in search_program()
83 env = strdup(env); in search_program()
84 if (!env) in search_program()
88 path = strtok_r(env, ":", &tmp); in search_program()
99 free(env); in search_program()
Dheader.c1187 fprintf(fp, "# hostname : %s\n", ff->ph->env.hostname); in print_hostname()
1192 fprintf(fp, "# os release : %s\n", ff->ph->env.os_release); in print_osrelease()
1197 fprintf(fp, "# arch : %s\n", ff->ph->env.arch); in print_arch()
1202 fprintf(fp, "# cpudesc : %s\n", ff->ph->env.cpu_desc); in print_cpudesc()
1207 fprintf(fp, "# nrcpus online : %u\n", ff->ph->env.nr_cpus_online); in print_nrcpus()
1208 fprintf(fp, "# nrcpus avail : %u\n", ff->ph->env.nr_cpus_avail); in print_nrcpus()
1213 fprintf(fp, "# perf version : %s\n", ff->ph->env.version); in print_version()
1220 nr = ff->ph->env.nr_cmdline; in print_cmdline()
1225 fprintf(fp, "%s ", ff->ph->env.cmdline_argv[i]); in print_cmdline()
1232 int cpu_nr = ph->env.nr_cpus_avail; in print_cpu_topology()
[all …]
Dheader.h79 struct perf_env env; member
Dhist.h432 struct perf_env *env);
440 struct perf_env *env __maybe_unused) in perf_evlist__tui_browse_hists()
Ddata-convert-bt.c1337 ncpus = ph->env.nr_cpus_avail ?: MAX_CPUS; in setup_streams()
1372 ADD("host", header->env.hostname); in ctf_writer__setup_env()
1374 ADD("release", header->env.os_release); in ctf_writer__setup_env()
1375 ADD("version", header->env.version); in ctf_writer__setup_env()
1376 ADD("machine", header->env.arch); in ctf_writer__setup_env()
Devent.c1504 struct perf_env *env = machine->env; in machine__resolve() local
1506 if (env && env->cpu) in machine__resolve()
1507 al->socket = env->cpu[al->cpu].socket_id; in machine__resolve()
Dmachine.h40 struct perf_env *env; member
Devlist.h101 struct perf_env *env; member
Dsymbol.c2010 static int vmlinux_path__init(struct perf_env *env) in vmlinux_path__init() argument
2030 if (env) { in vmlinux_path__init()
2031 kernel_version = env->os_release; in vmlinux_path__init()
2116 int symbol__init(struct perf_env *env) in symbol__init() argument
2131 if (symbol_conf.try_vmlinux_path && vmlinux_path__init(env) < 0) in symbol__init()
/tools/perf/arch/
Dcommon.c88 char *env = getenv("PATH"); in lookup_path() local
90 if (!env) in lookup_path()
93 env = strdup(env); in lookup_path()
94 if (!env) in lookup_path()
97 path = strtok_r(env, ":", &tmp); in lookup_path()
106 free(env); in lookup_path()
153 static int perf_env__lookup_binutils_path(struct perf_env *env, in perf_env__lookup_binutils_path() argument
162 arch = normalize_arch(env->arch); in perf_env__lookup_binutils_path()
230 int perf_env__lookup_objdump(struct perf_env *env) in perf_env__lookup_objdump() argument
236 if (env->arch == NULL) in perf_env__lookup_objdump()
[all …]
Dcommon.h9 int perf_env__lookup_objdump(struct perf_env *env);
/tools/perf/tests/
Dtopology.c88 if (!session->header.env.cpu) in check_cpu_topology()
91 for (i = 0; i < session->header.env.nr_cpus_avail; i++) { in check_cpu_topology()
95 session->header.env.cpu[i].core_id, in check_cpu_topology()
96 session->header.env.cpu[i].socket_id); in check_cpu_topology()
101 (session->header.env.cpu[map->map[i]].core_id == (cpu_map__get_core(map, i, NULL) & 0xffff))); in check_cpu_topology()
104 (session->header.env.cpu[map->map[i]].socket_id == cpu_map__get_socket(map, i, NULL))); in check_cpu_topology()
/tools/lib/subcmd/
Drun-command.c115 if (cmd->env) { in start_command()
116 for (; *cmd->env; cmd->env++) { in start_command()
117 if (strchr(*cmd->env, '=')) in start_command()
118 putenv((char*)*cmd->env); in start_command()
120 unsetenv(*cmd->env); in start_command()
Dexec-cmd.c116 char *env; in get_argv_exec_path() local
121 env = getenv(subcmd_config.exec_path_env); in get_argv_exec_path()
122 if (env && *env) in get_argv_exec_path()
123 return strdup(env); in get_argv_exec_path()
Drun-command.h43 const char *const *env; member
/tools/perf/ui/browsers/
Dheader.c97 int tui__header_window(struct perf_env *env) in tui__header_window() argument
106 session = container_of(env, struct perf_session, header.env); in tui__header_window()
Dhists.h14 struct perf_env *env; member
Dhists.c2333 struct perf_env *env) in perf_evsel_browser__new() argument
2339 browser->env = env; in perf_evsel_browser__new()
2562 if (!objdump_path && perf_env__lookup_objdump(browser->env)) in do_annotate()
2922 struct perf_env *env) in perf_evsel__hists_browse() argument
2925 struct hist_browser *browser = perf_evsel_browser__new(evsel, hbt, env); in perf_evsel__hists_browse()
3085 if (env->arch) in perf_evsel__hists_browse()
3086 tui__header_window(env); in perf_evsel__hists_browse()
3289 struct perf_env *env; member
3384 menu->env); in perf_evsel_menu__run()
3442 struct perf_env *env) in __perf_evlist__tui_browse_hists() argument
[all …]
/tools/perf/
Dbuiltin-stat.c1919 static inline int perf_env__get_cpu(struct perf_env *env, struct cpu_map *map, int idx) in perf_env__get_cpu() argument
1928 if (cpu >= env->nr_cpus_avail) in perf_env__get_cpu()
1936 struct perf_env *env = data; in perf_env__get_socket() local
1937 int cpu = perf_env__get_cpu(env, map, idx); in perf_env__get_socket()
1939 return cpu == -1 ? -1 : env->cpu[cpu].socket_id; in perf_env__get_socket()
1944 struct perf_env *env = data; in perf_env__get_core() local
1945 int core = -1, cpu = perf_env__get_cpu(env, map, idx); in perf_env__get_core()
1948 int socket_id = env->cpu[cpu].socket_id; in perf_env__get_core()
1956 core = (socket_id << 16) | (env->cpu[cpu].core_id & 0xffff); in perf_env__get_core()
1962 static int perf_env__build_socket_map(struct perf_env *env, struct cpu_map *cpus, in perf_env__build_socket_map() argument
[all …]
Dbuiltin-annotate.c318 ret = perf_env__lookup_objdump(&session->header.env); in __cmd_annotate()
498 ret = symbol__init(&annotate.session->header.env); in cmd_annotate()
Dbuiltin-timechart.c1520 tchart->numcpus = ph->env.nr_cpus_avail; in process_header()
1527 if (svg_build_topology_map(ph->env.sibling_cores, in process_header()
1528 ph->env.nr_sibling_cores, in process_header()
1529 ph->env.sibling_threads, in process_header()
1530 ph->env.nr_sibling_threads)) in process_header()
1617 symbol__init(&session->header.env); in __cmd_timechart()
/tools/perf/ui/
Dbrowser.h68 int tui__header_window(struct perf_env *env);

12