Home
last modified time | relevance | path

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

123

/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/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/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 "performance",\\'.format(C_SAMPLE, C_CORE))
117 g_plot('"' + file_name + '" using {:d}:{:d} with linespoints linestyle 2 axis x1y2 title "scaled-busy",\\'.format(C_SAMPLE, C_SCALED))
118 g_plot('"' + file_name + '" using {:d}:{:d} with linespoints linestyle 3 axis x1y2 title "io-boost",\\'.format(C_SAMPLE, C_BOOST))
119 g_plot('"' + file_name + '" using {:d}:{:d} with linespoints linestyle 4 axis x1y1 title "P-State"'.format(C_SAMPLE, C_TO))
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 "performance",\\'.format(C_ELAPSED, C_CORE))
136 g_plot('"' + file_name
[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/testing/selftests/powerpc/mm/ !
H 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()
/linux/tools/perf/jvmti/ !
H A Dlibjvmti.c138 copy_class_filename(const char * class_sign, const char * file_name, char * result, size_t max_length) 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/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/fs/notify/ !
H A Dfsnotify.c250 struct qstr *file_name = NULL; in __fsnotify_parent() local
281 file_name = &name.name; in __fsnotify_parent()
287 ret = fsnotify(mask, data, data_type, p_inode, file_name, inode, 0); in __fsnotify_parent()
289 if (file_name) in __fsnotify_parent()
381 struct inode *dir, const struct qstr *file_name, in send_to_group() argument
421 file_name, cookie, iter_info); in send_to_group()
425 file_name, cookie, iter_info); in send_to_group()
533 * if @file_name is not NULL, this is the directory that
534 * @file_name is relative to
535 * @file_name
542 fsnotify(__u32 mask,const void * data,int data_type,struct inode * dir,const struct qstr * file_name,struct inode * inode,u32 cookie) fsnotify() argument
[all...]
/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()
345 * file_name and path_name should have same length with appropriate in hv_fcopy_start()
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/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/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/testing/selftests/drivers/net/lib/py/ !
H A Dremote_ssh.py33 file_name = self._tmpdir + "/" + self._mktmp() + os.path.basename(what)
38 cmd(f"scp {what} {self.name}:{file_name}")
39 return file_name
/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.PIPE).stdout.read().decode("utf-8")
366 file_name = p.Value()
367 if not os.path.exists(file_name):
368 raise Exception(f"perf command input file '{file_name}' not found")
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_interval, verbosity): argument
495 cnts_cmd, times_cmd = PerfDoubleQuickCommands(cmd, file_name)
[all...]
/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
806 [FILE_NAME] = { "File", {"file_name", "filename", "file"}, true /* asc */, true /* left */ },
967 free(stats[i].file_name); in free_verif_stats()
1623 stats->file_name = strdup(base_filename); in process_prog()
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()
2296 *str_val = s->file_name; 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/lib/bpf/ !
H 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()
/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/fs/notify/fanotify/ !
H A Dfanotify.c749 struct inode *dir, const struct qstr *file_name, in fanotify_alloc_event() argument
793 file_name = NULL; in fanotify_alloc_event()
802 * 'dirid' and 'file_name' are the old parent+name and in fanotify_alloc_event()
822 file_name = NULL; in fanotify_alloc_event()
850 } else if (name_event && (file_name || moved || child)) { in fanotify_alloc_event()
851 event = fanotify_alloc_name_event(dirid, fsid, file_name, child, in fanotify_alloc_event()
928 const struct qstr *file_name, u32 cookie, in fanotify_handle_event() argument
983 file_name, &fsid, match_mask); in fanotify_handle_event()
/linux/tools/perf/ !
H 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()

123