Lines Matching refs:zcurrent
398 static int zcurrent = 0; /* index of the next slot in the log to use */
1049 if (!check_freed_element && zrecords[zcurrent].z_element && zrecorded < log_records) {
1054 * starting at zcurrent and wrap-around if we reach the end of the buffer. If the buffer
1055 * is already full, we just fall through and overwrite the element indexed by zcurrent.
1058 for (i = zcurrent; i < log_records; i++) {
1060 zcurrent = i;
1065 for (i = 0; i < zcurrent; i++) {
1067 zcurrent = i;
1078 if (zrecords[zcurrent].z_element == NULL)
1081 zrecords[zcurrent].z_element = (void *)addr;
1082 zrecords[zcurrent].z_time = ztime++;
1083 zrecords[zcurrent].z_opcode = ZOP_ALLOC;
1086 zrecords[zcurrent].z_pc[i] = bt[i];
1089 zrecords[zcurrent].z_pc[i] = 0;
1091 zcurrent++;
1093 if (zcurrent >= log_records)
1094 zcurrent = 0;
1243 if (zrecords[zcurrent].z_element == NULL)
1246 zrecords[zcurrent].z_element = (void *)addr;
1247 zrecords[zcurrent].z_time = ztime++;
1248 zrecords[zcurrent].z_opcode = ZOP_FREE;
1251 zrecords[zcurrent].z_pc[i] = bt[i];
1254 zrecords[zcurrent].z_pc[i] = 0;
1256 zcurrent++;
1258 if (zcurrent >= log_records)
1259 zcurrent = 0;
1273 zcurrent = i;