Home
last modified time | relevance | path

Searched refs:tmpfile (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dtest_veristat.c14 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()
66 "-vl2 > %s", fix->veristat, fix->tmpfile); in test_set_global_vars_succeeds()
101 fix->veristat, input_file, fix->tmpfile); in test_set_global_vars_from_file_succeeds()
118 fix->veristat, fix->tmpfile); in test_set_global_vars_out_of_range()
H A Darg_parsing.c119 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()
149 ASSERT_OK(parse_test_list_file(tmpfile, &set, true), "parse file"); in test_parse_test_list_file()
166 remove(tmpfile); in test_parse_test_list_file()
/linux-6.15/tools/testing/selftests/net/
H A Dfin_ack_lat.sh9 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 Dfib_nexthops.sh404 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 Drtnetlink.sh596 tmpfile=`mktemp /var/run/ipsectestXXX`
597 mpid=`(ip x m > $tmpfile & echo $!) 2>/dev/null`
638 lines=`wc -l $tmpfile | cut "-d " -f1`
640 rm -rf $tmpfile
/linux-6.15/arch/um/os-Linux/skas/
H A Dprocess.c256 char *tmpfile = NULL; in init_stub_exe_fd() local
266 if (tmpfile == NULL) in init_stub_exe_fd()
269 strcpy(tmpfile, tempdir); in init_stub_exe_fd()
272 stub_exe_fd = mkstemp(tmpfile); in init_stub_exe_fd()
285 if (tmpfile) in init_stub_exe_fd()
286 unlink(tmpfile); in init_stub_exe_fd()
293 if (!tmpfile) { in init_stub_exe_fd()
298 unlink(tmpfile); in init_stub_exe_fd()
306 unlink(tmpfile); in init_stub_exe_fd()
310 unlink(tmpfile); in init_stub_exe_fd()
[all …]
/linux-6.15/tools/testing/selftests/powerpc/tm/
H A Dtm-vmxcopy.c43 char tmpfile[] = "/tmp/page_faultXXXXXX"; in test_vmxcopy() local
52 fd = mkstemp(tmpfile); in test_vmxcopy()
59 unlink(tmpfile); in test_vmxcopy()
/linux-6.15/tools/testing/selftests/tmpfs/
H A D.gitignore2 /bug-link-o-tmpfile
H A DMakefile5 TEST_GEN_PROGS += bug-link-o-tmpfile
/linux-6.15/tools/perf/tests/shell/
H A Dtest_intel_pt.sh20 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
413 perf_record_no_bpf -o "${tmpfile}" -e intel_pt//u "${jitdump_workload}"
414 perf inject -i "${tmpfile}" -o "${perfdatafile}" --jit
/linux-6.15/fs/xfs/
H A Dxfs_iops.c177 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()
1233 .tmpfile = xfs_vn_tmpfile,
1260 .tmpfile = xfs_vn_tmpfile,
H A Dxfs_inode.c2072 struct xfs_inode *tmpfile; in xfs_rename_alloc_whiteout() local
2076 error = xfs_create_tmpfile(&args, &tmpfile); in xfs_rename_alloc_whiteout()
2082 error = xfs_inode_init_security(VFS_I(tmpfile), VFS_I(dp), &name); in xfs_rename_alloc_whiteout()
2084 xfs_finish_inode_setup(tmpfile); in xfs_rename_alloc_whiteout()
2085 xfs_irele(tmpfile); in xfs_rename_alloc_whiteout()
2094 xfs_setup_iops(tmpfile); in xfs_rename_alloc_whiteout()
2095 xfs_finish_inode_setup(tmpfile); in xfs_rename_alloc_whiteout()
2096 VFS_I(tmpfile)->i_state |= I_LINKABLE; in xfs_rename_alloc_whiteout()
2098 *wip = tmpfile; in xfs_rename_alloc_whiteout()
/linux-6.15/fs/overlayfs/
H A Dcopy_up.c868 struct file *tmpfile; in ovl_copy_up_tmpfile() local
877 tmpfile = ovl_do_tmpfile(ofs, c->workdir, c->stat.mode); in ovl_copy_up_tmpfile()
880 if (IS_ERR(tmpfile)) in ovl_copy_up_tmpfile()
881 return PTR_ERR(tmpfile); in ovl_copy_up_tmpfile()
883 temp = tmpfile->f_path.dentry; in ovl_copy_up_tmpfile()
885 err = ovl_copy_up_file(ofs, c->dentry, tmpfile, c->stat.size, in ovl_copy_up_tmpfile()
924 fput(tmpfile); in ovl_copy_up_tmpfile()
998 if (S_ISREG(c->stat.mode) && ofs->tmpfile) in ovl_do_copy_up()
H A Dsuper.c659 struct file *tmpfile; in ovl_make_workdir() local
695 tmpfile = ovl_do_tmpfile(ofs, ofs->workdir, S_IFREG | 0); in ovl_make_workdir()
696 ofs->tmpfile = !IS_ERR(tmpfile); in ovl_make_workdir()
697 if (ofs->tmpfile) in ovl_make_workdir()
698 fput(tmpfile); in ovl_make_workdir()
H A Dovl_entry.h75 bool tmpfile; member
H A Ddir.c235 struct dentry *newdentry, bool hardlink, struct file *tmpfile) in ovl_instantiate() argument
270 if (tmpfile) in ovl_instantiate()
271 d_mark_tmpfile(tmpfile, inode); in ovl_instantiate()
1354 if (!OVL_FS(dentry->d_sb)->tmpfile) in ovl_tmpfile()
1418 .tmpfile = ovl_tmpfile,
/linux-6.15/tools/testing/selftests/net/forwarding/
H A Dlib.sh1766 tmpfile=`mktemp /var/run/nexthoptestXXX`
1767 mpid=`($ip monitor $mtype > $tmpfile & echo $!) 2>/dev/null`
1769 echo "$mpid $tmpfile"
1775 local tmpfile=$1; shift
1781 local lines=`grep '^\w' $tmpfile | wc -l`
1784 rm -rf $tmpfile
/linux-6.15/tools/testing/selftests/mm/
H A Dmap_populate.c88 ftmp = tmpfile(); in main()
H A Dgup_longterm.c276 file = tmpfile(); in run_with_tmpfile()
/linux-6.15/fs/
H A Dbad_inode.c183 .tmpfile = bad_inode_tmpfile,
/linux-6.15/fs/minix/
H A Dnamei.c265 .tmpfile = minix_tmpfile,
/linux-6.15/fs/ramfs/
H A Dinode.c201 .tmpfile = ramfs_tmpfile,
/linux-6.15/tools/testing/selftests/net/mptcp/
H A Dmptcp_join.sh22 tmpfile=""
176 rm -f "$tmpfile"
530 tmpfile=$(mktemp)
531 head --bytes="$bytes" "$in" > "$tmpfile"
532 mv "$tmpfile" "$in"
533 head --bytes="$bytes" "$out" > "$tmpfile"
534 mv "$tmpfile" "$out"
535 tmpfile=""
/linux-6.15/fs/cachefiles/
H A Dcache.c65 !d_backing_inode(root)->i_op->tmpfile || in cachefiles_add_cache()
/linux-6.15/fs/ext2/
H A Dnamei.c422 .tmpfile = ext2_tmpfile,

12