diff options
Diffstat (limited to 'src/lib/process-stat.h')
-rw-r--r-- | src/lib/process-stat.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/process-stat.h b/src/lib/process-stat.h new file mode 100644 index 0000000..66fea7d --- /dev/null +++ b/src/lib/process-stat.h @@ -0,0 +1,26 @@ +#ifndef PROCESS_STAT_H +#define PROCESS_STAT_H + +struct process_stat { + uint64_t utime; + uint64_t stime; + uint64_t minor_faults; + uint64_t major_faults; + uint64_t vol_cs; + uint64_t invol_cs; + uint64_t rss; + uint64_t vsz; + uint64_t rchar; + uint64_t wchar; + uint64_t syscr; + uint64_t syscw; + bool proc_io_failed:1; + bool rusage_failed:1; + bool proc_stat_failed:1; + bool proc_status_failed:1; +}; + +void process_stat_read_start(struct process_stat *stat_r, struct event *event); +void process_stat_read_finish(struct process_stat *stat, struct event *event); + +#endif |