| /tools/testing/selftests/efivarfs/ |
| A D | efivarfs.sh | 67 file_cleanup $file 70 file_cleanup $file 77 : > $file 81 file_cleanup $file 89 ./create-read $file 113 file_cleanup $file 136 chattr -i $file 215 [ -e $file -a -s $file ] || exit 1 216 chattr -i $file 217 : > $file [all …]
|
| /tools/testing/selftests/rcutorture/bin/ |
| A D | parse-console.sh | 15 file="$1" 23 if test -f "$file" -a -r "$file" 27 echo $title unreadable console output file: $file 30 if grep -Pq '\x00' < $file 41 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file 101 echo " " $file 108 echo " " $file 174 for i in $file.*.diags 183 rm -f $file.diags 188 extract_ftrace_from_console $file > $file.ftrace [all …]
|
| /tools/testing/ktest/examples/bootconfigs/ |
| A D | verify-functiongraph.sh | 6 file="$1" 8 content=`cat $file` 16 file="$1" 18 content=`cat $file | sed -ne "/^$val/p"` 21 cat $file 27 file=$1 30 if ! grep -q "$val" $file ; then 31 echo "FAILED: $file does not contain $val" 32 cat $file 38 file=$1 [all …]
|
| A D | verify-tracing.sh | 6 file="$1" 8 content=`cat $file` 16 file="$1" 18 content=`cat $file | sed -ne "/^$val/p"` 21 cat $file 27 file=$1 30 if ! grep -q "$val" $file ; then 31 echo "FAILED: $file does not contain $val" 32 cat $file 38 file=$1 [all …]
|
| A D | verify-boottrace.sh | 6 file="$1" 8 content=`cat $file` 16 file="$1" 18 content=`cat $file | sed -ne "/^$val/p"` 21 cat $file 27 file=$1 30 if ! grep -q "$val" $file ; then 31 echo "FAILED: $file does not contain $val" 32 cat $file 38 file=$1 [all …]
|
| /tools/objtool/ |
| A D | objtool.c | 21 static struct objtool_file file; variable 25 if (file.elf) { in objtool_open_read() 31 if (!file.elf) in objtool_open_read() 34 hash_init(file.insn_hash); in objtool_open_read() 36 INIT_LIST_HEAD(&file.return_thunk_list); in objtool_open_read() 37 INIT_LIST_HEAD(&file.static_call_list); in objtool_open_read() 38 INIT_LIST_HEAD(&file.mcount_loc_list); in objtool_open_read() 39 INIT_LIST_HEAD(&file.endbr_list); in objtool_open_read() 40 INIT_LIST_HEAD(&file.call_list); in objtool_open_read() 42 file.hints = false; in objtool_open_read() [all …]
|
| A D | check.c | 607 file->pv_ops = NULL; in init_pv_ops() 615 if (!file->pv_ops) { in init_pv_ops() 1264 if (!file) in insn_reloc() 1895 file->jl_short++; in handle_jump_alt() 1897 file->jl_long++; in handle_jump_alt() 1975 printf("short:\t%ld\t%ld\n", file->jl_nop_short, file->jl_short); in add_special_section_alts() 1976 printf("long:\t%ld\t%ld\n", file->jl_nop_long, file->jl_long); in add_special_section_alts() 2168 if (!file->rodata) in add_jump_table_alts() 2534 mark_rodata(file); in decode_sections() 3829 if (!file->hints) in validate_unwind_hints() [all …]
|
| /tools/testing/selftests/net/rds/ |
| A D | config.sh | 30 scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES 33 scripts/config --file "$CONF_FILE" --enable CONFIG_RDS 34 scripts/config --file "$CONF_FILE" --enable CONFIG_RDS_TCP 38 scripts/config --file "$CONF_FILE" --enable CONFIG_GCOV_KERNEL 39 scripts/config --file "$CONF_FILE" --disable GCOV_PROFILE_ALL 40 scripts/config --file "$CONF_FILE" --enable GCOV_PROFILE_RDS 42 scripts/config --file "$CONF_FILE" --disable CONFIG_GCOV_KERNEL 43 scripts/config --file "$CONF_FILE" --disable GCOV_PROFILE_ALL 44 scripts/config --file "$CONF_FILE" --disable GCOV_PROFILE_RDS 48 scripts/config --file "$CONF_FILE" --enable CONFIG_NET_NS [all …]
|
| /tools/perf/util/ |
| A D | data.c | 75 file->fd = ret; in perf_data__create_dir() 129 if (!file) in perf_data__open_dir() 132 files = file; in perf_data__open_dir() 133 file = &files[nr++]; in perf_data__open_dir() 136 if (!file->path) in perf_data__open_dir() 143 file->fd = ret; in perf_data__open_dir() 274 data->file.path); in open_file_read() 313 data->file.fd = fd; in open_file() 540 FILE *file; in is_perf_data() local 544 if (!file) in is_perf_data() [all …]
|
| /tools/testing/selftests/exec/ |
| A D | non-regular.c | 36 FIXTURE(file) { in FIXTURE() argument 41 FIXTURE_VARIANT(file) in FIXTURE_VARIANT() argument 47 FIXTURE_DATA(file) *self, in FIXTURE_VARIANT() 53 FIXTURE_DATA(file) *self, in setup_link() 73 FIXTURE_VARIANT_ADD(file, S_IFLNK) in FIXTURE_VARIANT_ADD() argument 81 FIXTURE_DATA(file) *self, in setup_dir() 96 FIXTURE_DATA(file) *self, in setup_node() 134 FIXTURE_DATA(file) *self, in setup_fifo() 147 FIXTURE_SETUP(file) in FIXTURE_SETUP() argument 156 FIXTURE_TEARDOWN(file) in FIXTURE_TEARDOWN() argument [all …]
|
| /tools/power/acpi/tools/acpidump/ |
| A D | apfiles.c | 67 ACPI_FILE file; in ap_open_output_file() local 77 file = fopen(pathname, "w"); in ap_open_output_file() 78 if (!file) { in ap_open_output_file() 85 gbl_output_file = file; in ap_open_output_file() 108 ACPI_FILE file; in ap_write_to_binary_file() local 149 if (!file) { in ap_write_to_binary_file() 158 fclose(file); in ap_write_to_binary_file() 162 fclose(file); in ap_write_to_binary_file() 183 ACPI_FILE file; in ap_get_table_from_file() local 190 if (!file) { in ap_get_table_from_file() [all …]
|
| /tools/testing/selftests/cpufreq/ |
| A D | cpufreq.sh | 52 for file in $files; do 53 if [ -f $1/$file ]; then 54 printf "$file:" 59 cat $1/$file 61 printf "$file is not readable\n" 65 read_cpufreq_files_in_dir "$1/$file" 91 for file in $files; do 92 if [ -f $1/$file ]; then 100 local val=$(cat $1/$file) 101 printf "Writing $val to: $file\n" [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| A D | verifier_vfs_reject.c | 19 struct file *acquired; in BPF_PROG() 35 struct file *acquired; in BPF_PROG() 52 struct file *acquired; in BPF_PROG() 72 struct file *acquired; in BPF_PROG() 84 int BPF_PROG(put_file_kfunc_unacquired, struct file *file) in BPF_PROG() argument 87 bpf_put_file(file); in BPF_PROG() 132 int BPF_PROG(path_d_path_kfunc_type_mismatch, struct file *file) in BPF_PROG() argument 134 bpf_path_d_path((struct path *)&file->f_task_work, buf, sizeof(buf)); in BPF_PROG() 140 int BPF_PROG(path_d_path_kfunc_invalid_buf_sz, struct file *file) in BPF_PROG() argument 148 bpf_path_d_path(&file->f_path, buf, PATH_MAX * 2); in BPF_PROG() [all …]
|
| A D | test_module_attach.c | 58 struct file *file, struct kobject *kobj, in BPF_PROG() argument 69 struct file *file, struct kobject *kobj, in BPF_PROG() argument 80 struct file *file, struct kobject *kobj, in BPF_PROG() argument 92 struct file *file, struct kobject *kobj, in BPF_PROG() argument 104 struct file *file, struct kobject *kobj, in BPF_PROG() argument 114 int BPF_PROG(handle_fexit_ret, int arg, struct file *ret) in BPF_PROG() 129 struct file *file, struct kobject *kobj, in BPF_PROG() argument
|
| A D | ima.c | 26 static void ima_test_common(struct file *file) in ima_test_common() argument 36 ret = bpf_ima_inode_hash(file->f_inode, &ima_hash, in ima_test_common() 39 ret = bpf_ima_file_hash(file, &ima_hash, in ima_test_common() 69 ima_test_common(bprm->file); in BPF_PROG() 78 ima_test_common(bprm->file); in BPF_PROG() 83 int BPF_PROG(kernel_read_file, struct file *file, enum kernel_read_file_id id, in BPF_PROG() argument 101 ima_test_common(file); in BPF_PROG()
|
| A D | verifier_vfs_accept.c | 18 struct file *acquired; in BPF_PROG() 30 int BPF_PROG(get_task_exe_file_and_put_kfunc_from_current_non_sleepable, struct file *file) in BPF_PROG() argument 32 struct file *acquired; in BPF_PROG() 47 struct file *acquired; in BPF_PROG() 70 int BPF_PROG(path_d_path_from_file_argument, struct file *file) in BPF_PROG() argument 80 path = &file->f_path; in BPF_PROG()
|
| A D | bpf_iter_task_vmas.c | 31 struct file *file; in proc_maps() local 37 file = vma->vm_file; in proc_maps() 49 if (file) { in proc_maps() 50 __u32 dev = file->f_inode->i_sb->s_dev; in proc_maps() 52 bpf_d_path(&file->f_path, d_path_buf, D_PATH_BUF_SIZE); in proc_maps() 56 file->f_inode->i_ino); in proc_maps()
|
| /tools/testing/selftests/mm/ |
| A D | mlock2.h | 20 FILE *file; in seek_to_smaps_entry() local 30 file = fopen("/proc/self/smaps", "r"); in seek_to_smaps_entry() 31 if (!file) in seek_to_smaps_entry() 34 while (getline(&line, &size, file) > 0) { in seek_to_smaps_entry() 48 fclose(file); in seek_to_smaps_entry() 49 file = NULL; in seek_to_smaps_entry() 53 return file; in seek_to_smaps_entry()
|
| /tools/lib/api/fs/ |
| A D | tracing_path.c | 70 char *file; in get_tracing_file() local 72 if (asprintf(&file, "%s%s", tracing_path_mount(), name) < 0) in get_tracing_file() 75 return file; in get_tracing_file() 78 void put_tracing_file(char *file) in put_tracing_file() argument 80 free(file); in put_tracing_file() 85 char *file; in get_events_file() local 87 if (asprintf(&file, "%s/events/%s", tracing_path_mount(), name) < 0) in get_events_file() 90 return file; in get_events_file() 93 void put_events_file(char *file) in put_events_file() argument 95 free(file); in put_events_file()
|
| /tools/perf/tests/shell/ |
| A D | test_arm_coresight_disasm.sh | 25 file=$(mktemp /tmp/temporary_file.XXXXX) 33 rm -f ${file} 47 perf record -o ${perfdata} -e cs_etm//k --kcore -- touch $file > /dev/null 2>&1 49 -d --stop-sample=30 2> /dev/null > ${file} 50 grep -q -e ${branch_search} ${file} 59 perf record -o ${perfdata} -e cs_etm//u -- touch $file > /dev/null 2>&1 61 -d --stop-sample=30 2> /dev/null > ${file} 62 grep -q -e ${branch_search} ${file}
|
| A D | buildid.sh | 41 ex_pe=$(dirname $0)/../pe-file.exe 79 file=${build_id_dir}/.build-id/$id_dir/`readlink ${link}`/elf 80 echo "file: ${file}" 86 if [ -x $1 ] && [ ! -x $file ]; then 87 echo "failed: file ${file} executable does not exist" 91 if [ ! -x $file ] && [ ! -e $file ]; then 92 echo "failed: file ${file} does not exist" 95 elif [ ! -x $file ]; then 96 echo "failed: file ${file} does not exist" 100 diff ${file} ${1} [all …]
|
| A D | stat+json_output.sh | 40 $PYTHON $pythonchecker --no-args --file "${stat_output}" 53 $PYTHON $pythonchecker --system-wide --file "${stat_output}" 66 $PYTHON $pythonchecker --system-wide-no-aggr --file "${stat_output}" 74 $PYTHON $pythonchecker --interval --file "${stat_output}" 83 $PYTHON $pythonchecker --event --file "${stat_output}" 96 $PYTHON $pythonchecker --per-core --file "${stat_output}" 109 $PYTHON $pythonchecker --per-thread --file "${stat_output}" 146 $PYTHON $pythonchecker --per-die --file "${stat_output}" 159 $PYTHON $pythonchecker --per-node --file "${stat_output}" 172 $PYTHON $pythonchecker --per-socket --file "${stat_output}" [all …]
|
| /tools/testing/selftests/ftrace/test.d/00basic/ |
| A D | test_ownership.tc | 28 file=$1 31 owner=`stat -c "%u" $file` 32 group=`stat -c "%g" $file` 34 echo "testing $file $owner=$original_owner and $group=$test_group" 43 echo "test owner $file to $other_owner" 44 chown $other_owner $file 45 owner=`stat -c "%u" $file` 50 chown $original_owner $file 51 owner=`stat -c "%u" $file`
|
| /tools/bpf/bpftool/skeleton/ |
| A D | pid_iter.bpf.c | 20 struct file *perf_file; 69 struct file *file = ctx->file; in iter() local 74 if (!file || !task) in iter() 89 file->f_op == &bpf_link_fops_poll) in iter() 98 if (file->f_op != fops) in iter() 103 e.id = get_obj_id(file->private_data, obj_type); in iter() 108 struct bpf_link *link = (struct bpf_link *) file->private_data; in iter()
|
| /tools/power/acpi/common/ |
| A D | cmfsize.c | 29 u32 cm_get_file_size(ACPI_FILE file) in cm_get_file_size() argument 37 current_offset = ftell(file); in cm_get_file_size() 42 status = fseek(file, 0, SEEK_END); in cm_get_file_size() 47 file_size = ftell(file); in cm_get_file_size() 54 status = fseek(file, current_offset, SEEK_SET); in cm_get_file_size()
|