brintos

brintos / linux-shallow public Read only

0
0
Text · 445 B · ea43e74 Raw
20 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef PERF_UNIT_H3#define PERF_UNIT_H4 5#include <stddef.h>6#include <linux/types.h>7 8struct parse_tag {9	char tag;10	int  mult;11};12 13unsigned long parse_tag_value(const char *str, struct parse_tag *tags);14 15double convert_unit_double(double value, char *unit);16unsigned long convert_unit(unsigned long value, char *unit);17int unit_number__scnprintf(char *buf, size_t size, u64 n);18 19#endif /* PERF_UNIT_H */20