Lines Matching refs:iotrace
49 static struct iotrace { struct
55 } iotrace; argument
67 if (!(gd->flags & GD_FLG_RELOC) || !iotrace.enabled) in add_record()
71 if (iotrace.offset + sizeof(*rec) < iotrace.size) { in add_record()
73 iotrace.start + iotrace.offset, in add_record()
82 iotrace.crc32 = crc32(iotrace.crc32, (unsigned char *)rec, in add_record()
85 iotrace.offset += sizeof(struct iotrace_record); in add_record()
142 iotrace.crc32 = 0; in iotrace_reset_checksum()
147 return iotrace.crc32; in iotrace_get_checksum()
152 iotrace.enabled = enable; in iotrace_set_enabled()
157 return iotrace.enabled; in iotrace_get_enabled()
162 iotrace.start = start; in iotrace_set_buffer()
163 iotrace.size = size; in iotrace_set_buffer()
164 iotrace.offset = 0; in iotrace_set_buffer()
165 iotrace.crc32 = 0; in iotrace_set_buffer()
170 *start = iotrace.start; in iotrace_get_buffer()
171 *size = iotrace.size; in iotrace_get_buffer()
172 *offset = iotrace.offset; in iotrace_get_buffer()
173 *count = iotrace.offset / sizeof(struct iotrace_record); in iotrace_get_buffer()