Home | History | Annotate | Download | only in vmstat

Lines Matching refs:last

51 struct _drive	cur, last;
70 * Take the delta between the present values and the last recorded
71 * values, storing the present values in the 'last' structure, and
82 cur.fld -= last.fld; \
83 last.fld = tmp; \
89 timersub(&tmp_timer, &(last.x), &(cur.x)); \
90 timerclear(&(last.x)); \
91 timerset(&tmp_timer, &(last.x)); \
106 || cur.rxfer[i] - last.rxfer[i] > INT64_MAX
107 || cur.wxfer[i] - last.wxfer[i] > INT64_MAX
108 || cur.seek[i] - last.seek[i] > INT64_MAX
112 last.rxfer[i] = cur.rxfer[i];
113 last.wxfer[i] = cur.wxfer[i];
114 last.seek[i] = cur.seek[i];
115 last.rbytes[i] = cur.rbytes[i];
116 last.wbytes[i] = cur.wbytes[i];
118 timerclear(&last.wait[i]);
119 timerclear(&last.time[i]);
120 timerclear(&last.waitsum[i]);
121 timerclear(&last.busysum[i]);
122 timerclear(&last.timestamp[i]);
350 last.time = calloc(ndrive, sizeof(struct timeval));
351 last.wait = calloc(ndrive, sizeof(struct timeval));
352 last.waitsum = calloc(ndrive, sizeof(struct timeval));
353 last.busysum = calloc(ndrive, sizeof(struct timeval));
354 last.timestamp = calloc(ndrive, sizeof(struct timeval));
355 last.rxfer = calloc(ndrive, sizeof(u_int64_t));
356 last.wxfer = calloc(ndrive, sizeof(u_int64_t));
357 last.seek = calloc(ndrive, sizeof(u_int64_t));
358 last.rbytes = calloc(ndrive, sizeof(u_int64_t));
359 last.wbytes = calloc(ndrive, sizeof(u_int64_t));
369 last.time == NULL || last.wait == NULL ||
370 last.waitsum == NULL || last.busysum == NULL ||
371 last.timestamp == NULL ||
372 last.rxfer == NULL || last.wxfer == NULL ||
373 last.seek == NULL || last.rbytes == NULL ||
374 last.wbytes == NULL ||