| /tools/testing/selftests/powerpc/nx-gzip/ |
| A D | nx-gzip-test.sh | 22 local fname="nx-tempfile.$n" 27 dd if=/dev/urandom of=$fname bs=$size count=1 28 ./gzfht_test $fname 29 ./gunz_test ${fname}.nx.gz
|
| /tools/power/cpupower/lib/ |
| A D | cpuidle.c | 31 const char *fname) in cpuidle_state_file_exists() argument 38 cpu, idlestate, fname); in cpuidle_state_file_exists() 53 const char *fname, char *buf, in cpuidle_state_read_file() argument 61 cpu, idlestate, fname); in cpuidle_state_read_file() 88 const char *fname, in cpuidle_state_write_file() argument 96 cpu, idlestate, fname); in cpuidle_state_write_file() 322 static unsigned int sysfs_cpuidle_read_file(const char *fname, char *buf, in sysfs_cpuidle_read_file() argument 327 snprintf(path, sizeof(path), PATH_TO_CPU "cpuidle/%s", fname); in sysfs_cpuidle_read_file()
|
| A D | acpi_cppc.c | 17 static int acpi_cppc_read_file(unsigned int cpu, const char *fname, in acpi_cppc_read_file() argument 23 cpu, fname); in acpi_cppc_read_file()
|
| A D | cpupower.c | 118 static int sysfs_topology_read_file(unsigned int cpu, const char *fname, int *result) in sysfs_topology_read_file() argument 125 cpu, fname); in sysfs_topology_read_file()
|
| A D | cpufreq.c | 23 static unsigned int sysfs_cpufreq_read_file(unsigned int cpu, const char *fname, in sysfs_cpufreq_read_file() argument 29 cpu, fname); in sysfs_cpufreq_read_file() 36 const char *fname, in sysfs_cpufreq_write_file() argument 44 cpu, fname); in sysfs_cpufreq_write_file()
|
| /tools/perf/util/ |
| A D | probe-finder.c | 753 if (lineno != pf->lno || strtailcmp(fname, pf->fname) != 0) in probe_point_line_walker() 826 strtailcmp(fname, pf->fname) != 0) in probe_point_lazy_walker() 967 if (!fname) { in probe_point_search_cb() 971 if (pp->file && fname && strtailcmp(pp->file, fname)) in probe_point_search_cb() 976 pf->fname = fname; in probe_point_search_cb() 1048 if (!fname || strtailcmp(param->file, fname)) in pubname_search_cb() 1676 if (!tmp || (fname && strcmp(tmp, fname) != 0)) in debuginfo__find_probe_point() 1697 if (fname) { in debuginfo__find_probe_point() 1732 if ((strtailcmp(fname, lf->fname) != 0) || in line_range_walk_cb() 1791 if (!fname || strtailcmp(lr->file, fname)) in line_range_search_cb() [all …]
|
| A D | probe-finder.h | 63 const char *fname; /* Real file name */ member 102 const char *fname; /* File name */ member
|
| A D | dwarf-aux.c | 30 if (!fname) in cu_find_realpath() 39 if (strtailcmp(src, fname) == 0) in cu_find_realpath() 118 const char **fname, int *lineno) in cu_find_lineinfo() argument 127 *fname = die_get_decl_file(&die_mem); in cu_find_lineinfo() 134 *fname = dwarf_linesrc(line, NULL, NULL); in cu_find_lineinfo() 135 if (!*fname) in cu_find_lineinfo() 827 const char *fname; in __die_walk_funclines_cb() local 831 fname = die_get_call_file(in_die); in __die_walk_funclines_cb() 843 fname = die_get_decl_file(in_die); in __die_walk_funclines_cb() 867 const char *fname; in __die_walk_funclines() local [all …]
|
| A D | dwarf-aux.h | 16 const char *cu_find_realpath(Dwarf_Die *cu_die, const char *fname); 23 const char **fname, int *lineno); 108 typedef int (* line_walk_callback_t) (const char *fname, int lineno,
|
| /tools/power/cpupower/utils/helpers/ |
| A D | sysfs.c | 105 const char *fname) in sysfs_idlestate_file_exists() argument 112 cpu, idlestate, fname); in sysfs_idlestate_file_exists() 125 const char *fname, char *buf, size_t buflen) in sysfs_idlestate_read_file() argument 132 cpu, idlestate, fname); in sysfs_idlestate_read_file() 159 const char *fname, in sysfs_idlestate_write_file() argument 167 cpu, idlestate, fname); in sysfs_idlestate_write_file() 384 static unsigned int sysfs_cpuidle_read_file(const char *fname, char *buf, in sysfs_cpuidle_read_file() argument 389 snprintf(path, sizeof(path), PATH_TO_CPU "cpuidle/%s", fname); in sysfs_cpuidle_read_file()
|
| A D | sysfs.h | 13 const char *fname);
|
| /tools/testing/selftests/net/tcp_ao/lib/ |
| A D | utils.c | 24 __printf(3, 4) int test_echo(const char *fname, bool append, in test_echo() argument 32 f = fopen(fname, append ? "a" : "w"); in test_echo()
|
| A D | aolib.h | 272 extern __printf(3, 4) int test_echo(const char *fname, bool append,
|
| /tools/testing/selftests/mm/ |
| A D | soft-dirty.c | 137 const char *fname = "./soft-dirty-test-file"; in test_mprotect() local 147 test_fd = open(fname, O_RDWR | O_CREAT, 0664); in test_mprotect() 152 unlink(fname); in test_mprotect()
|
| /tools/lib/bpf/ |
| A D | btf_dump.c | 647 const char *fname, int lvl); 650 const char *fname, int lvl); 988 const char *fname; in btf_dump_emit_struct_def() local 992 fname = btf_name_of(d, m->name_off); in btf_dump_emit_struct_def() 1274 const char *fname; in btf_dump__emit_type_decl() local 1293 const char *fname, int lvl) in btf_dump_emit_type_decl() argument 1423 const char *fname, int lvl) in btf_dump_emit_type_chain() argument 1533 if (fname[0] && !last_was_ptr) in btf_dump_emit_type_chain() 1709 const char *fname, 2483 const char *fname, in btf_dump_dump_type_data() argument [all …]
|
| /tools/perf/util/scripting-engines/ |
| A D | trace-event-perl.c | 560 char fname[PATH_MAX]; in perl_generate_script() local 563 sprintf(fname, "%s.pl", outfile); in perl_generate_script() 564 ofp = fopen(fname, "w"); in perl_generate_script() 566 fprintf(stderr, "couldn't open %s\n", fname); in perl_generate_script() 760 fprintf(stderr, "generated Perl script: %s\n", fname); in perl_generate_script()
|
| A D | trace-event-python.c | 1991 char fname[PATH_MAX]; in python_generate_script() local 1994 sprintf(fname, "%s.py", outfile); in python_generate_script() 1995 ofp = fopen(fname, "w"); in python_generate_script() 1997 fprintf(stderr, "couldn't open %s\n", fname); in python_generate_script() 2171 fprintf(stderr, "generated Python script: %s\n", fname); in python_generate_script()
|
| /tools/testing/selftests/tc-testing/ |
| A D | tdc.py | 106 fname = '{}.py'.format(r) 109 pgpath = '{}/{}'.format(d, fname) 114 pnf.append(fname) 121 self.load_plugin(pgdir, fname) 982 fname = 'test-results.{}'.format(suffix) 984 fname = args.outfile 985 with open(fname, 'w') as fh: 989 os.chown(fname, uid=int(os.getenv('SUDO_UID')),
|
| /tools/testing/selftests/alsa/ |
| A D | test-pcmtest-driver.c | 63 char fname[128]; in get_test_results() local 65 sprintf(fname, "/sys/kernel/debug/pcmtest/%s", debug_name); in get_test_results() 67 f = fopen(fname, "r"); in get_test_results()
|
| /tools/hv/ |
| A D | hv_kvp_daemon.c | 129 char fname[MAX_FILE_NAME]; member 168 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file() 213 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state() 262 char *fname; in kvp_file_init() local 275 fname = kvp_file_info[i].fname; in kvp_file_init() 276 sprintf(fname, "%s/.kvp_pool_%d", KVP_CONFIG_LOC, i); in kvp_file_init() 277 fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */); in kvp_file_init()
|
| /tools/bpf/bpftool/ |
| A D | prog.c | 1173 static int get_run_data(const char *fname, void **data_ptr, unsigned int *size) in get_run_data() argument 1181 if (!fname) { in get_run_data() 1187 if (!strcmp(fname, "-")) in get_run_data() 1190 f = fopen(fname, "r"); in get_run_data() 1192 p_err("failed to open %s: %s", fname, strerror(errno)); in get_run_data() 1208 fname, strerror(errno)); in get_run_data() 1273 print_run_output(void *data, unsigned int size, const char *fname, in print_run_output() argument 1279 if (!fname) in print_run_output() 1282 if (!strcmp(fname, "-")) { in print_run_output() 1293 f = fopen(fname, "w"); in print_run_output() [all …]
|
| /tools/testing/selftests/proc/ |
| A D | proc-maps-race.c | 401 char fname[32]; in FIXTURE_SETUP() local 471 sprintf(fname, "/proc/%d/maps", self->pid); in FIXTURE_SETUP() 472 self->maps_fd = open(fname, O_RDONLY); in FIXTURE_SETUP()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | btf.c | 4960 const char *fname; in do_test_file() local 4969 fname = btf__name_by_offset(btf, t->name_off); in do_test_file() 4970 err = strcmp(fname, expected_fnames[i]); in do_test_file() 4975 err = strcmp(fname, expected_fnames[3 - i]); in do_test_file() 4976 if (CHECK(err, "incorrect fname %s", fname ? : "")) { in do_test_file()
|
| /tools/net/ynl/pyynl/ |
| A D | ynl_gen_c.py | 1911 fname = ri.op.render_name 1913 fname += '_dump' 1923 ri.cw.write_func_prot(ret, fname, args, doc=doc, suffix=suffix)
|