]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/perf/util/units.h
Merge tag 'xfs-4.13-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[mirror_ubuntu-bionic-kernel.git] / tools / perf / util / units.h
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 */