X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.h;h=f372bf46404ff6a5a587df3d513f0cb3a95af6ae;hp=1221f0eec7336ee4165fcfb7b3360916e7f61599;hb=18710679a8ac57fda5dbd26cf16bb180dce9e286;hpb=4b223a6755662f272f7db155ee380528728e5dd1 diff --git a/src/common/utils.h b/src/common/utils.h index 1221f0eec..f372bf464 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -23,6 +23,8 @@ #include #include +#include + #define KIBI_LOG2 10 #define MEBI_LOG2 20 #define GIBI_LOG2 30 @@ -61,5 +63,7 @@ int utils_create_lock_file(const char *filepath); int utils_recursive_rmdir(const char *path); int utils_truncate_stream_file(int fd, off_t length); int utils_show_help(int section, const char *page_name, const char *help_msg); +int utils_get_memory_available(size_t *value); +int utils_get_memory_total(size_t *value); #endif /* _COMMON_UTILS_H */