blob: 99263b6a23f7bbd99ed8686eacf034f447627d10 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Arnaldo Carvalho de Melo58db1d62017-04-19 16:05:56 -03002#ifndef PERF_UNIT_H
3#define PERF_UNIT_H
4
5#include <stddef.h>
6#include <linux/types.h>
7
Arnaldo Carvalho de Melo3caeafce2017-04-26 15:40:31 -03008struct parse_tag {
9 char tag;
10 int mult;
11};
12
13unsigned long parse_tag_value(const char *str, struct parse_tag *tags);
14
Arnaldo Carvalho de Melo58db1d62017-04-19 16:05:56 -030015unsigned long convert_unit(unsigned long value, char *unit);
16int unit_number__scnprintf(char *buf, size_t size, u64 n);
17
18#endif /* PERF_UNIT_H */