Arnaldo Carvalho de Melo | 58db1d6 | 2017-04-19 16:05:56 -0300 | [diff] [blame] | 1 | #ifndef PERF_UNIT_H |
| 2 | #define PERF_UNIT_H |
| 3 | |
| 4 | #include <stddef.h> |
| 5 | #include <linux/types.h> |
| 6 | |
Arnaldo Carvalho de Melo | 3caeafce | 2017-04-26 15:40:31 -0300 | [diff] [blame] | 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 | |
Arnaldo Carvalho de Melo | 58db1d6 | 2017-04-19 16:05:56 -0300 | [diff] [blame] | 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 */ |