Linux Perf
units.c File Reference
#include "units.h"
#include <inttypes.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <linux/kernel.h>
#include <linux/time64.h>
Include dependency graph for units.c:

Go to the source code of this file.

Functions

unsigned long parse_tag_value (const char *str, struct parse_tag *tags)
 
unsigned long convert_unit (unsigned long value, char *unit)
 
int unit_number__scnprintf (char *buf, size_t size, u64 n)
 

Function Documentation

◆ convert_unit()

unsigned long convert_unit ( unsigned long  value,
char *  unit 
)

Definition at line 36 of file units.c.

◆ parse_tag_value()

unsigned long parse_tag_value ( const char *  str,
struct parse_tag tags 
)

Definition at line 10 of file units.c.

◆ unit_number__scnprintf()

int unit_number__scnprintf ( char *  buf,
size_t  size,
u64  n 
)

Definition at line 58 of file units.c.