/third_party/mindspore/tests/perf_test/mind_expression_perf/ |
D | generate_report.py | 43 def process_log(fname, log_path, n_iter, keyword, pattern): argument 46 fname_path = os.path.join(log_path, fname % i) 50 rnt[fname % i] = rst 70 fname = "bert%d.log" 71 total = process_log(fname, log_path, n_iter, "TotalTime", r"\d+.\d+") 72 task = process_log(fname, log_path, n_iter, "task_emit", r"\d+.\d+") 74 for fname in total: 75 log[fname] = float(total[fname][0]) - float(task[fname][0]) 81 fname = "resnet%d.log" 82 total = process_log(fname, log_path, n_iter, "TotalTime", r"\d+.\d+") [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/ |
D | assembly_global.h | 20 .macro asm_function fname 22 .globl _\fname 23 _\fname: 25 .global \fname 27 .hidden \fname 28 .type \fname, %function 30 \fname: 35 .macro asm_default_function fname 37 .globl _\fname 38 _\fname: [all …]
|
/third_party/ltp/testcases/kernel/syscalls/link/ |
D | link05.c | 19 static char fname[255]; variable 30 sprintf(lname, "%s_%d", fname, cnt); in verify_link() 31 TST_EXP_PASS_SILENT(link(fname, lname), "link(%s, %s)", fname, lname); in verify_link() 34 SAFE_STAT(fname, &fbuf); in verify_link() 37 sprintf(lname, "%s_%d", fname, cnt); in verify_link() 46 fname, fname, nlinks, in verify_link() 57 fname, fname, nlinks, TST_RET, in verify_link() 62 sprintf(lname, "%s_%d", fname, cnt); in verify_link() 69 sprintf(fname, "%s_%d", BASENAME, getpid()); in setup() 70 SAFE_TOUCH(fname, 0700, NULL); in setup()
|
D | link03.c | 59 static char fname[255]; variable 104 sprintf(lname, "%s%d", fname, i); in main() 105 TEST(link(fname, lname)); in main() 109 "link(%s, %s) Failed", fname, lname); in main() 113 SAFE_STAT(cleanup, fname, &buf); in main() 118 fname, (int)buf.st_nlink, links); in main() 123 sprintf(lname, "%s%d", fname, i); in main() 138 sprintf(lname, "%s%d", fname, i); in main() 160 sprintf(fname, "%s_%d", BASENAME, getpid()); in setup() 161 SAFE_TOUCH(cleanup, fname, 0700, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl09.c | 127 char fname[255]; variable 165 fname, type ? "F_RDLCK" : "F_WRLCK", in main() 171 fname, in main() 186 fname, TEST_ERRNO, in main() 191 fname, TEST_RETURN); in main() 213 sprintf(fname, "./file_%d", getpid()); in setup() 214 if ((fd = creat(fname, 0644)) == -1) { in setup() 216 "creat(%s, 0644) Failed, errno=%d : %s", fname, errno, in setup() 220 fname, errno, strerror(errno)); in setup() 221 } else if ((fd = open(fname, O_RDWR, 0700)) == -1) { in setup() [all …]
|
D | fcntl10.c | 127 char fname[255]; variable 165 fname, type ? "F_RDLCK" : "F_WRLCK", in main() 170 fname, type ? "F_RDLCK" : "F_WRLCK", in main() 184 fname, TEST_ERRNO, in main() 190 fname, TEST_RETURN); in main() 212 sprintf(fname, "tfile_%d", getpid()); in setup() 213 if ((fd = creat(fname, 0644)) == -1) { in setup() 215 "creat(%s, 0644) Failed, errno=%d : %s", fname, errno, in setup() 219 fname, errno, strerror(errno)); in setup() 220 } else if ((fd = open(fname, O_RDWR, 0700)) == -1) { in setup() [all …]
|
D | fcntl23.c | 103 char fname[255]; variable 142 fname, TEST_ERRNO, strerror(TEST_ERRNO)); in main() 149 fname, TEST_RETURN); in main() 155 fname, TEST_RETURN); in main() 159 fname); in main() 165 fname, errno, strerror(errno)); in main() 189 sprintf(fname, "tfile_%d", getpid()); in setup() 190 if ((fd = open(fname, O_RDONLY | O_CREAT, 0777)) == -1) { in setup() 193 fname, errno, strerror(errno)); in setup() 206 tst_resm(TWARN, "close(%s) Failed, errno=%d : %s", fname, errno, in cleanup()
|
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/contrib/untgz/ |
D | untgz.c | 98 char *fname; member 206 int setfiletime (char *fname,time_t ftime) in setfiletime() argument 234 hFile = CreateFile(fname, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, in setfiletime() 246 return utime(fname,&settime); in setfiletime() 253 void push_attr(struct attr_item **list,char *fname,int mode,time_t time) in push_attr() argument 260 item->fname = strdup(fname); in push_attr() 276 setfiletime(item->fname,item->time); in restore_attr() 277 chmod(item->fname,item->mode); in restore_attr() 371 int matchname (int arg,int argc,char **argv,char *fname) in matchname() argument 377 if (ExprMatch(fname,argv[arg++])) in matchname() [all …]
|
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/contrib/untgz/ |
D | untgz.c | 98 char *fname; member 206 int setfiletime (char *fname,time_t ftime) in setfiletime() argument 234 hFile = CreateFile(fname, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, in setfiletime() 246 return utime(fname,&settime); in setfiletime() 253 void push_attr(struct attr_item **list,char *fname,int mode,time_t time) in push_attr() argument 260 item->fname = strdup(fname); in push_attr() 276 setfiletime(item->fname,item->time); in restore_attr() 277 chmod(item->fname,item->mode); in restore_attr() 371 int matchname (int arg,int argc,char **argv,char *fname) in matchname() argument 377 if (ExprMatch(fname,argv[arg++])) in matchname() [all …]
|
/third_party/zlib/contrib/untgz/ |
D | untgz.c | 98 char *fname; member 206 int setfiletime (char *fname,time_t ftime) in setfiletime() argument 234 hFile = CreateFile(fname, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, in setfiletime() 246 return utime(fname,&settime); in setfiletime() 253 void push_attr(struct attr_item **list,char *fname,int mode,time_t time) in push_attr() argument 260 item->fname = strdup(fname); in push_attr() 276 setfiletime(item->fname,item->time); in restore_attr() 277 chmod(item->fname,item->mode); in restore_attr() 371 int matchname (int arg,int argc,char **argv,char *fname) in matchname() argument 377 if (ExprMatch(fname,argv[arg++])) in matchname() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/setxattr/ |
D | setxattr02.c | 58 char *fname; member 68 .fname = FILENAME, 76 .fname = DIRNAME, 84 .fname = SYMLINK, 93 .fname = FIFO, 101 .fname = CHR, 109 .fname = BLK, 117 .fname = SOCK, 130 SAFE_SETXATTR(tc[i].fname, tc[i].key, tc[i].value, tc[i].size, in verify_setxattr() 134 TEST(setxattr(tc[i].fname, tc[i].key, tc[i].value, tc[i].size, in verify_setxattr() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/scripts/ |
D | run_code_generation.py | 115 def md5(fname): argument 117 with open(fname, "r") as f: 130 for fname in filenames: 131 if not os.path.isfile(fname): 132 print('File not found: "%s". Code gen dirty for %s' % (fname, name)) 135 new_hashes[fname] = md5(fname) 136 if (not fname in old_hashes) or (old_hashes[fname] != new_hashes[fname]): 137 print('Hash for "%s" dirty for %s generator.' % (fname, name)) 186 fname = get_hash_file_name(name) 189 if fname not in all_old_hashes: [all …]
|
/third_party/python/Tools/scripts/ |
D | gprof2html.py | 43 stuff, fname = m.group(1, 2) 44 labels[fname] = fname 46 (stuff, fname, fname, fname)) 58 prefix, fname, suffix = m.group(1, 2, 3) 59 if fname not in labels: 64 (prefix, fname, fname, fname, suffix)) 67 (prefix, fname, fname, suffix))
|
/third_party/ltp/testcases/commands/tar/ |
D | tar_tests.sh | 53 local fname="$1" 57 EXPECT_PASS tar t${verbose}f "$fname" \> tar.out 76 local fname="$1" 80 EXPECT_PASS tar x${verbose}f $fname \> tar.out 90 local fname="$3" 95 EXPECT_PASS tar c${verbose}f$comp $fname $TAR_FILES \> tar.out 99 EXPECT_PASS tar d${verbose}f $fname \> tar.out 105 check_content $fname "$verbose" $TAR_FILES 108 check_extraction $fname "$verbose" $TAR_FILES 113 EXPECT_PASS tar r${verbose}f $fname file4 \> tar.out [all …]
|
/third_party/skia/third_party/externals/angle2/scripts/ |
D | run_code_generation.py | 149 def md5(fname): argument 151 with open(fname, "r") as f: 164 for fname in filenames: 165 if not os.path.isfile(fname): 166 print('File not found: "%s". Code gen dirty for %s' % (fname, name)) 169 new_hashes[fname] = md5(fname) 170 if (not fname in old_hashes) or (old_hashes[fname] != new_hashes[fname]): 171 print('Hash for "%s" dirty for %s generator.' % (fname, name)) 223 fname = get_hash_file_name(name) 226 if fname not in all_old_hashes: [all …]
|
/third_party/openssl/tools/ |
D | c_rehash.in | 146 FILE: foreach $fname (grep {/\.(pem)|(crt)|(cer)|(crl)$/} @flist) { 148 my ($cert, $crl) = check_file($fname); 150 print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n"; 153 link_hash_cert($fname) if ($cert); 154 link_hash_crl($fname) if ($crl); 162 my $fname = $_[0]; 164 open(my $in, "<", $fname); 187 print STDERR "Cannot compute hash on '$fname'\n"; 192 print STDERR "Cannot compute hash on '$fname'\n"; 216 my ($fname, $type) = @_; [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify01.c | 75 static char fname[BUF_SIZE]; variable 107 FAN_ACCESS | FAN_MODIFY | FAN_CLOSE | FAN_OPEN, AT_FDCWD, fname); in test_fanotify() 112 fd = SAFE_OPEN(fname, O_RDONLY); in test_fanotify() 131 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700); in test_fanotify() 135 SAFE_WRITE(1, fd, fname, strlen(fname)); in test_fanotify() 157 FAN_ACCESS, AT_FDCWD, fname); in test_fanotify() 159 fd = SAFE_OPEN(fname, O_RDWR); in test_fanotify() 175 SAFE_WRITE(1, fd, fname, 1); in test_fanotify() 202 FAN_OPEN | FAN_CLOSE, AT_FDCWD, fname); in test_fanotify() 205 fd = SAFE_OPEN(fname, O_RDWR); in test_fanotify() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fsetxattr/ |
D | fsetxattr02.c | 62 char *fname; member 75 .fname = FILENAME, 84 .fname = DIRNAME, 93 .fname = SYMLINK, 103 .fname = FIFO, 112 .fname = CHR, 121 .fname = BLK, 130 .fname = SOCK, 143 const char *fname = strstr(tc[i].fname, "fsetxattr02") + OFFSET; in verify_fsetxattr() local 163 fname, TST_RET); in verify_fsetxattr() [all …]
|
/third_party/libsnd/examples/ |
D | sndfilehandle.cc | 27 create_file (const char * fname, int format) in create_file() argument 34 printf ("Creating file named '%s'\n", fname) ; in create_file() 36 file = SndfileHandle (fname, SFM_WRITE, format, channels, srate) ; in create_file() 52 read_file (const char * fname) in read_file() argument 57 file = SndfileHandle (fname) ; in read_file() 59 printf ("Opened file '%s'\n", fname) ; in read_file() 72 { const char * fname = "test.wav" ; in main() local 76 create_file (fname, SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 78 read_file (fname) ; in main()
|
/third_party/flutter/skia/src/ports/skia_ohos/ |
D | FontInfo_ohos.h | 22 FontInfo() : familyName(""), fname(""), index(0), in FontInfo() 31 : familyName(font.familyName), fname(font.fname), index(font.index), in FontInfo() 45 : familyName(std::move(font.familyName)), fname(std::move(font.fname)), index(font.index), in FontInfo() 59 FontInfo(const char* fname, int index) in FontInfo() 60 : familyName(""), fname(""), index(index), in FontInfo() 63 if (fname) { in FontInfo() 64 this->fname.set(fname); in FontInfo() 83 fname = font.fname; 104 fname = std::move(font.fname); 133 SkString fname; // the full name of font file member
|
/third_party/ltp/scripts/coccinelle/ |
D | kselftest-cgroup-to-ltp.cocci | 9 expression cg, fname, data; 12 - if (cg_write(cg, fname, data)) { 15 + SAFE_CGROUP_PRINT(cg, fname, data); 28 expression cg, fname, needle; 31 - cg_read_strstr(cg, fname, needle) 32 + !SAFE_CGROUP_OCCURSIN(cg, fname, needle) 36 expression cg, fname; 39 - l = cg_read_long(cg, fname); 40 + SAFE_CGROUP_SCANF(cg, fname, "%ld", &l);
|
/third_party/ltp/testcases/kernel/syscalls/fgetxattr/ |
D | fgetxattr02.c | 69 char *fname; member 83 .fname = FILENAME, 94 .fname = DIRNAME, 105 .fname = SYMLINK, 116 .fname = FIFO, 126 .fname = CHR, 137 .fname = BLK, 148 .fname = SOCK, 163 const char *fname = strstr(tc[i].fname, "fgetxattr02") + OFFSET; in verify_fgetxattr() local 174 fname); in verify_fgetxattr() [all …]
|
/third_party/skia/infra/bots/ |
D | test_utils.py | 30 def write(self, fname, mode=0o640): argument 32 fname = os.path.join(self._cwd, fname) 33 with open(fname, 'w') as f: 35 os.chmod(fname, mode) 37 def remove(self, fname): argument 39 fname = os.path.join(self._cwd, fname) 40 if os.path.isfile(fname): 41 os.remove(fname) 43 os.rmdir(fname)
|
/third_party/flutter/skia/infra/bots/ |
D | test_utils.py | 30 def write(self, fname, mode=0640): argument 32 fname = os.path.join(self._cwd, fname) 33 with open(fname, 'w') as f: 35 os.chmod(fname, mode) 37 def remove(self, fname): argument 39 fname = os.path.join(self._cwd, fname) 40 if os.path.isfile(fname): 41 os.remove(fname) 43 os.rmdir(fname)
|
/third_party/boost/boost/python/detail/ |
D | defaults_gen.hpp | 138 #define BOOST_PYTHON_GEN_FUNCTION(fname, fstubs_name, n_args, n_dflts, ret) \ argument 160 (fname, BOOST_PP_SUB_D(1, n_args, n_dflts), ret)) \ 177 #define BOOST_PYTHON_GEN_MEM_FUNCTION(fname, fstubs_name, n_args, n_dflts, ret) \ argument 202 (fname, BOOST_PP_SUB_D(1, n_args, n_dflts), ret)) \ 230 # define BOOST_PYTHON_GEN_FUNCTION_STUB(fname, fstubs_name, n_args, n_dflts) \ argument 235 fname, non_void_return_type, n_args, n_dflts, return) \ 237 fname, void_return_type, n_args, n_dflts, ;) \ 242 # define BOOST_PYTHON_GEN_MEM_FUNCTION_STUB(fname, fstubs_name, n_args, n_dflts) \ argument 247 fname, non_void_return_type, n_args, n_dflts, return) \ 249 fname, void_return_type, n_args, n_dflts, ;) \ [all …]
|