Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 34) sorted by relevance

12

/redis-3.2.3/deps/lua/test/
H A Dxd.lua4 local offset=0
8 io.write(string.format("%08X ",offset))
13 offset=offset+16
/redis-3.2.3/deps/jemalloc/test/integration/
H A Dchunk.c53 chunk_commit(void *chunk, size_t size, size_t offset, size_t length, in chunk_commit() argument
59 "arena_ind=%u)\n", __func__, chunk, size, offset, length, in chunk_commit()
61 err = old_hooks.commit(chunk, size, offset, length, arena_ind); in chunk_commit()
67 chunk_decommit(void *chunk, size_t size, size_t offset, size_t length, in chunk_decommit() argument
73 "arena_ind=%u)\n", __func__, chunk, size, offset, length, in chunk_decommit()
77 err = old_hooks.decommit(chunk, size, offset, length, arena_ind); in chunk_decommit()
83 chunk_purge(void *chunk, size_t size, size_t offset, size_t length, in chunk_purge() argument
88 "arena_ind=%u)\n", __func__, chunk, size, offset, length, in chunk_purge()
91 return (old_hooks.purge(chunk, size, offset, length, arena_ind)); in chunk_purge()
H A Drallocx.c49 validate_fill(const void *p, uint8_t c, size_t offset, size_t len) in validate_fill() argument
56 uint8_t b = buf[offset+i]; in validate_fill()
60 offset+i); in validate_fill()
H A Dxallocx.c371 validate_fill(const void *p, uint8_t c, size_t offset, size_t len) in validate_fill() argument
377 for (i = offset, err = false; i < offset+len; i++) { in validate_fill()
383 print_filled_extents(p, c, offset + len); in validate_fill()
/redis-3.2.3/utils/
H A Dcorrupt_rdb.c34 unsigned long offset = rand()%stat.st_size; in main() local
39 lseek(fd,offset,SEEK_SET); in main()
40 printf("Writing %d bytes at offset %lu\n", writelen, offset); in main()
/redis-3.2.3/src/
H A Dbitops.c207 byte = offset >> 3; in setUnsignedBitfield()
208 bit = 7 - (offset & 0x7); in setUnsignedBitfield()
213 offset++; in setUnsignedBitfield()
219 setUnsignedBitfield(p,offset,bits,uv); in setSignedBitfield()
226 byte = offset >> 3; in getUnsignedBitfield()
227 bit = 7 - (offset & 0x7); in getUnsignedBitfield()
231 offset++; in getUnsignedBitfield()
247 conv.u = getUnsignedBitfield(p,offset,bits); in getSignedBitfield()
429 *offset = (size_t)loffset; in getBitOffsetFromArgument()
895 uint64_t offset; /* Bitfield offset. */ member
[all …]
H A Dzipmap.c212 unsigned int zmlen, offset; in zipmapSet() local
237 offset = p-zm; in zipmapSet()
239 p = zm+offset; in zipmapSet()
243 memmove(p+reqlen, p+freelen, zmlen-(offset+freelen+1)); in zipmapSet()
257 offset = p-zm; in zipmapSet()
258 memmove(p+reqlen, p+freelen, zmlen-(offset+freelen+1)); in zipmapSet()
261 p = zm+offset; in zipmapSet()
H A Dreplication.c391 slave->psync_initial_offset = offset; in replicationSetupSlaveForFullResync()
742 long long offset; in replconfCommand() local
747 if (offset > c->repl_ack_off) in replconfCommand()
1334 offset = strchr(runid,' '); in slaveTryPartialResynchronization()
1335 if (offset) offset++; in slaveTryPartialResynchronization()
1337 if (!runid || !offset || (offset-runid-1) != CONFIG_RUN_ID_SIZE) { in slaveTryPartialResynchronization()
2140 long long offset = c->woff; in waitCommand() local
2158 c->bpop.reploffset = offset; in waitCommand()
2216 long long offset = 0; in replicationGetSlaveOffset() local
2229 if (offset < 0) offset = 0; in replicationGetSlaveOffset()
[all …]
H A Dquicklist.c406 size_t offset = (-fill) - 1; in _quicklistNodeSizeMeetsOptimizationRequirement() local
647 iter->offset = 0; in quicklistDelEntry()
650 iter->offset = -1; in quicklistDelEntry()
1002 del = -entry.offset; in quicklistDelRange()
1036 entry.offset = 0; in quicklistDelRange()
1055 iter->offset = 0; in quicklistGetIterator()
1058 iter->offset = -1; in quicklistGetIterator()
1080 base->offset = entry.offset; in quicklistGetIteratorAtIdx()
1154 entry->offset = iter->offset; in quicklistNext()
1168 iter->offset = 0; in quicklistNext()
[all …]
H A Dt_string.c186 long offset; in setrangeCommand() local
189 if (getLongFromObjectOrReply(c,c->argv[2],&offset,NULL) != C_OK) in setrangeCommand()
192 if (offset < 0) { in setrangeCommand()
206 if (checkStringLength(c,offset+sdslen(value)) != C_OK) in setrangeCommand()
209 o = createObject(OBJ_STRING,sdsnewlen(NULL, offset+sdslen(value))); in setrangeCommand()
226 if (checkStringLength(c,offset+sdslen(value)) != C_OK) in setrangeCommand()
234 o->ptr = sdsgrowzero(o->ptr,offset+sdslen(value)); in setrangeCommand()
235 memcpy((char*)o->ptr+offset,value,sdslen(value)); in setrangeCommand()
H A Dziplist.c485 offset = p-zl; in __ziplistCascadeUpdate()
488 p = zl+offset; in __ziplistCascadeUpdate()
528 size_t offset; in __ziplistDelete() local
575 p = zl+offset; in __ziplistDelete()
589 size_t offset; in __ziplistInsert() local
627 offset = p-zl; in __ziplistInsert()
629 p = zl+offset; in __ziplistInsert()
659 offset = p-zl; in __ziplistInsert()
661 p = zl+offset; in __ziplistInsert()
897 size_t offset = *p-zl; in ziplistDelete() local
[all …]
H A Dquicklist.h86 long offset; /* offset in current ziplist */ member
97 int offset; member
H A Dsparkline.c97 sds sparklineRenderRange(sds output, struct sequence *seq, int rows, int offset, int len, int flags… in sparklineRenderRange() argument
117 struct sample *s = &seq->samples[j+offset]; in sparklineRenderRange()
H A Dsparkline.h53 sds sparklineRenderRange(sds output, struct sequence *seq, int rows, int offset, int len, int flags…
/redis-3.2.3/deps/jemalloc/src/
H A Dchunk_mmap.c38 size_t offset; in chunk_alloc_mmap() local
59 offset = ALIGNMENT_ADDR2OFFSET(ret, alignment); in chunk_alloc_mmap()
60 if (offset != 0) { in chunk_alloc_mmap()
H A Dchunk.c25 static bool chunk_commit_default(void *chunk, size_t size, size_t offset,
27 static bool chunk_decommit_default(void *chunk, size_t size, size_t offset,
29 static bool chunk_purge_default(void *chunk, size_t size, size_t offset,
624 return (pages_commit((void *)((uintptr_t)chunk + (uintptr_t)offset), in chunk_commit_default()
633 return (pages_decommit((void *)((uintptr_t)chunk + (uintptr_t)offset), in chunk_decommit_default()
643 assert((offset & PAGE_MASK) == 0); in chunk_purge_arena()
647 return (pages_purge((void *)((uintptr_t)chunk + (uintptr_t)offset), in chunk_purge_arena()
652 chunk_purge_default(void *chunk, size_t size, size_t offset, size_t length, in chunk_purge_default() argument
656 return (chunk_purge_arena(chunk_arena_get(arena_ind), chunk, offset, in chunk_purge_default()
662 size_t size, size_t offset, size_t length) in chunk_purge_wrapper() argument
[all …]
H A Dquarantine.c145 size_t offset = (quarantine->first + quarantine->curobjs) & in quarantine() local
147 quarantine_obj_t *obj = &quarantine->objs[offset]; in quarantine()
H A Dckh.c96 unsigned offset, i; in ckh_try_bucket_insert() local
102 prng32(offset, LG_CKH_BUCKET_CELLS, ckh->prng_state, CKH_A, CKH_C); in ckh_try_bucket_insert()
105 ((i + offset) & ((ZU(1) << LG_CKH_BUCKET_CELLS) - 1))]; in ckh_try_bucket_insert()
/redis-3.2.3/deps/jemalloc/include/jemalloc/
H A Djemalloc_typedefs.h.in16 * chunk_commit(void *chunk, size_t size, size_t offset, size_t length,
23 * chunk_decommit(void *chunk, size_t size, size_t offset, size_t length,
30 * chunk_purge(void *chunk, size_t size, size_t offset, size_t length,
/redis-3.2.3/deps/lua/src/
H A Dlua_cmsgpack.c786 int mp_unpack_full(lua_State *L, int limit, int offset) { in mp_unpack_full() argument
791 int decode_all = (!limit && !offset); in mp_unpack_full()
798 offset, len); in mp_unpack_full()
799 else if (offset > len) in mp_unpack_full()
805 mp_cur_init(&c,(const unsigned char *)s+offset,len-offset); in mp_unpack_full()
823 int offset = len - c.left; in mp_unpack_full() local
825 lua_pushinteger(L, c.left == 0 ? -1 : offset); in mp_unpack_full()
844 int offset = luaL_optinteger(L, 2, 0); in mp_unpack_one() local
847 return mp_unpack_full(L, 1, offset); in mp_unpack_one()
852 int offset = luaL_optinteger(L, 3, 0); in mp_unpack_limit() local
[all …]
H A Dlcode.c82 int offset = dest-(pc+1); in fixjump() local
84 if (abs(offset) > MAXARG_sBx) in fixjump()
86 SETARG_sBx(*jmp, offset); in fixjump()
101 int offset = GETARG_sBx(fs->f->code[pc]); in getjump() local
102 if (offset == NO_JUMP) /* point to itself represents end of list */ in getjump()
105 return (pc+1)+offset; /* turn offset into absolute position */ in getjump()
/redis-3.2.3/deps/jemalloc/bin/
H A Djeprof.in1321 my $offset = shift;
1431 $lib->[0], $offset,
1592 my $offset = shift;
1885 my $offset = shift;
4488 my $offset;
4503 $offset = $zero_offset;
4515 $offset = $zero_offset;
4536 $offset = AddressAdd($offset, $vma_offset);
4746 my $offset = $lib->[3];
4781 my $offset = shift;
[all …]
/redis-3.2.3/deps/jemalloc/include/jemalloc/internal/
H A Dchunk.h69 bool chunk_purge_arena(arena_t *arena, void *chunk, size_t offset,
72 void *chunk, size_t size, size_t offset, size_t length);
/redis-3.2.3/tests/integration/
H A Dreplication.tcl169 lassign $res role offset slaves
171 assert {$offset > 0}
174 assert {$slave_offset <= $offset}
/redis-3.2.3/deps/jemalloc/test/unit/
H A Dquarantine.c63 size_t offset, uint8_t byte) in arena_redzone_corruption_replacement() argument

12