summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/string.h
blob: 2c84bf65ba0fac020c2df05732b4b7ee0d6afabc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __PERF_STRING_H_
#define __PERF_STRING_H_

#include "types.h"

int hex2u64(const char *ptr, u64 *val);
char *strxfrchar(char *s, char from, char to);

#define _STR(x) #x
#define STR(x) _STR(x)

#endif /* __PERF_STRING_H */