diff options
author | John Crispin <blogic@openwrt.org> | 2013-08-27 14:50:45 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-09-03 19:49:59 +0200 |
commit | 8555851160bcc5a04acfa8837af0977b82f7b500 (patch) | |
tree | 413cd74c26f7c49931331664a04cdd7778369623 /procd.h | |
parent | 392ad3ba793f44a343026d5d49f7b8dc1435a2b8 (diff) | |
download | procd-8555851160bcc5a04acfa8837af0977b82f7b500.tar.gz |
add suport for measuring process resource usage
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'procd.h')
-rw-r--r-- | procd.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -75,4 +75,13 @@ void trigger_event(char *type, struct blob_attr *data); void trigger_add(struct blob_attr *rule, void *id); void trigger_del(void *id); +struct pid_info { + char stat; + uint32_t ppid; + uint32_t fdcount; + uint32_t vmsize; + uint16_t uid; +}; +int measure_process(pid_t pid, struct pid_info *pi); + #endif |