blob: f02c87317150e0d5f50296b33bb29fd96b6b9edb [file] [log] [blame]
Arnaldo Carvalho de Melo58db1d62017-04-19 16:05:56 -03001#ifndef PERF_UNIT_H
2#define PERF_UNIT_H
3
4#include <stddef.h>
5#include <linux/types.h>
6
Arnaldo Carvalho de Melo3caeafce2017-04-26 15:40:31 -03007struct parse_tag {
8 char tag;
9 int mult;
10};
11
12unsigned long parse_tag_value(const char *str, struct parse_tag *tags);
13
Arnaldo Carvalho de Melo58db1d62017-04-19 16:05:56 -030014unsigned long convert_unit(unsigned long value, char *unit);
15int unit_number__scnprintf(char *buf, size_t size, u64 n);
16
17#endif /* PERF_UNIT_H */