/littlefs-3.7.0-3.6.0/scripts/ |
D | prettyasserts.py | 56 def write_header(f, limit=LIMIT): argument 57 f.writeln("// Generated by %s:" % sys.argv[0]) 58 f.writeln("//") 59 f.writeln("// %s" % ' '.join(sys.argv)) 60 f.writeln("//") 61 f.writeln() 63 f.writeln("#include <stdbool.h>") 64 f.writeln("#include <stdint.h>") 65 f.writeln("#include <inttypes.h>") 66 f.writeln("#include <stdio.h>") [all …]
|
D | bench.py | 153 with open(self.path) as f: 155 config = toml.load(f) 158 f.seek(0) 161 for i, line in enumerate(f): 281 with openio(args['output'], 'w') as f: 282 _write = f.write 284 f.lineno += s.count('\n') 287 f.lineno += s.count('\n') + 1 290 f.lineno = 1 291 f.write = write [all …]
|
D | test.py | 156 with open(self.path) as f: 158 config = toml.load(f) 161 f.seek(0) 164 for i, line in enumerate(f): 289 with openio(args['output'], 'w') as f: 290 _write = f.write 292 f.lineno += s.count('\n') 295 f.lineno += s.count('\n') + 1 298 f.lineno = 1 299 f.write = write [all …]
|
D | readmdir.py | 307 def _dump_tags(self, tags, f=sys.stdout, truncate=True): argument 308 f.write("%-8s %-8s %-13s %4s %4s" % ( 311 f.write(' data (truncated)') 312 f.write('\n') 315 f.write("%08x: %08x %-14s %3s %4s" % ( 319 f.write(" %-23s %-8s\n" % ( 324 f.write("\n") 326 f.write(" %08x: %-47s %-16s\n" % ( 332 def dump_tags(self, f=sys.stdout, truncate=True): argument 333 self._dump_tags(self.tags, f=f, truncate=truncate) [all …]
|
D | readtree.py | 17 with open(args.disk, 'rb') as f: 32 f.seek(block * args.block_size) 33 data.append(f.read(args.block_size) 133 f = io.StringIO() 135 mdir.dump_log(f, truncate=not args.no_truncate) 137 mdir.dump_all(f, truncate=not args.no_truncate) 139 mdir.dump_tags(f, truncate=not args.no_truncate) 141 lines = list(filter(None, f.getvalue().split('\n')))
|
D | plot.py | 160 for f in files: 161 inotify.add_watch(os.path.join(dir, f), flags) 403 f, c = self.grid[x*xscale+(xscale-1-(i%xscale)) 408 if f: 409 best_f = f 451 with openio(path) as f: 452 reader = csv.DictReader(f, restval='') 973 def draw(f): argument 975 f.write(s) 976 f.write('\n') [all …]
|
D | tracebd.py | 305 f = [colors[3]] 316 f.append(wear_colors[int(w * (len(wear_colors)-1))]) 320 f.append(colors[2]) 323 f.append(colors[1]) 326 f.append(colors[0]) 333 if f and color: 335 ''.join('\x1b[%sm' % f_ for f_ in f), 360 def _op(self, f, block=None, off=None, size=None): argument 384 self.blocks[i] = f(self.blocks[i]) 781 def draw(f): argument [all …]
|
D | perf.py | 169 with tempfile.NamedTemporaryFile('rb') as f: 182 '-o%s' % f.name])) 203 shutil.copyfileobj(f, g) 212 def multiprocessing_cache(f): argument 229 v = f(*args, **kwargs) 588 with z.open(i) as f: 590 shutil.copyfileobj(f, g) 596 f, args, kwargs = args 597 return f(*args, **kwargs) 972 with open(path) as f: [all …]
|
D | perfbd.py | 392 with openio(path) as f: 396 fd = f.fileno() 400 f = os.fdopen(fd) 402 for line in f: 413 if os.lseek(f.fileno(), 0, os.SEEK_CUR) > stop: 542 f, args, kwargs = args 543 return f(*args, **kwargs) 957 with open(path) as f: 959 for i, line in enumerate(f): 971 next(iter(f for _, f in spans)), [all …]
|
D | readblock.py | 6 with open(args.disk, 'rb') as f: 7 f.seek(args.block * args.block_size) 8 block = (f.read(args.block_size)
|
D | cov.py | 542 with open(path) as f: 544 for i, line in enumerate(f): 556 next(iter(f for _, f in spans)), 601 with openio(args['use']) as f: 602 reader = csv.DictReader(f, restval='') 633 with openio(args['output'], 'w') as f: 634 writer = csv.DictWriter(f, 650 with openio(args['diff']) as f: 651 reader = csv.DictReader(f, restval='')
|
D | stack.py | 170 with open(path) as f: 171 vcg = parse_vcg(f.read()) 555 with openio(args['use']) as f: 556 reader = csv.DictReader(f, restval='') 585 with openio(args['output'], 'w') as f: 586 writer = csv.DictWriter(f, 602 with openio(args['diff']) as f: 603 reader = csv.DictReader(f, restval='')
|
D | structs.py | 478 with openio(args['use']) as f: 479 reader = csv.DictReader(f, restval='') 510 with openio(args['output'], 'w') as f: 511 writer = csv.DictWriter(f, 527 with openio(args['diff']) as f: 528 reader = csv.DictReader(f, restval='')
|
D | data.py | 530 with openio(args['use']) as f: 531 reader = csv.DictReader(f, restval='') 557 with openio(args['output'], 'w') as f: 558 writer = csv.DictWriter(f, 574 with openio(args['diff']) as f: 575 reader = csv.DictReader(f, restval='')
|
D | code.py | 530 with openio(args['use']) as f: 531 reader = csv.DictReader(f, restval='') 560 with openio(args['output'], 'w') as f: 561 writer = csv.DictWriter(f, 577 with openio(args['diff']) as f: 578 reader = csv.DictReader(f, restval='')
|
D | teepipe.py | 31 with openio(in_path, 'rb', 0) as f: 33 buf = f.read(io.DEFAULT_BUFFER_SIZE)
|
D | summary.py | 614 with openio(path) as f: 615 reader = csv.DictReader(f, restval='') 665 with openio(args['output'], 'w') as f: 666 writer = csv.DictWriter(f, Result._by + Result._fields) 677 with openio(args['diff']) as f: 678 reader = csv.DictReader(f, restval='')
|
D | tailpipe.py | 123 with openio(path) as f: 124 for line in f:
|
D | watch.py | 60 for f in files: 61 inotify.add_watch(os.path.join(dir, f), flags)
|
D | plotmpl.py | 197 with openio(path) as f: 198 reader = csv.DictReader(f, restval='')
|
/littlefs-3.7.0-3.6.0/tests/ |
D | test_interspersed.toml | 138 lfs_file_open(&lfs, &files[1], "f", LFS_O_WRONLY | LFS_O_CREAT) => 0; 143 lfs_file_write(&lfs, &files[1], (const void*)"f", 1) => 1; 147 lfs_remove(&lfs, "f") => 0; 151 lfs_file_write(&lfs, &files[1], (const void*)"f", 1) => 1;
|
/littlefs-3.7.0-3.6.0/ |
D | lfs.c | 2359 for (lfs_file_t *f = (lfs_file_t*)lfs->mlist; f; f = f->next) { in lfs_dir_orphaningcommit() local 2360 if (dir != &f->m && lfs_pair_cmp(f->m.pair, dir->pair) == 0 && in lfs_dir_orphaningcommit() 2361 f->type == LFS_TYPE_REG && (f->flags & LFS_F_INLINE) && in lfs_dir_orphaningcommit() 2362 f->ctz.size > lfs->cfg->cache_size) { in lfs_dir_orphaningcommit() 2363 int err = lfs_file_outline(lfs, f); in lfs_dir_orphaningcommit() 2368 err = lfs_file_flush(lfs, f); in lfs_dir_orphaningcommit() 4623 for (lfs_file_t *f = (lfs_file_t*)lfs->mlist; f; f = f->next) { local 4624 if (f->type != LFS_TYPE_REG) { 4628 if ((f->flags & LFS_F_DIRTY) && !(f->flags & LFS_F_INLINE)) { 4629 int err = lfs_ctz_traverse(lfs, &f->cache, &lfs->rcache, [all …]
|
/littlefs-3.7.0-3.6.0/runners/ |
D | bench_runner.c | 504 FILE *f = fdopen(fd, "a"); in bench_trace() local 505 assert(f); in bench_trace() 506 int err = setvbuf(f, NULL, _IOFBF, in bench_trace() 509 bench_trace_file = f; in bench_trace()
|
D | test_runner.c | 520 FILE *f = fdopen(fd, "a"); in test_trace() local 521 assert(f); in test_trace() 522 int err = setvbuf(f, NULL, _IOFBF, in test_trace() 525 test_trace_file = f; in test_trace()
|