Searched refs:schedstat (Results 1 - 3 of 3) sorted by relevance

/systemd/src/bootchart/
H A Dstore.c164 /* Parse "/proc/schedstat" for overall CPU utilization */
165 r = read_full_file("/proc/schedstat", &buf_schedstat, NULL);
167 return log_error_errno(r, "Unable to read schedstat: %m");
240 ps->schedstat = -1;
364 if (ps->schedstat < 0) {
365 sprintf(filename, "%d/schedstat", pid);
366 ps->schedstat = openat(procfd, filename, O_RDONLY|O_CLOEXEC);
367 if (ps->schedstat < 0)
371 s = pread(ps->schedstat, buf, sizeof(buf) - 1, 0);
374 close(ps->schedstat);
[all...]
H A Dbootchart.h39 /* /proc/schedstat fields 10 & 11 (after name) */
46 /* /proc/<n>/schedstat fields 1 & 2 */
82 int schedstat; member in struct:ps_struct
H A Dbootchart.c461 ps->schedstat = safe_close(ps->schedstat);

Completed in 865 milliseconds