Home
last modified time | relevance | path

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

/tools/power/acpi/tools/acpidump/
Dapfiles.c48 static int ap_is_existing_file(char *pathname);
62 static int ap_is_existing_file(char *pathname) in ap_is_existing_file() argument
67 if (!stat(pathname, &stat_info)) { in ap_is_existing_file()
93 int ap_open_output_file(char *pathname) in ap_open_output_file() argument
99 if (ap_is_existing_file(pathname) != 0) { in ap_open_output_file()
105 file = fopen(pathname, "w"); in ap_open_output_file()
107 fprintf(stderr, "Could not open output file: %s\n", pathname); in ap_open_output_file()
114 gbl_output_filename = pathname; in ap_open_output_file()
207 struct acpi_table_header *ap_get_table_from_file(char *pathname, in ap_get_table_from_file() argument
217 file = fopen(pathname, "rb"); in ap_get_table_from_file()
[all …]
Dacpidump.h97 int ap_dump_table_from_file(char *pathname);
114 int ap_open_output_file(char *pathname);
118 struct acpi_table_header *ap_get_table_from_file(char *pathname,
Dapdump.c398 int ap_dump_table_from_file(char *pathname) in ap_dump_table_from_file() argument
406 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file()
414 pathname); in ap_dump_table_from_file()
422 table->length, file_size, pathname); in ap_dump_table_from_file()
429 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
/tools/perf/util/
Dpath.c44 char *pathname = get_pathname(); in mkpath() local
47 len = vsnprintf(pathname, PATH_MAX, fmt, args); in mkpath()
51 return cleanup_path(pathname); in mkpath()
Dbuild-id.h16 int filename__sprintf_build_id(const char *pathname, char *sbuild_id);
39 int build_id_cache__list_build_ids(const char *pathname,
Dbuild-id.c115 int filename__sprintf_build_id(const char *pathname, char *sbuild_id) in filename__sprintf_build_id() argument
120 ret = filename__read_build_id(pathname, build_id, sizeof(build_id)); in filename__sprintf_build_id()
217 char *pathname; in build_id_cache__valid_id() local
221 pathname = build_id_cache__origname(sbuild_id); in build_id_cache__valid_id()
222 if (!pathname) in build_id_cache__valid_id()
225 if (!strcmp(pathname, DSO__NAME_KALLSYMS)) in build_id_cache__valid_id()
227 else if (pathname[0] == '/') in build_id_cache__valid_id()
228 ret = filename__sprintf_build_id(pathname, real_sbuild_id); in build_id_cache__valid_id()
233 free(pathname); in build_id_cache__valid_id()
596 int build_id_cache__list_build_ids(const char *pathname, in build_id_cache__list_build_ids() argument
[all …]
Dprobe-file.h55 int probe_cache__scan_sdt(struct probe_cache *pcache, const char *pathname);
Dprobe-file.c690 int probe_cache__scan_sdt(struct probe_cache *pcache, const char *pathname) in probe_cache__scan_sdt() argument
700 ret = get_sdt_note_list(&sdtlist, pathname); in probe_cache__scan_sdt()
727 sdtgrp, note->name, pathname, in probe_cache__scan_sdt()
Ddso.h244 bool is_kernel_module(const char *pathname, int cpumode);
Ddso.c173 bool is_kernel_module(const char *pathname, int cpumode) in is_kernel_module() argument
189 if (kmod_path__parse(&m, pathname)) { in is_kernel_module()
191 pathname); in is_kernel_module()
Dprobe-event.c650 int ntevs, const char *pathname) in post_process_offline_probe_trace_events() argument
657 map = dso__new_map(pathname); in post_process_offline_probe_trace_events()
658 if (!map || get_text_start_address(pathname, &stext) < 0) { in post_process_offline_probe_trace_events()
659 pr_warning("Failed to get ELF symbols for %s\n", pathname); in post_process_offline_probe_trace_events()
3152 char *pathname; in find_cached_events_all() local
3166 pathname = build_id_cache__origname(nd->s); in find_cached_events_all()
3167 ret = find_cached_events(pev, &tmp_tevs, pathname); in find_cached_events_all()
3172 free(pathname); in find_cached_events_all()
/tools/perf/
Dbuiltin-buildid-cache.c202 static int build_id_cache__purge_path(const char *pathname) in build_id_cache__purge_path() argument
208 err = build_id_cache__list_build_ids(pathname, &list); in build_id_cache__purge_path()
214 pr_debug("Removing %s %s: %s\n", pos->s, pathname, in build_id_cache__purge_path()
222 pr_debug("Purging %s: %s\n", pathname, err ? "FAIL" : "Ok"); in build_id_cache__purge_path()
Dbuiltin-trace.c920 static int trace__set_fd_pathname(struct thread *thread, int fd, const char *pathname) in trace__set_fd_pathname() argument
941 ttrace->paths.table[fd] = strdup(pathname); in trace__set_fd_pathname()
948 char linkname[PATH_MAX], pathname[PATH_MAX]; in thread__read_fd_path() local
960 if (lstat(linkname, &st) < 0 || st.st_size + 1 > (off_t)sizeof(pathname)) in thread__read_fd_path()
963 ret = readlink(linkname, pathname, sizeof(pathname)); in thread__read_fd_path()
968 pathname[ret] = '\0'; in thread__read_fd_path()
969 return trace__set_fd_pathname(thread, fd, pathname); in thread__read_fd_path()
/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c90 osl_get_customized_table(char *pathname,
1299 osl_get_customized_table(char *pathname, in osl_get_customized_table() argument
1314 table_dir = acpi_os_open_directory(pathname, "*", REQUEST_FILE_ONLY); in osl_get_customized_table()
1344 sprintf(table_filename, "%s/%4.4s%d", pathname, in osl_get_customized_table()
1347 sprintf(table_filename, "%s/%4.4s", pathname, in osl_get_customized_table()
/tools/include/uapi/linux/
Dbpf.h140 __aligned_u64 pathname; member
/tools/perf/Documentation/
Dperf-inject.txt45 kallsyms pathname
Dperf-annotate.txt48 vmlinux pathname.
Dperf-script.txt199 vmlinux pathname
202 kallsyms pathname
Dperf-diff.txt35 kallsyms pathname
Dperf-trace.txt109 Show tool stats such as number of times fd->pathname was discovered thru
Dperf-report.txt284 vmlinux pathname
287 kallsyms pathname
Dperf-record.txt286 pathname. You can also set the "record.build-id" config variable to
/tools/power/x86/turbostat/
Dturbostat.c289 char pathname[32]; in get_msr_fd() local
297 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in get_msr_fd()
298 fd = open(pathname, O_RDONLY); in get_msr_fd()
300 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in get_msr_fd()
2102 char pathname[32]; in check_dev_msr() local
2104 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_dev_msr()
2105 if (stat(pathname, &sb)) in check_dev_msr()
2118 char pathname[32]; in check_permissions() local
2133 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_permissions()
2134 if (euidaccess(pathname, R_OK)) { in check_permissions()
/tools/vm/
Dpage-types.c245 static int checked_open(const char *pathname, int flags) in checked_open() argument
247 int fd = open(pathname, flags); in checked_open()
250 perror(pathname); in checked_open()
/tools/perf/pmu-events/
DREADME132 is the pathname to the directory containing the CPU's JSON