7 #ifndef RMONITOR_POLL_INTERNAL_H
8 #define RMONITOR_POLL_INTERNAL_H
13 #include "rmonitor_types.h"
14 #if defined(CCTOOLS_OPSYS_DARWIN)
15 #include <sys/param.h>
16 #include <sys/mount.h>
17 #include <sys/resource.h>
22 #include <sys/types.h>
25 #ifdef HAS_SYS_STATFS_H
26 #include <sys/statfs.h>
29 #ifdef HAS_SYS_STATVFS_H
30 #include <sys/statvfs.h>
33 #include "int_sizes.h"
34 #include "rmonitor_types.h"
35 #include "rmsummary.h"
37 #include "rmonitor_poll.h"
40 void rmonitor_poll_all_wds_once(
struct hash_table *wdirs,
struct rmonitor_wdir_info *acc,
int max_time_for_measurement);
44 int rmonitor_poll_wd_once(
struct rmonitor_wdir_info *d,
int max_time_for_measurement);
46 int rmonitor_poll_maps_once(
struct itable *processes,
struct rmonitor_mem_info *mem);
55 int rmonitor_get_dsk_usage(
const char *path,
struct statfs *disk);
66 void acc_dsk_usage(
struct statfs *acc,
struct statfs *other);
69 FILE *open_proc_file(pid_t pid,
char *filename);
70 int get_int_attribute(FILE *fstatus,
char *attribute, uint64_t *value,
int rewind_flag);
72 uint64_t usecs_since_epoch();
Definition: rmonitor_types.h:47
Definition: rmonitor_types.h:111
Definition: rmonitor_types.h:41
Definition: rmonitor_types.h:77
Definition: rmonitor_types.h:72
Definition: rmonitor_types.h:121
Definition: rmsummary.h:26
Definition: rmonitor_types.h:53
A general purpose hash table.
Definition: rmonitor_types.h:133
An integer-indexed hash table.