1 #ifndef PERF_UNIT_H 2 #define PERF_UNIT_H 3 4 #include <stddef.h> 5 #include <linux/types.h> 6 7 struct parse_tag { 8 char tag; 9 int mult; 10 }; 11 12 unsigned long parse_tag_value(const char *str, struct parse_tag *tags); 13 14 unsigned long convert_unit(unsigned long value, char *unit); 15 int unit_number__scnprintf(char *buf, size_t size, u64 n); 16 17 #endif /* PERF_UNIT_H */ 18