Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v4.12-rc1 17 lines 352 B view raw
1#ifndef PERF_UNIT_H 2#define PERF_UNIT_H 3 4#include <stddef.h> 5#include <linux/types.h> 6 7struct parse_tag { 8 char tag; 9 int mult; 10}; 11 12unsigned long parse_tag_value(const char *str, struct parse_tag *tags); 13 14unsigned 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 */