Lines Matching defs:offset
37 get_trace_entry(struct spdk_trace_history *history, uint64_t offset)
39 return &history->entries[offset & (history->num_entries - 1)];
51 unsigned lcore, i, offset, num_entries, arglen, argoff, curlen;
88 /* The initial offset needs to be adjusted by the fields present in the first entry
91 offset = offsetof(struct spdk_trace_entry, args) -
127 if (spdk_unlikely(offset == sizeof(buffer->data))) {
134 offset = 0;
137 curlen = spdk_min(sizeof(buffer->data) - offset, argument->size - argoff);
140 memcpy(&buffer->data[offset], (uint8_t *)argval + argoff,
144 offset += curlen;
150 assert(offset > 0);
151 buffer->data[offset - 1] = '\0';