/tools/testing/selftests/powerpc/nx-gzip/ |
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
|
D | gzfht_test.c | 144 int read_alloc_input_file(char *fname, char **buf, size_t *bufsize) in read_alloc_input_file() argument 151 if (stat(fname, &statbuf)) { in read_alloc_input_file() 152 perror(fname); in read_alloc_input_file() 155 fp = fopen(fname, "r"); in read_alloc_input_file() 157 perror(fname); in read_alloc_input_file() 163 perror(fname); in read_alloc_input_file() 172 int write_output_file(char *fname, char *buf, size_t bufsize) in write_output_file() argument 177 fp = fopen(fname, "w"); in write_output_file() 179 perror(fname); in write_output_file() 184 perror(fname); in write_output_file()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | test_local_storage.c | 15 char fname[PATH_MAX] = "/tmp/fileXXXXXX"; in create_and_unlink_file() local 18 fd = mkstemp(fname); in create_and_unlink_file() 23 unlink(fname); in create_and_unlink_file()
|
D | btf.c | 4236 const char *fname; in do_test_file() local 4245 fname = btf__name_by_offset(btf, t->name_off); in do_test_file() 4246 err = strcmp(fname, expected_fnames[i]); in do_test_file() 4251 err = strcmp(fname, expected_fnames[3 - i]); in do_test_file() 4252 if (CHECK(err, "incorrect fname %s", fname ? : "")) { in do_test_file()
|
/tools/power/cpupower/lib/ |
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() 314 static unsigned int sysfs_cpuidle_read_file(const char *fname, char *buf, in sysfs_cpuidle_read_file() argument 319 snprintf(path, sizeof(path), PATH_TO_CPU "cpuidle/%s", fname); in sysfs_cpuidle_read_file()
|
D | cpupower.c | 89 static int sysfs_topology_read_file(unsigned int cpu, const char *fname, int *result) in sysfs_topology_read_file() argument 96 cpu, fname); in sysfs_topology_read_file()
|
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/power/cpupower/utils/helpers/ |
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()
|
D | sysfs.h | 13 const char *fname);
|
/tools/perf/util/ |
D | dwarf-aux.c | 22 const char *cu_find_realpath(Dwarf_Die *cu_die, const char *fname) in cu_find_realpath() argument 29 if (!fname) in cu_find_realpath() 38 if (strtailcmp(src, fname) == 0) in cu_find_realpath() 117 const char **fname, int *lineno) in cu_find_lineinfo() argument 126 *fname = dwarf_decl_file(&die_mem); in cu_find_lineinfo() 133 *fname = dwarf_linesrc(line, NULL, NULL); in cu_find_lineinfo() 134 if (!*fname) in cu_find_lineinfo() 764 const char *fname; in __die_walk_funclines_cb() local 768 fname = die_get_call_file(in_die); in __die_walk_funclines_cb() 770 if (fname && lineno > 0 && die_entrypc(in_die, &addr) == 0) { in __die_walk_funclines_cb() [all …]
|
D | dwarf-aux.h | 16 const char *cu_find_realpath(Dwarf_Die *cu_die, const char *fname); 23 const char **fname, int *lineno); 99 typedef int (* line_walk_callback_t) (const char *fname, int lineno,
|
D | probe-finder.c | 800 .file = pf->fname, in find_best_scope() 817 static int verify_representive_line(struct probe_finder *pf, const char *fname, in verify_representive_line() argument 829 if (strcmp(fname, __fname) || lineno == __lineno) in verify_representive_line() 850 static int probe_point_line_walker(const char *fname, int lineno, in probe_point_line_walker() argument 857 if (lineno != pf->lno || strtailcmp(fname, pf->fname) != 0) in probe_point_line_walker() 860 if (verify_representive_line(pf, fname, lineno, addr)) in probe_point_line_walker() 884 const char *fname, const char *pat) in find_lazy_match_lines() argument 893 fp = fopen(fname, "r"); in find_lazy_match_lines() 895 pr_warning("Failed to open %s: %s\n", fname, in find_lazy_match_lines() 918 pr_debug("No matched lines found in %s.\n", fname); in find_lazy_match_lines() [all …]
|
D | probe-finder.h | 77 const char *fname; /* Real file name */ member 116 const char *fname; /* File name */ member
|
/tools/lib/bpf/ |
D | btf_dump.c | 602 const char *fname, int lvl); 605 const char *fname, int lvl); 940 const char *fname; in btf_dump_emit_struct_def() local 944 fname = btf_name_of(d, m->name_off); in btf_dump_emit_struct_def() 953 btf_dump_emit_type_decl(d, m->type, fname, lvl + 1); in btf_dump_emit_struct_def() 1146 const char *fname; in btf_dump__emit_type_decl() local 1156 fname = OPTS_GET(opts, field_name, ""); in btf_dump__emit_type_decl() 1159 btf_dump_emit_type_decl(d, id, fname, lvl); in btf_dump__emit_type_decl() 1165 const char *fname, int lvl) in btf_dump_emit_type_decl() argument 1230 btf_dump_emit_type_chain(d, &decl_stack, fname, lvl); in btf_dump_emit_type_decl() [all …]
|
/tools/testing/selftests/tc-testing/ |
D | tdc.py | 94 fname = '{}.py'.format(r) 97 pgpath = '{}/{}'.format(d, fname) 102 pnf.append(fname) 109 self.load_plugin(pgdir, fname) 740 fname = 'test-results.{}'.format(suffix) 742 fname = args.outfile 743 with open(fname, 'w') as fh: 747 os.chown(fname, uid=int(os.getenv('SUDO_UID')),
|
/tools/lib/traceevent/Documentation/ |
D | libtraceevent-func_find.txt | 49 const char *fname = tep_find_function(tep, addr); 52 /* addr is in function named fname, starting at fstart address, at offset (addr - fstart) */
|
D | libtraceevent-func_apis.txt | 120 const char *fname; 128 fname = tep_find_function(tep, addr); 132 addr is in function named fname, starting at fstart address,
|
/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 546 char fname[PATH_MAX]; in perl_generate_script() local 549 sprintf(fname, "%s.pl", outfile); in perl_generate_script() 550 ofp = fopen(fname, "w"); in perl_generate_script() 552 fprintf(stderr, "couldn't open %s\n", fname); in perl_generate_script() 746 fprintf(stderr, "generated Perl script: %s\n", fname); in perl_generate_script()
|
D | trace-event-python.c | 1712 char fname[PATH_MAX]; in python_generate_script() local 1715 sprintf(fname, "%s.py", outfile); in python_generate_script() 1716 ofp = fopen(fname, "w"); in python_generate_script() 1718 fprintf(stderr, "couldn't open %s\n", fname); in python_generate_script() 1888 fprintf(stderr, "generated Python script: %s\n", fname); in python_generate_script()
|
/tools/perf/pmu-events/ |
D | jevents.c | 711 static char *file_name_to_table_name(char *fname) in file_name_to_table_name() argument 723 n = asprintf(&tblname, "pme_%s", fname); in file_name_to_table_name() 726 strerror(errno), fname); in file_name_to_table_name() 740 prog, c, basename(fname)); in file_name_to_table_name() 817 char *cpuid, *version, *type, *fname; in process_mapfile() local 838 fname = strtok_r(NULL, ",", &save); in process_mapfile() 841 tblname = file_name_to_table_name(fname); in process_mapfile()
|
/tools/hv/ |
D | hv_kvp_daemon.c | 116 char fname[MAX_FILE_NAME]; member 155 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file() 186 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state() 235 char *fname; in kvp_file_init() local 248 fname = kvp_file_info[i].fname; in kvp_file_init() 249 sprintf(fname, "%s/.kvp_pool_%d", KVP_CONFIG_LOC, i); in kvp_file_init() 250 fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */); in kvp_file_init()
|
/tools/bpf/bpftool/ |
D | prog.c | 1015 static int get_run_data(const char *fname, void **data_ptr, unsigned int *size) in get_run_data() argument 1023 if (!fname) { in get_run_data() 1029 if (!strcmp(fname, "-")) in get_run_data() 1032 f = fopen(fname, "r"); in get_run_data() 1034 p_err("failed to open %s: %s", fname, strerror(errno)); in get_run_data() 1050 fname, strerror(errno)); in get_run_data() 1115 print_run_output(void *data, unsigned int size, const char *fname, in print_run_output() argument 1121 if (!fname) in print_run_output() 1124 if (!strcmp(fname, "-")) { in print_run_output() 1135 f = fopen(fname, "w"); in print_run_output() [all …]
|