/tools/testing/selftests/efivarfs/ |
D | efivarfs.sh | 47 local file=$efivarfs_mount/$FUNCNAME-$test_guid 49 printf "$attrs\x00" > $file 51 if [ ! -e $file ]; then 52 echo "$file couldn't be created" >&2 56 if [ $(stat -c %s $file) -ne 5 ]; then 57 echo "$file has invalid size" >&2 64 local file=$efivarfs_mount/$FUNCNAME-$test_guid 66 : > $file 68 if [ ! -e $file ]; then 69 echo "$file can not be created without writing" >&2 [all …]
|
/tools/perf/util/ |
D | data.c | 24 static bool check_pipe(struct perf_data_file *file) in check_pipe() argument 28 int fd = perf_data_file__is_read(file) ? in check_pipe() 31 if (!file->path) { in check_pipe() 35 if (!strcmp(file->path, "-")) in check_pipe() 40 file->fd = fd; in check_pipe() 42 return file->is_pipe = is_pipe; in check_pipe() 45 static int check_backup(struct perf_data_file *file) in check_backup() argument 49 if (!stat(file->path, &st) && st.st_size) { in check_backup() 53 file->path); in check_backup() 55 rename(file->path, oldname); in check_backup() [all …]
|
D | data.h | 21 static inline bool perf_data_file__is_read(struct perf_data_file *file) in perf_data_file__is_read() argument 23 return file->mode == PERF_DATA_MODE_READ; in perf_data_file__is_read() 26 static inline bool perf_data_file__is_write(struct perf_data_file *file) in perf_data_file__is_write() argument 28 return file->mode == PERF_DATA_MODE_WRITE; in perf_data_file__is_write() 31 static inline int perf_data_file__is_pipe(struct perf_data_file *file) in perf_data_file__is_pipe() argument 33 return file->is_pipe; in perf_data_file__is_pipe() 36 static inline int perf_data_file__fd(struct perf_data_file *file) in perf_data_file__fd() argument 38 return file->fd; in perf_data_file__fd() 41 static inline unsigned long perf_data_file__size(struct perf_data_file *file) in perf_data_file__size() argument 43 return file->size; in perf_data_file__size() [all …]
|
/tools/testing/selftests/rcutorture/bin/ |
D | parse-torture.sh | 31 file="$1" 40 if test -f "$file" -a -r "$file" 44 echo $title unreadable torture output file: $file 50 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file 52 …nerrs=`grep --binary-files=text '!!!' $file | tail -1 | awk '{for (i=NF-8;i<=NF;i++) sum+=$i; } EN… 58 grep --binary-files=text 'torture:.*ver:' $file | grep --binary-files=text -v '(null)' | sed -e 's/… 84 if grep -q SUCCESS $file 89 echo " " $file 93 if grep -q "_HOTPLUG:" $file 96 echo " " $file [all …]
|
D | parse-console.sh | 27 file="$1" 32 if grep -Pq '\x00' < $file 36 … state dump start|\?\?\? Writer stall state|rcu_.*kthread starved for' < $file | grep -v 'ODEBUG: … 39 print_warning Assertion failure in $file $title
|
/tools/power/acpi/tools/acpidump/ |
D | apfiles.c | 95 ACPI_FILE file; in ap_open_output_file() local 105 file = fopen(pathname, "w"); in ap_open_output_file() 106 if (!file) { in ap_open_output_file() 113 gbl_output_file = file; in ap_open_output_file() 136 ACPI_FILE file; in ap_write_to_binary_file() local 176 file = fopen(filename, "wb"); in ap_write_to_binary_file() 177 if (!file) { in ap_write_to_binary_file() 182 actual = fwrite(table, 1, table_length, file); in ap_write_to_binary_file() 186 fclose(file); in ap_write_to_binary_file() 190 fclose(file); in ap_write_to_binary_file() [all …]
|
/tools/testing/selftests/cpufreq/ |
D | cpufreq.sh | 52 for file in $files; do 53 if [ -f $1/$file ]; then 54 printf "$file:" 55 cat $1/$file 58 read_cpufreq_files_in_dir "$1/$file" 84 for file in $files; do 85 if [ -f $1/$file ]; then 87 local wfile=$(ls -l $1/$file | awk '$1 ~ /^.*w.*/ { print $NF; }') 92 if [ $file != "scaling_setspeed" ]; then 93 local val=$(cat $1/$file) [all …]
|
/tools/objtool/ |
D | check.c | 41 struct instruction *find_insn(struct objtool_file *file, in find_insn() argument 46 hash_for_each_possible(file->insn_hash, insn, hash, offset) in find_insn() 53 static struct instruction *next_insn_same_sec(struct objtool_file *file, in next_insn_same_sec() argument 58 if (!next || &next->list == &file->insn_list || next->sec != insn->sec) in next_insn_same_sec() 64 static struct instruction *next_insn_same_func(struct objtool_file *file, in next_insn_same_func() argument 73 if (&next->list != &file->insn_list && next->func == func) in next_insn_same_func() 81 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func() 84 #define func_for_each_insn_all(file, func, insn) \ argument 85 for (insn = find_insn(file, func->sec, func->offset); \ 87 insn = next_insn_same_func(file, insn)) [all …]
|
D | sync-check.sh | 17 local file=$1 19 diff $file ../../$file > /dev/null || 20 echo "Warning: synced file at 'tools/objtool/$file' differs from latest kernel version at '$file'"
|
D | check.h | 69 struct instruction *find_insn(struct objtool_file *file, 72 #define for_each_insn(file, insn) \ argument 73 list_for_each_entry(insn, &file->insn_list, list) 75 #define sec_for_each_insn(file, sec, insn) \ argument 76 for (insn = find_insn(file, sec, 0); \ 77 insn && &insn->list != &file->insn_list && \
|
D | orc_gen.c | 25 int create_orc(struct objtool_file *file) in create_orc() argument 29 for_each_insn(file, insn) { in create_orc() 129 int create_orc_sections(struct objtool_file *file) in create_orc_sections() argument 141 sec = find_section_by_name(file->elf, ".orc_unwind"); in create_orc_sections() 149 for_each_sec(file, sec) { in create_orc_sections() 154 sec_for_each_insn(file, sec, insn) { in create_orc_sections() 172 sec = elf_create_section(file->elf, ".orc_unwind_ip", sizeof(int), idx); in create_orc_sections() 176 ip_relasec = elf_create_rela_section(file->elf, sec); in create_orc_sections() 181 u_sec = elf_create_section(file->elf, ".orc_unwind", in create_orc_sections() 186 for_each_sec(file, sec) { in create_orc_sections() [all …]
|
/tools/perf/ |
D | check-headers.sh | 46 file=$1 55 cmd="diff $opts ../$file ../../$file > /dev/null" 57 test -f ../../$file && 58 …al $cmd || echo "Warning: Kernel ABI header at 'tools/$file' differs from latest version at '$file…
|
/tools/testing/selftests/vm/ |
D | mlock2.h | 27 FILE *file; in seek_to_smaps_entry() local 37 file = fopen("/proc/self/smaps", "r"); in seek_to_smaps_entry() 38 if (!file) { in seek_to_smaps_entry() 43 while (getline(&line, &size, file) > 0) { in seek_to_smaps_entry() 57 fclose(file); in seek_to_smaps_entry() 58 file = NULL; in seek_to_smaps_entry() 62 return file; in seek_to_smaps_entry()
|
/tools/power/acpi/common/ |
D | cmfsize.c | 63 u32 cm_get_file_size(ACPI_FILE file) in cm_get_file_size() argument 71 current_offset = ftell(file); in cm_get_file_size() 76 status = fseek(file, 0, SEEK_END); in cm_get_file_size() 81 file_size = ftell(file); in cm_get_file_size() 88 status = fseek(file, current_offset, SEEK_SET); in cm_get_file_size()
|
/tools/testing/selftests/powerpc/dscr/ |
D | dscr_sysfs_test.c | 16 static int check_cpu_dscr_default(char *file, unsigned long val) in check_cpu_dscr_default() argument 21 fd = open(file, O_RDWR); in check_cpu_dscr_default() 47 char file[LEN_MAX]; in check_all_cpu_dscr_defaults() local 63 sprintf(file, "%s%s/dscr", CPU_PATH, dp->d_name); in check_all_cpu_dscr_defaults() 64 if (access(file, F_OK)) in check_all_cpu_dscr_defaults() 67 if (check_cpu_dscr_default(file, val)) in check_all_cpu_dscr_defaults()
|
/tools/perf/tests/shell/ |
D | trace+probe_vfs_getname.sh | 17 file=$(mktemp /tmp/temporary_file.XXXXX) 22 perf trace -e ${svc:-open} touch $file 2>&1 | \ 23 …+\( +[0-9]+\.[0-9]+ ms\): +touch\/[0-9]+ ${svc:-open}\(${txt}filename: +${file}, +flags: CREAT\|NO… 39 rm -f ${file}
|
D | record+script_probe_vfs_getname.sh | 17 file=$(mktemp /tmp/temporary_file.XXXXX) 21 perf record -o ${perfdata} -e probe:vfs_getname touch $file 27 … +[0-9]+ +\[[0-9]+\] +[0-9]+\.[0-9]+: +probe:vfs_getname: +\([[:xdigit:]]+\) +pathname=\"${file}\"" 39 rm -f ${file}
|
/tools/lib/symbol/ |
D | kallsyms.c | 20 FILE *file = fopen(filename, "r"); in kallsyms__parse() local 22 if (file == NULL) in kallsyms__parse() 27 while (!feof(file)) { in kallsyms__parse() 33 line_len = getline(&line, &n, file); in kallsyms__parse() 61 fclose(file); in kallsyms__parse()
|
/tools/testing/selftests/media_tests/ |
D | open_loop_test.sh | 4 file=/dev/media$1 6 echo $file 8 R=$(./media_device_open -d $file);
|
/tools/perf/pmu-events/arch/powerpc/ |
D | mapfile.csv | 2 # PVR,Version,JSON/file/pathname,Type 6 # Version could be used to track version of of JSON file 8 # JSON/file/pathname is the path to JSON file, relative 12 # Multiple PVRs could map to a single JSON file.
|
/tools/hv/ |
D | hv_kvp_daemon.c | 419 FILE *file; in kvp_get_os_info() local 442 file = fopen("/etc/os-release", "r"); in kvp_get_os_info() 443 if (file != NULL) { in kvp_get_os_info() 444 while (fgets(buf, sizeof(buf), file)) { in kvp_get_os_info() 487 fclose(file); in kvp_get_os_info() 492 file = fopen("/etc/SuSE-release", "r"); in kvp_get_os_info() 493 if (file != NULL) in kvp_get_os_info() 495 file = fopen("/etc/redhat-release", "r"); in kvp_get_os_info() 496 if (file != NULL) in kvp_get_os_info() 506 p = fgets(buf, sizeof(buf), file); in kvp_get_os_info() [all …]
|
/tools/vm/ |
D | slabinfo-gnuplot.sh | 58 local file=$1 66 check_file_exist "$file" 68 out_file=`basename "$file"` 74 wc_lines=`cat "$file" | wc -l` 101 plot "$file" $range u 2$xtic title 'SIZE' with boxes,\ 114 local file="" 123 file="$file"`basename "$i"` 144 echo "$file.png"
|
/tools/lib/api/fs/ |
D | tracing_path.c | 77 char *file; in get_tracing_file() local 79 if (asprintf(&file, "%s/%s", tracing_path, name) < 0) in get_tracing_file() 82 return file; in get_tracing_file() 85 void put_tracing_file(char *file) in put_tracing_file() argument 87 free(file); in put_tracing_file()
|
/tools/perf/tests/ |
D | attr.c | 56 if (1 != fwrite(buf, size, 1, file)) { \ 58 fclose(file); \ 69 FILE *file; in store_event() local 78 file = fopen(path, "w+"); in store_event() 79 if (!file) { in store_event() 84 if (fprintf(file, "[event-%d-%llu-%d]\n", in store_event() 87 fclose(file); in store_event() 135 fclose(file); in store_event()
|
/tools/testing/selftests/firmware/ |
D | fw_fallback.sh | 38 local file="$2" 55 cat "$file" >"$DIR"/"$name"/data 65 local file="$2" 90 local file="$2" 106 cat "$file" >"$DIR"/"$name"/data 117 local file="$2" 141 local file="$2"
|