Home
last modified time | relevance | path

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

12

/tools/testing/selftests/powerpc/papr_attributes/
A Dattr_test.c76 char file_name[64]; in verify_energy_info() local
89 sprintf(file_name, "%s/%d/desc", path, id); in verify_energy_info()
90 f = fopen(file_name, "r"); in verify_energy_info()
94 sprintf(file_name, "%s/%d/value", path, id); in verify_energy_info()
95 f = fopen(file_name, "r"); in verify_energy_info()
100 sprintf(file_name, "%s/%d/value_desc", path, id); in verify_energy_info()
101 f = fopen(file_name, "r"); in verify_energy_info()
/tools/power/x86/amd_pstate_tracer/
A Damd_pstate_trace.py67 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
68 if os.path.exists(file_name):
84 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
85 if os.path.exists(file_name):
100 if os.path.exists(file_name):
185 def read_trace_data(file_name, cpu_mask): argument
192 data = open(file_name, 'r').read()
194 print('Error opening ', file_name)
254 file_name = "" variable
321 file_name = "/sys/kernel/tracing/trace" variable
[all …]
/tools/power/x86/intel_pstate_tracer/
A Dintel_pstate_tracer.py103 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
104 if os.path.exists(file_name):
119 …g_plot('"' + file_name + '" using {:d}:{:d} with linespoints linestyle 4 axis x1y1 title "P-State"…
124 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
125 if os.path.exists(file_name):
143 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
144 if os.path.exists(file_name):
153 …g_plot('plot "' + file_name + '" using {:d}:{:d} with linespoints linestyle 1 axis x1y1'.format(C_…
158 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
159 if os.path.exists(file_name):
[all …]
/tools/testing/selftests/powerpc/mm/
A Dsubpage_prot.c30 char *file_name; variable
197 fd = open(file_name, O_RDWR); in test_file()
215 file_name, (long long)filesize, fileblock); in test_file()
231 file_name = argv[1]; in main()
233 file_name = "tempfile"; in main()
/tools/perf/jvmti/
A Dlibjvmti.c138 copy_class_filename(const char * class_sign, const char * file_name, char * result, size_t max_leng… in copy_class_filename() argument
155 for (j = 0; i < (max_length - 1) && file_name && j < strlen(file_name); j++, i++) in copy_class_filename()
156 result[i] = file_name[j]; in copy_class_filename()
161 strlcpy(result, file_name, max_length); in copy_class_filename()
170 char *file_name = NULL; in get_source_filename() local
181 ret = (*jvmti)->GetSourceFileName(jvmti, decl_class, &file_name); in get_source_filename()
193 copy_class_filename(class_sign, file_name, fn, PATH_MAX); in get_source_filename()
207 (*jvmti)->Deallocate(jvmti, (unsigned char *)file_name); in get_source_filename()
/tools/testing/selftests/drivers/net/lib/py/
A Dremote_ssh.py33 file_name = self._tmpdir + "/" + self._mktmp() + os.path.basename(what)
39 return file_name
/tools/perf/
A Dbuiltin-evlist.c29 static int __cmd_evlist(const char *file_name, struct perf_attr_details *details) in __cmd_evlist() argument
34 .path = file_name, in __cmd_evlist()
A Dbuiltin-kvm.c1548 .path = kvm->file_name, in read_events()
1963 .file_name = file_name, in kvm_cmd_stat()
2011 rec_argv[i++] = strdup(file_name); in __cmd_record()
2029 rec_argv[i++] = strdup(file_name); in __cmd_report()
2048 rec_argv[i++] = strdup(file_name); in __cmd_buildid_list()
2059 const char *file_name = NULL; in cmd_kvm() local
2101 if (!file_name) { in cmd_kvm()
2102 file_name = get_filename_for_perf_kvm(); in cmd_kvm()
2104 if (!file_name) { in cmd_kvm()
2111 return __cmd_record(file_name, argc, argv); in cmd_kvm()
[all …]
A Dbuiltin-config.c38 static int set_config(struct perf_config_set *set, const char *file_name) in set_config() argument
48 fp = fopen(file_name, "w"); in set_config()
/tools/hv/
A Dhv_fcopy_uio_daemon.c114 static int hv_fcopy_create_file(char *file_name, char *path_name, __u32 flags) in hv_fcopy_create_file() argument
122 path_name, file_name) >= sizeof(target_fname)) { in hv_fcopy_create_file()
123 syslog(LOG_ERR, "target file name is too long: %s/%s", path_name, file_name); in hv_fcopy_create_file()
348 char file_name[W_MAX_PATH], path_name[W_MAX_PATH]; in hv_fcopy_start() local
351 wcstoutf8(file_name, smsg_in->file_name, W_MAX_PATH - 1); in hv_fcopy_start()
354 return hv_fcopy_create_file(file_name, path_name, smsg_in->copy_flags); in hv_fcopy_start()
/tools/testing/selftests/bpf/prog_tests/
A Dcgroup_hierarchical_stats.c193 get_attach_counter(unsigned long long cgroup_id, const char *file_name) in get_attach_counter() argument
199 snprintf(path, 128, "%s%s", BPFFS_ATTACH_COUNTERS, file_name); in get_attach_counter()
247 int cgroup_fd, const char *file_name) in setup_cgroup_iter() argument
268 snprintf(path, 128, "%s%s", BPFFS_ATTACH_COUNTERS, file_name); in setup_cgroup_iter()
A Dfill_link_info.c105 if (!info.perf_event.uprobe.file_name) { in verify_perf_link_info()
106 info.perf_event.uprobe.file_name = ptr_to_u64(&buf); in verify_perf_link_info()
113 err = strncmp(u64_to_ptr(info.perf_event.uprobe.file_name), UPROBE_FILE, in verify_perf_link_info()
/tools/verification/rvgen/rvgen/
A Dgenerator.py207 def __write_file(self, file_name, content): argument
209 file = open(file_name, 'w')
211 print("Fail writing to file: %s" % file_name)
217 def _create_file(self, file_name, content): argument
218 path = "%s/%s" % (self.name, file_name)
/tools/perf/util/
A Dvdso.c250 const char *file_name; in __machine__findnew_compat() local
257 file_name = vdso__get_compat_file(vdso_file); in __machine__findnew_compat()
258 if (!file_name) in __machine__findnew_compat()
261 return __machine__addnew_vdso(machine, vdso_file->dso_name, file_name); in __machine__findnew_compat()
A Dconfig.h49 int perf_config_set__collect(struct perf_config_set *set, const char *file_name,
A Dunwind-libdw.c26 const char *file_name, const char *debuglink_file __maybe_unused, in __find_debuginfo() argument
32 if (dso__symsrc_filename(dso) && strcmp(file_name, dso__symsrc_filename(dso))) in __find_debuginfo()
A Dkvm-stat.h86 const char *file_name; member
/tools/perf/scripts/python/
A Dparallel-perf.py262 def ReadHeader(perf, file_name): argument
366 file_name = p.Value()
367 if not os.path.exists(file_name):
369 return file_name
389 def PerfDoubleQuickCommands(cmd, file_name): argument
393 times_cmd = ["perf", "script", "--ns", "--input", file_name, "--itrace=qqi"]
490 def SplitTimeRangesByTraceDataDensity(time_ranges, cpus, nr, cmd, file_name, per_cpu, min_size, min… argument
495 cnts_cmd, times_cmd = PerfDoubleQuickCommands(cmd, file_name)
739 self.file_name = DetermineInputFileName(self.cmd)
740 self.hdr = ReadHeader(self.perf, self.file_name)
[all …]
/tools/lib/bpf/
A Dzip.c298 int zip_archive_find_entry(struct zip_archive *archive, const char *file_name, in zip_archive_find_entry() argument
301 size_t file_name_length = strlen(file_name); in zip_archive_find_entry()
323 memcmp(file_name, archive->data + offset, file_name_length) == 0) { in zip_archive_find_entry()
/tools/testing/selftests/bpf/
A Dveristat.c102 char *file_name; member
110 char *file_name; member
2231 cmp = strcmp(s1->file_name, s2->file_name); in cmp_stat()
2282 cmp = strcmp(s1->file_name, s2->file_name); in cmp_prog_stats()
2384 cmp = strcmp(s1->file_name, s2->file_name); in cmp_join_stats()
2538 if (!st->file_name) in parse_stat_value()
2705 free(st->file_name); in parse_stats_csv()
2903 r = strcmp(base->file_name, comp->file_name); in cmp_stats_key()
3053 join->file_name = base->file_name; in handle_comparison_mode()
3060 join->file_name = base->file_name; in handle_comparison_mode()
[all …]
/tools/testing/selftests/net/
A Dbpf_offload.py219 def bpftool_prog_load(sample, file_name, maps=[], prog_type="xdp", dev=None, argument
221 args = "prog load %s %s" % (os.path.join(bpf_test_dir, sample), file_name)
233 files.append(file_name)
539 def pin_prog(file_name, idx=0): argument
542 bpftool("prog pin id %d %s" % (prog["id"], file_name))
543 files.append(file_name)
545 return file_name, bpf_pinned(file_name)
547 def pin_map(file_name, idx=0, expected=1): argument
550 bpftool("map pin id %d %s" % (m["id"], file_name))
551 files.append(file_name)
[all …]
/tools/bpf/bpftool/
A Dcommon.c315 int mount_bpffs_for_file(const char *file_name) in mount_bpffs_for_file() argument
322 if (access(file_name, F_OK) != -1) { in mount_bpffs_for_file()
323 p_err("can't pin BPF object: path '%s' already exists", file_name); in mount_bpffs_for_file()
327 temp_name = strdup(file_name); in mount_bpffs_for_file()
355 file_name, err_str); in mount_bpffs_for_file()
A Dlink.c380 u64_to_ptr(info->perf_event.uprobe.file_name)); in show_perf_event_uprobe_json()
818 buf = u64_to_ptr(info->perf_event.uprobe.file_name); in show_perf_event_uprobe_plain()
1090 if (!info.perf_event.uprobe.file_name) { in do_show_link()
1091 info.perf_event.uprobe.file_name = ptr_to_u64(&buf); in do_show_link()
/tools/perf/tests/
A Ddlfilter-test.c212 static int write_prog(char *file_name) in write_prog() argument
214 int fd = creat(file_name, 0644); in write_prog()
/tools/testing/selftests/mm/
A Dksm_tests.c101 const char *file_name = "/proc/self/ksm_stat"; in ksm_print_procfs() local
103 FILE *f = fopen(file_name, "r"); in ksm_print_procfs()
106 fprintf(stderr, "f %s\n", file_name); in ksm_print_procfs()

Completed in 55 milliseconds

12