/littlefs-3.5.0-3.4.0/scripts/ |
D | readmdir.py | 275 def _dump_tags(self, tags, f=sys.stdout, truncate=True): argument 276 f.write("%-8s %-8s %-13s %4s %4s" % ( 279 f.write(' data (truncated)') 280 f.write('\n') 283 f.write("%08x: %08x %-13s %4s %4s" % ( 287 f.write(" %-23s %-8s\n" % ( 292 f.write("\n") 294 f.write(" %08x: %-47s %-16s\n" % ( 300 def dump_tags(self, f=sys.stdout, truncate=True): argument 301 self._dump_tags(self.tags, f=f, truncate=truncate) [all …]
|
D | test.py | 179 def build(self, f, **_): argument 183 f.write('#define %s %s\n' % (k, v)) 185 f.write('void test_case%d(%s) {' % (self.caseno, ','.join( 190 f.write(PROLOGUE) 191 f.write('\n') 192 f.write(4*' '+'// test case %d\n' % self.caseno) 193 f.write(4*' '+'#line %d "%s"\n' % (self.code_lineno, self.suite.path)) 196 f.write(self.code) 199 f.write(EPILOGUE) 200 f.write('}\n') [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 | coverage.py | 24 with open(path) as f: 25 for line in f: 95 with openio(args['use']) as f: 96 r = csv.DictReader(f) 114 with openio(args['diff']) as f: 115 r = csv.DictReader(f) 140 with openio(args['merge']) as f: 141 r = csv.DictReader(f) 156 with openio(args['output'], 'w') as f: 157 … w = csv.DictWriter(f, ['file', 'name', *other_fields, 'coverage_hits', 'coverage_count'])
|
D | data.py | 92 with openio(args['use']) as f: 93 r = csv.DictReader(f) 108 with openio(args['diff']) as f: 109 r = csv.DictReader(f) 131 with openio(args['merge']) as f: 132 r = csv.DictReader(f) 145 with openio(args['output'], 'w') as f: 146 w = csv.DictWriter(f, ['file', 'name', *other_fields, 'data_size'])
|
D | code.py | 93 with openio(args['use']) as f: 94 r = csv.DictReader(f) 109 with openio(args['diff']) as f: 110 r = csv.DictReader(f) 132 with openio(args['merge']) as f: 133 r = csv.DictReader(f) 146 with openio(args['output'], 'w') as f: 147 w = csv.DictWriter(f, ['file', 'name', *other_fields, 'code_size'])
|
D | stack.py | 53 with open(path) as f: 54 vcg = parse_vcg(f.read()) 145 with openio(args['use']) as f: 146 r = csv.DictReader(f) 166 with openio(args['diff']) as f: 167 r = csv.DictReader(f) 194 with openio(args['merge']) as f: 195 r = csv.DictReader(f) 210 with openio(args['output'], 'w') as f: 211 w = csv.DictWriter(f, ['file', 'name', *other_fields, 'stack_frame', 'stack_limit'])
|
D | structs.py | 144 with openio(args['use']) as f: 145 r = csv.DictReader(f) 160 with openio(args['diff']) as f: 161 r = csv.DictReader(f) 183 with openio(args['merge']) as f: 184 r = csv.DictReader(f) 197 with openio(args['output'], 'w') as f: 198 w = csv.DictWriter(f, ['file', 'name', *other_fields, 'struct_size'])
|
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 | summary.py | 74 with openio(path) as f: 75 r = csv.DictReader(f) 98 fields = [fields_dict[f] for f in args['fields']] 119 with openio(args['diff']) as f: 120 r = csv.DictReader(f)
|
D | explode_asserts.py | 299 except ParseFailure as f: 301 lastf = f 365 except ParseFailure as f:
|
/littlefs-3.5.0-3.4.0/tests/ |
D | test_interspersed.toml | 122 lfs_file_open(&lfs, &files[1], "f", LFS_O_WRONLY | LFS_O_CREAT) => 0; 127 lfs_file_write(&lfs, &files[1], (const void*)"f", 1) => 1; 131 lfs_remove(&lfs, "f") => 0; 135 lfs_file_write(&lfs, &files[1], (const void*)"f", 1) => 1;
|
/littlefs-3.5.0-3.4.0/ |
D | lfs.c | 2188 for (lfs_file_t *f = (lfs_file_t*)lfs->mlist; f; f = f->next) { in lfs_dir_orphaningcommit() local 2189 if (dir != &f->m && lfs_pair_cmp(f->m.pair, dir->pair) == 0 && in lfs_dir_orphaningcommit() 2190 f->type == LFS_TYPE_REG && (f->flags & LFS_F_INLINE) && in lfs_dir_orphaningcommit() 2191 f->ctz.size > lfs->cfg->cache_size) { in lfs_dir_orphaningcommit() 2192 int err = lfs_file_outline(lfs, f); in lfs_dir_orphaningcommit() 2197 err = lfs_file_flush(lfs, f); in lfs_dir_orphaningcommit() 4323 for (lfs_file_t *f = (lfs_file_t*)lfs->mlist; f; f = f->next) { local 4324 if (f->type != LFS_TYPE_REG) { 4328 if ((f->flags & LFS_F_DIRTY) && !(f->flags & LFS_F_INLINE)) { 4329 int err = lfs_ctz_traverse(lfs, &f->cache, &lfs->rcache, [all …]
|