Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / units.h
blobea43e74e3240abcf1f9ebeb1b1eb33e509992349
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef PERF_UNIT_H
3 #define PERF_UNIT_H
5 #include <stddef.h>
6 #include <linux/types.h>
8 struct parse_tag {
9 char tag;
10 int mult;
13 unsigned long parse_tag_value(const char *str, struct parse_tag *tags);
15 double convert_unit_double(double value, char *unit);
16 unsigned long convert_unit(unsigned long value, char *unit);
17 int unit_number__scnprintf(char *buf, size_t size, u64 n);
19 #endif /* PERF_UNIT_H */