Lines Matching refs:track
327 void init_resource_track(struct resource_track *track, io_channel channel)
334 track->brk_start = sbrk(0);
335 gettimeofday(&track->time_start, 0);
341 track->user_start = r.ru_utime;
342 track->system_start = r.ru_stime;
344 track->user_start.tv_sec = track->user_start.tv_usec = 0;
345 track->system_start.tv_sec = track->system_start.tv_usec = 0;
347 track->bytes_read = 0;
348 track->bytes_written = 0;
352 track->bytes_read = io_start->bytes_read;
353 track->bytes_written = io_start->bytes_written;
371 struct resource_track *track, io_channel channel)
401 ((char *) track->brk_start)));
407 timeval_subtract(&time_end, &track->time_start),
408 timeval_subtract(&r.ru_utime, &track->user_start),
409 timeval_subtract(&r.ru_stime, &track->system_start));
412 timeval_subtract(&time_end, &track->time_start));
425 bytes_read = delta->bytes_read - track->bytes_read;
427 track->bytes_written;
433 timeval_subtract(&time_end, &track->time_start));