X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.h;h=d8a5321c7c5799e7b706390cacd93b8cd3e4be1f;hp=2d39cefb96b7bfa27c12f2ee1865d294ca0bca9c;hb=70d0b120691e90d81de7b38af8b845e261b5b40c;hpb=9a3633697faff9b12a64b6d727444eb370fd2340 diff --git a/src/common/utils.h b/src/common/utils.h index 2d39cefb9..d8a5321c7 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -18,6 +18,14 @@ #ifndef _COMMON_UTILS_H #define _COMMON_UTILS_H +#include +#include +#include + +#define KIBI_LOG2 10 +#define MEBI_LOG2 20 +#define GIBI_LOG2 30 + char *utils_expand_path(const char *path); int utils_create_pipe(int *dst); int utils_create_pipe_cloexec(int *dst); @@ -30,5 +38,6 @@ int utils_create_stream_file(char *path_name, char *file_name, uint64_t size, uint64_t count, int uid, int gid); int utils_rotate_stream_file(char *path_name, char *file_name, uint64_t size, uint64_t count, int uid, int gid, int out_fd, uint64_t *new_count); +int utils_parse_size_suffix(char *str, uint64_t *size); #endif /* _COMMON_UTILS_H */