Home
last modified time | relevance | path

Searched refs:SUPERBLOCK_SIZE (Results 1 – 18 of 18) sorted by relevance

/external/valgrind/main/memcheck/tests/
Dmempool.c8 #define SUPERBLOCK_SIZE 100000 macro
39 p->where = p->mem = (char *)mmap(NULL, SUPERBLOCK_SIZE, in make_pool()
44 p->where = p->mem = (char *)malloc(SUPERBLOCK_SIZE); in make_pool()
47 p->size = p->left = SUPERBLOCK_SIZE; in make_pool()
49 VALGRIND_MAKE_MEM_NOACCESS(p->where, SUPERBLOCK_SIZE); in make_pool()
91 munmap(p->mem, SUPERBLOCK_SIZE); in destroy_pool()
Dmempool2.c13 #define SUPERBLOCK_SIZE 100000 macro
42 p->where = p->mem = (char *)mmap(NULL, SUPERBLOCK_SIZE, in make_pool()
47 p->where = p->mem = (char *)malloc(SUPERBLOCK_SIZE); in make_pool()
50 p->size = p->left = SUPERBLOCK_SIZE; in make_pool()
52 VALGRIND_MAKE_MEM_NOACCESS(p->where, SUPERBLOCK_SIZE); in make_pool()
94 munmap(p->mem, SUPERBLOCK_SIZE); in destroy_pool()
Dcustom_alloc.c8 #define SUPERBLOCK_SIZE 100000 macro
16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
25 VALGRIND_MAKE_MEM_NOACCESS(p, SUPERBLOCK_SIZE); in get_superblock()
41 hp_lim = hp + SUPERBLOCK_SIZE - 1; in custom_alloc()
/external/e2fsprogs/lib/ext2fs/
Ddupfs.c52 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &fs->super); in ext2fs_dup_handle()
55 memcpy(fs->super, src->super, SUPERBLOCK_SIZE); in ext2fs_dup_handle()
57 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &fs->orig_super); in ext2fs_dup_handle()
60 memcpy(fs->orig_super, src->orig_super, SUPERBLOCK_SIZE); in ext2fs_dup_handle()
Dclosefs.c150 retval = io_channel_write_blk(fs->io, 1, -SUPERBLOCK_SIZE, in write_primary_superblock()
159 for (check_idx = 0; check_idx < SUPERBLOCK_SIZE/2; check_idx++) { in write_primary_superblock()
163 for (check_idx++; check_idx < SUPERBLOCK_SIZE/2; check_idx++) in write_primary_superblock()
179 memcpy(fs->orig_super, super, SUPERBLOCK_SIZE); in write_primary_superblock()
215 return io_channel_write_blk(fs->io, group_block, -SUPERBLOCK_SIZE, in write_backup_super()
244 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &super_shadow); in ext2fs_flush()
Dopenfs.c134 retval = ext2fs_get_memalign(SUPERBLOCK_SIZE, 512, &fs->super); in ext2fs_open2()
174 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &fs->orig_super); in ext2fs_open2()
178 retval = io_channel_read_blk(fs->io, superblock, -SUPERBLOCK_SIZE, in ext2fs_open2()
183 memcpy(fs->orig_super, fs->super, SUPERBLOCK_SIZE); in ext2fs_open2()
Dtst_badblocks.c227 fs->super = malloc(SUPERBLOCK_SIZE); in file_test_invalid()
228 memset(fs->super, 0, SUPERBLOCK_SIZE); in file_test_invalid()
Dimager.c200 memcpy(buf, fs->super, SUPERBLOCK_SIZE); in ext2fs_image_super_write()
263 memcpy(fs->super, buf, SUPERBLOCK_SIZE); in ext2fs_image_super_read()
Dinitialize.c138 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &super); in ext2fs_initialize()
143 memset(super, 0, SUPERBLOCK_SIZE); in ext2fs_initialize()
Dundo_io.c143 retval = io_channel_read_blk(channel, 1, -SUPERBLOCK_SIZE, &super); in write_file_system_identity()
Dext2fs.h48 #define SUPERBLOCK_SIZE 1024 macro
/external/valgrind/main/massif/tests/
Dcustom_alloc.c8 #define SUPERBLOCK_SIZE 100000 macro
16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
35 hp_lim = hp + SUPERBLOCK_SIZE - 1; in custom_alloc()
/external/valgrind/main/drd/tests/
Dcustom_alloc.c8 #define SUPERBLOCK_SIZE 100000 macro
16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
35 hp_lim = hp + SUPERBLOCK_SIZE - 1; in custom_alloc()
/external/e2fsprogs/misc/
De2undo.c49 retval = io_channel_read_blk(channel, 1, -SUPERBLOCK_SIZE, &super); in check_filesystem()
Dmke2fs.c1930 retval = io_channel_read_blk(channel, 1, -SUPERBLOCK_SIZE, &super); in should_do_undo()
/external/e2fsprogs/e2fsck/
Dutil.c485 if (ext2fs_get_mem(SUPERBLOCK_SIZE, &buf)) in get_backup_sb()
496 -SUPERBLOCK_SIZE, buf)) in get_backup_sb()
Dsuper.c906 char buf[SUPERBLOCK_SIZE]; in check_backup_super_block()
930 retval = io_channel_read_blk(fs->io, sb, -SUPERBLOCK_SIZE, in check_backup_super_block()
/external/valgrind/main/massif/
Dms_main.c601 #define SUPERBLOCK_SIZE (1 << 20) // 1 MB in perm_malloc() macro
604 hp = (Addr)VG_(am_shadow_alloc)(SUPERBLOCK_SIZE); in perm_malloc()
607 SUPERBLOCK_SIZE); in perm_malloc()
608 hp_lim = hp + SUPERBLOCK_SIZE - 1; in perm_malloc()