perf probe: Add lazy line matching support
[safe/jmp/linux-2.6] / tools / perf / util / string.h
1 #ifndef __PERF_STRING_H_
2 #define __PERF_STRING_H_
3
4 #include <stdbool.h>
5 #include "types.h"
6
7 int hex2u64(const char *ptr, u64 *val);
8 char *strxfrchar(char *s, char from, char to);
9 s64 perf_atoll(const char *str);
10 char **argv_split(const char *str, int *argcp);
11 void argv_free(char **argv);
12 bool strglobmatch(const char *str, const char *pat);
13 bool strlazymatch(const char *str, const char *pat);
14
15 #define _STR(x) #x
16 #define STR(x) _STR(x)
17
18 #endif /* __PERF_STRING_H */