| /linux/tools/testing/selftests/net/ |
| H A D | rtnetlink_notification.sh | 20 local tmpfile 24 tmpfile=$(mktemp) 25 defer rm "$tmpfile" 27 ip monitor maddr > $tmpfile & 52 match_result=$(grep -cE "$test_dev.*(224.0.0.1|ff02::1)" "$tmpfile") 63 local tmpfile 67 tmpfile=$(mktemp) 68 defer rm "$tmpfile" 70 ip monitor acaddress > "$tmpfile" & 93 match_result=$(grep -cE "$test_dev.*(fe80::)" "$tmpfile")
|
| H A D | fin_ack_lat.sh | 9 tmpfile=$(mktemp /tmp/fin_ack_latency.XXXX.log) 13 rm -f $tmpfile 21 ./fin_ack_lat | tee $tmpfile & 25 NR_SPIKES=$(wc -l $tmpfile | awk '{print $1}')
|
| H A D | fib_nexthops.sh | 404 tmpfile=`mktemp /var/run/nexthoptestXXX` 405 mpid=`($IP monitor $mtype > $tmpfile & echo $!) 2>/dev/null` 407 echo "$mpid $tmpfile" 413 local tmpfile=$2 418 lines=`wc -l $tmpfile | cut "-d " -f1` 421 rm -rf $tmpfile
|
| H A D | rtnetlink.sh | 670 tmpfile=`mktemp /var/run/ipsectestXXX` 671 mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null` 712 lines=`wc -l $tmpfile | cut "-d " -f1` 714 rm -rf $tmpfile
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_veristat.c | 14 char tmpfile[80]; member 33 snprintf(fix->tmpfile, sizeof(fix->tmpfile), "/tmp/test_veristat.XXXXXX"); in init_fixture() 34 fix->fd = mkstemp(fix->tmpfile); in init_fixture() 44 remove(fix->tmpfile); in teardown_fixture() 75 " -vl2 > %s", fix->veristat, fix->tmpfile); in test_set_global_vars_succeeds() 118 fix->veristat, input_file, fix->tmpfile); in test_set_global_vars_from_file_succeeds() 135 fix->veristat, fix->tmpfile); in test_set_global_vars_out_of_range() 150 fix->veristat, fix->tmpfile); in test_unsupported_ptr_array_type() 165 fix->veristat, fix->tmpfile); in test_array_out_of_bounds() [all...] |
| H A D | arg_parsing.c | 119 char tmpfile[80]; in test_parse_test_list_file() local 123 snprintf(tmpfile, sizeof(tmpfile), "/tmp/bpf_arg_parsing_test.XXXXXX"); in test_parse_test_list_file() 124 fd = mkstemp(tmpfile); in test_parse_test_list_file() 152 if (!ASSERT_OK(parse_test_list_file(tmpfile, &set, true), "parse file")) in test_parse_test_list_file() 172 remove(tmpfile); in test_parse_test_list_file()
|
| /linux/arch/um/os-Linux/skas/ |
| H A D | process.c | 367 char *tmpfile = NULL; in init_stub_exe_fd() local 375 tmpfile = malloc(strlen(tempdir) + in init_stub_exe_fd() 377 if (tmpfile == NULL) in init_stub_exe_fd() 380 strcpy(tmpfile, tempdir); in init_stub_exe_fd() 381 strcat(tmpfile, STUB_EXE_NAME_TEMPLATE); in init_stub_exe_fd() 383 stub_exe_fd = mkstemp(tmpfile); in init_stub_exe_fd() 396 if (tmpfile) in init_stub_exe_fd() 397 unlink(tmpfile); in init_stub_exe_fd() 404 if (!tmpfile) { in init_stub_exe_fd() 409 unlink(tmpfile); in init_stub_exe_fd() [all …]
|
| /linux/tools/testing/selftests/powerpc/tm/ |
| H A D | tm-vmxcopy.c | 43 char tmpfile[] = "/tmp/page_faultXXXXXX"; in test_vmxcopy() local 52 fd = mkstemp(tmpfile); in test_vmxcopy() 59 unlink(tmpfile); in test_vmxcopy()
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | conntrack_resize.sh | 11 tmpfile="" 34 rm -f "$tmpfile" "$tmpfile_proc" "$tmpfile_uniq" 332 l=$(ip netns exec "$ns" conntrack -L 2>/dev/null | sort | tee "$tmpfile" | wc -l) 346 unique=$(uniq "$tmpfile" | tee "$tmpfile_uniq" | wc -l) 349 diff -u "$tmpfile" "$tmpfile_uniq" 357 diff -u "$tmpfile" "$tmpfile_uniq" 507 tmpfile=$(mktemp)
|
| /linux/tools/perf/tests/shell/ |
| H A D | test_intel_pt.sh | 20 tmpfile="${temp_dir}/tmp-perf.data" 97 if ! perf_record_no_decode -o "${tmpfile}" -e dummy:u -C "$1" true >/dev/null 2>&1 ; then 132 perf_record_no_decode -o "${tmpfile}" -e dummy:k true >/dev/null 2>&1 && can_kernel_trace=1 418 perf_record_no_bpf -o "${tmpfile}" -e intel_pt//u "${jitdump_workload}" 419 perf inject -i "${tmpfile}" -o "${perfdatafile}" --jit
|
| /linux/tools/testing/selftests/tmpfs/ |
| H A D | .gitignore | 2 /bug-link-o-tmpfile
|
| H A D | Makefile | 5 TEST_GEN_PROGS += bug-link-o-tmpfile
|
| /linux/fs/overlayfs/ |
| H A D | copy_up.c | 857 struct file *tmpfile; in ovl_copy_up_tmpfile() local 865 tmpfile = ovl_do_tmpfile(ofs, c->workdir, c->stat.mode); in ovl_copy_up_tmpfile() 869 if (IS_ERR(tmpfile)) in ovl_copy_up_tmpfile() 870 return PTR_ERR(tmpfile); in ovl_copy_up_tmpfile() 872 temp = tmpfile->f_path.dentry; in ovl_copy_up_tmpfile() 874 err = ovl_copy_up_file(ofs, c->dentry, tmpfile, c->stat.size, in ovl_copy_up_tmpfile() 911 fput(tmpfile); in ovl_copy_up_tmpfile() 985 if (S_ISREG(c->stat.mode) && ofs->tmpfile) in ovl_do_copy_up()
|
| H A D | super.c | 672 struct file *tmpfile; in ovl_make_workdir() local 708 tmpfile = ovl_do_tmpfile(ofs, ofs->workdir, S_IFREG | 0); in ovl_make_workdir() 709 ofs->tmpfile = !IS_ERR(tmpfile); in ovl_make_workdir() 710 if (ofs->tmpfile) in ovl_make_workdir() 711 fput(tmpfile); in ovl_make_workdir()
|
| H A D | ovl_entry.h | 75 bool tmpfile; member
|
| H A D | dir.c | 286 struct dentry *newdentry, bool hardlink, struct file *tmpfile) in ovl_instantiate() argument 321 if (tmpfile) in ovl_instantiate() 322 d_mark_tmpfile(tmpfile, inode); in ovl_instantiate() 1416 if (!OVL_FS(dentry->d_sb)->tmpfile) in ovl_tmpfile() 1480 .tmpfile = ovl_tmpfile,
|
| /linux/fs/xfs/ |
| H A D | xfs_iops.c | 177 struct file *tmpfile) /* unnamed file */ in xfs_generic_create() argument 212 if (!tmpfile) { in xfs_generic_create() 224 if (tmpfile->f_flags & O_EXCL) in xfs_generic_create() 251 if (tmpfile) { in xfs_generic_create() 261 d_tmpfile(tmpfile, inode); in xfs_generic_create() 274 if (!tmpfile) in xfs_generic_create() 1298 .tmpfile = xfs_vn_tmpfile, 1325 .tmpfile = xfs_vn_tmpfile,
|
| H A D | xfs_inode.c | 2090 struct xfs_inode *tmpfile; in xfs_rename_alloc_whiteout() local 2094 error = xfs_create_tmpfile(&args, &tmpfile); in xfs_rename_alloc_whiteout() 2100 error = xfs_inode_init_security(VFS_I(tmpfile), VFS_I(dp), &name); in xfs_rename_alloc_whiteout() 2102 xfs_finish_inode_setup(tmpfile); in xfs_rename_alloc_whiteout() 2103 xfs_irele(tmpfile); in xfs_rename_alloc_whiteout() 2112 xfs_setup_iops(tmpfile); in xfs_rename_alloc_whiteout() 2113 xfs_finish_inode_setup(tmpfile); in xfs_rename_alloc_whiteout() 2114 inode_state_set_raw(VFS_I(tmpfile), I_LINKABLE); in xfs_rename_alloc_whiteout() 2116 *wip = tmpfile; in xfs_rename_alloc_whiteout()
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | ns_active_ref_test.c | 845 char tmpfile[] = "/tmp/ns-test-XXXXXX"; in TEST() local 849 tmpfd = mkstemp(tmpfile); in TEST() 868 unlink(tmpfile); in TEST() 874 unlink(tmpfile); in TEST() 882 unlink(tmpfile); in TEST() 887 ret = mount("/proc/self/ns/net", tmpfile, NULL, MS_BIND, NULL); in TEST() 890 unlink(tmpfile); in TEST() 897 umount(tmpfile); in TEST() 899 unlink(tmpfile); in TEST() 909 umount(tmpfile); in TEST() [all …]
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | lib.sh | 1825 tmpfile=`mktemp /var/run/nexthoptestXXX` 1826 mpid=`($ip monitor $mtype > $tmpfile & echo $!) 2>/dev/null` 1828 echo "$mpid $tmpfile" 1834 local tmpfile=$1; shift 1840 local lines=`grep '^\w' $tmpfile | wc -l` 1843 rm -rf $tmpfile
|
| /linux/tools/testing/selftests/mm/ |
| H A D | map_populate.c | 88 ftmp = tmpfile(); in main()
|
| H A D | gup_longterm.c | 326 file = tmpfile(); in run_with_tmpfile()
|
| /linux/fs/ramfs/ |
| H A D | inode.c | 199 .tmpfile = ramfs_tmpfile,
|
| /linux/fs/minix/ |
| H A D | namei.c | 290 .tmpfile = minix_tmpfile,
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | mptcp_join.sh | 22 tmpfile="" 189 rm -f "$tmpfile" 544 tmpfile=$(mktemp) 545 head --bytes="$bytes" "$in" > "$tmpfile" 546 mv "$tmpfile" "$in" 547 head --bytes="$bytes" "$out" > "$tmpfile" 548 mv "$tmpfile" "$out" 549 tmpfile=""
|