Open SCAP Library
Loading...
Searching...
No Matches
memusage.h
1#ifndef MEMUSAGE_H
2#define MEMUSAGE_H
3
4#include "oscap_platforms.h"
5
6#if defined(OS_LINUX)
7# define MEMUSAGE_LINUX_PROC_STATUS "/proc/self/status"
8# define MEMUSAGE_LINUX_PROC_ENV "MEMUSAGE_PROC_STATUS"
9# define MEMUSAGE_LINUX_SYS_STATUS "/proc/meminfo"
10# define MEMUSAGE_LINUX_SYS_ENV "MEMUSAGE_SYS_STATUS"
11#endif /* OS_LINUX */
12
14 size_t mu_rss;
15 size_t mu_hwm;
16 size_t mu_lib;
17 size_t mu_text;
18 size_t mu_data;
19 size_t mu_stack;
20 size_t mu_lock;
21};
22
24 size_t mu_total;
25 size_t mu_free;
26 size_t mu_realfree;
27 size_t mu_buffers;
28 size_t mu_cached;
29 size_t mu_active;
30 size_t mu_inactive;
31};
32
33int oscap_proc_memusage(struct proc_memusage *mu);
34int oscap_sys_memusage(struct sys_memusage *mu);
35
36#endif /* MEMUSAGE_H */
Definition memusage.h:13
Definition memusage.h:23