Linux Perf
units.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef PERF_UNIT_H
3 #define PERF_UNIT_H
4 
5 #include <stddef.h>
6 #include <linux/types.h>
7 
8 struct parse_tag {
9  char tag;
10  int mult;
11 };
12 
13 unsigned long parse_tag_value(const char *str, struct parse_tag *tags);
14 
15 unsigned long convert_unit(unsigned long value, char *unit);
16 int unit_number__scnprintf(char *buf, size_t size, u64 n);
17 
18 #endif /* PERF_UNIT_H */
int mult
Definition: units.h:10
int value
Definition: python.c:1143
char tag
Definition: units.h:9
size_t size
Definition: evsel.c:60
Definition: units.h:8
unsigned long parse_tag_value(const char *str, struct parse_tag *tags)
Definition: units.c:10
int unit_number__scnprintf(char *buf, size_t size, u64 n)
Definition: units.c:58
static int str(yyscan_t scanner, int token)
unsigned long convert_unit(unsigned long value, char *unit)
Definition: units.c:36