Home
last modified time | relevance | path

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

123

/linux/tools/power/x86/amd_pstate_tracer/
H A Damd_pstate_trace.py67 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
68 if os.path.exists(file_name):
79 g_plot('plot "' + file_name + '" using {:d}:{:d} with linespoints linestyle 1 axis x1y1'.format(C_ELAPSED, C_FREQ))
84 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
85 if os.path.exists(file_name):
94 g_plot('plot "' + file_name + '" using {:d}:{:d} with linespoints linestyle 1 axis x1y1'.format(C_ELAPSED, C_DES_PERF))
99 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
100 if os.path.exists(file_name):
110 g_plot('plot "' + file_name + '" using {:d}:{:d} with linespoints linestyle 1 axis x1y1'.format(C_ELAPSED, C_LOAD))
185 def read_trace_data(file_name, cpu_mas argument
254 file_name = "" global() variable
278 file_name = os.path.join(location, arg) global() variable
321 file_name = "/sys/kernel/tracing/trace" global() variable
[all...]
/linux/tools/testing/selftests/powerpc/papr_attributes/
H 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()
/linux/tools/power/x86/intel_pstate_tracer/
H A Dintel_pstate_tracer.py103 file_name = 'cpu{:0>3}.csv'.format(cpu_index)
104 if os.path.exists(file_name):
116 …g_plot('plot "' + file_name + '" using {:d}:{:d} with linespoints linestyle 1 axis x1y2 title "per…
117 …g_plot('"' + file_name + '" using {:d}:{:d} with linespoints linestyle 2 axis x1y2 title "scaled-b…
118 …g_plot('"' + file_name + '" using {:d}:{:d} with linespoints linestyle 3 axis x1y2 title "io-boost…
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):
135 …g_plot('plot "' + file_name + '" using {:d}:{:d} with linespoints linestyle 1 axis x1y2 title "per…
136 …g_plot('"' + file_name + '" using {:d}:{:d} with linespoints linestyle 2 axis x1y2 title "scaled-b…
[all …]
/linux/drivers/cpufreq/
H A Dcpufreq_governor.h54 #define gov_show_one(_gov, file_name) \ argument
55 static ssize_t file_name##_show \
60 return sprintf(buf, "%u\n", tuners->file_name); \
63 #define gov_show_one_common(file_name) \ argument
64 static ssize_t file_name##_show \
68 return sprintf(buf, "%u\n", dbs_data->file_name); \
/linux/tools/perf/jvmti/
H 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()
/linux/tools/hv/
H 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()
/linux/drivers/md/dm-vdo/
H A Dpermassert.c11 int vdo_assertion_failed(const char *expression_string, const char *file_name, in vdo_assertion_failed() argument
20 expression_string, file_name, line_number); in vdo_assertion_failed()
H A Dpermassert.h41 int vdo_assertion_failed(const char *expression_string, const char *file_name,
/linux/scripts/
H A Dinsert-sys-cert.c201 static void *map_file(char *file_name, int *size) in map_file() argument
207 fd = open(file_name, O_RDWR); in map_file()
209 perror(file_name); in map_file()
228 static char *read_file(char *file_name, int *size) in read_file() argument
234 fd = open(file_name, O_RDONLY); in read_file()
236 perror(file_name); in read_file()
/linux/tools/verification/rvgen/rvgen/
H 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)
/linux/scripts/gdb/linux/
H A Dbpf.py198 file_name = btf_str_by_offset(self.btf, file_name_off)
201 return fileno, file_name
232 fileno, file_name = linfo_iter.get_fileno()
233 if file_name is not None:
235 fileno, json.dumps(file_name)))
/linux/tools/testing/selftests/bpf/prog_tests/
H 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()
/linux/tools/perf/
H A Dbuiltin-kvm.c1548 .path = kvm->file_name, in read_events()
1688 rec_argv[i++] = STRDUP_FAIL_EXIT(kvm->file_name); in kvm_events_record()
1958 static int kvm_cmd_stat(const char *file_name, int argc, const char **argv) in kvm_cmd_stat() argument
1961 .file_name = file_name, in kvm_cmd_stat()
1996 static int __cmd_record(const char *file_name, int argc, const char **argv) in __cmd_record() argument
2013 rec_argv[i++] = STRDUP_FAIL_EXIT(file_name); in __cmd_record()
2032 static int __cmd_report(const char *file_name, int argc, const char **argv) in __cmd_report() argument
2044 rec_argv[i++] = STRDUP_FAIL_EXIT(file_name); in __cmd_report()
2060 __cmd_buildid_list(const char *file_name, int argc, const char **argv) in __cmd_buildid_list() argument
2072 rec_argv[i++] = STRDUP_FAIL_EXIT(file_name); in __cmd_buildid_list()
[all …]
H A Dbuiltin-evlist.c30 static int __cmd_evlist(const char *file_name, struct perf_attr_details *details) in __cmd_evlist() argument
35 .path = file_name, in __cmd_evlist()
/linux/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_scan.l463 include_file(char *file_name, include_type type)
471 newfile = fopen(file_name, "r");
485 "%s/%s", include_dir->directory, file_name);
493 perror(file_name);
512 yyfilename = strdup(file_name);
H A Daicasm.h86 void include_file(char *file_name, include_type type);
/linux/tools/perf/scripts/python/
H A Dparallel-perf.py262 def ReadHeader(perf, file_name): argument
263 …return subprocess.Popen([perf, "script", "--header-only", "--input", file_name], stdout=subprocess…
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)
[all …]
/linux/tools/testing/selftests/drivers/net/lib/py/
H A Dremote_ssh.py33 file_name = self._tmpdir + "/" + self._mktmp() + os.path.basename(what)
39 return file_name
/linux/tools/perf/util/
H 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()
/linux/tools/testing/selftests/bpf/
H A Dveristat.c102 char *file_name; member
110 char *file_name; member
825 [FILE_NAME] = { "File", {"file_name", "filename", "file"}, true /* asc */, true /* left */ }, in parse_stat_id_var()
986 free(stats[i].file_name); in parse_verif_log()
1576 static void dump(__u32 prog_id, enum dump_mode mode, const char *file_name, const char *prog_name) in process_prog()
1595 printf("DUMP (%s) %s/%s:\n", mode == DUMP_JITED ? "JITED" : "XLATED", file_name, prog_name); in process_prog()
1672 stats->file_name = strdup(base_filename); in append_preset_atom()
2285 cmp = strcmp(s1->file_name, s2->file_name); in cmp_prog_stats()
2336 cmp = strcmp(s1->file_name, s in fetch_join_stat_value()
[all...]
/linux/net/ethtool/
H A Dmodule.c296 module_flash_fw_schedule(struct net_device *dev, const char *file_name, in module_flash_fw_schedule() argument
311 file_name, &dev->dev); in module_flash_fw_schedule()
353 const char *file_name; in module_flash_fw() local
359 file_name = nla_data(tb[ETHTOOL_A_MODULE_FW_FLASH_FILE_NAME]); in module_flash_fw()
367 return module_flash_fw_schedule(dev, file_name, &params, skb, info); in module_flash_fw()
/linux/security/integrity/ima/
H A Dima_fs.c404 char file_name[NAME_MAX + 1]; in create_securityfs_measurement_lists() local
407 sprintf(file_name, "ascii_runtime_measurements_%s", in create_securityfs_measurement_lists()
409 dentry = securityfs_create_file(file_name, S_IRUSR | S_IRGRP, in create_securityfs_measurement_lists()
415 sprintf(file_name, "binary_runtime_measurements_%s", in create_securityfs_measurement_lists()
417 dentry = securityfs_create_file(file_name, S_IRUSR | S_IRGRP, in create_securityfs_measurement_lists()
/linux/tools/testing/selftests/net/
H 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))
[all...]
/linux/samples/rust/
H A Drust_debugfs_scoped.rs63 let file_name = CString::try_from_fmt(fmt!("{name_str}"))?; in create_file_write() localVariable
75 &file_name, in create_file_write()
/linux/drivers/scsi/elx/efct/
H A Defct_driver.c330 u8 file_name[256], fw_change_status = 0; in efct_request_firmware_update() local
334 snprintf(file_name, 256, "%s.grp", efct->model); in efct_request_firmware_update()
336 rc = request_firmware(&fw, file_name, &efct->pci->dev); in efct_request_firmware_update()
338 efc_log_debug(efct, "Firmware file(%s) not found.\n", file_name); in efct_request_firmware_update()

123