lttng cli: Accept human readable sizes for --subbuf-size
[lttng-tools.git] / src / common / utils.h
index 2d39cefb96b7bfa27c12f2ee1865d294ca0bca9c..d8a5321c7c5799e7b706390cacd93b8cd3e4be1f 100644 (file)
 #ifndef _COMMON_UTILS_H
 #define _COMMON_UTILS_H
 
+#include <sys/types.h>
+#include <unistd.h>
+#include <stdint.h>
+
+#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 */
This page took 0.024146 seconds and 5 git commands to generate.