| .. | .. |
|---|
| 2 | 2 | #ifndef PERF_STRING_H |
|---|
| 3 | 3 | #define PERF_STRING_H |
|---|
| 4 | 4 | |
|---|
| 5 | +#include <linux/string.h> |
|---|
| 5 | 6 | #include <linux/types.h> |
|---|
| 7 | +#include <sys/types.h> // pid_t |
|---|
| 6 | 8 | #include <stddef.h> |
|---|
| 7 | 9 | #include <string.h> |
|---|
| 8 | 10 | |
|---|
| 11 | +extern const char *graph_dotted_line; |
|---|
| 12 | +extern const char *dots; |
|---|
| 13 | + |
|---|
| 9 | 14 | s64 perf_atoll(const char *str); |
|---|
| 10 | | -char **argv_split(const char *str, int *argcp); |
|---|
| 11 | | -void argv_free(char **argv); |
|---|
| 12 | 15 | bool strglobmatch(const char *str, const char *pat); |
|---|
| 13 | 16 | bool strglobmatch_nocase(const char *str, const char *pat); |
|---|
| 14 | 17 | bool strlazymatch(const char *str, const char *pat); |
|---|
| .. | .. |
|---|
| 17 | 20 | return strpbrk(str, "*?[") != NULL; |
|---|
| 18 | 21 | } |
|---|
| 19 | 22 | int strtailcmp(const char *s1, const char *s2); |
|---|
| 20 | | -char *strxfrchar(char *s, char from, char to); |
|---|
| 21 | | - |
|---|
| 22 | | -char *ltrim(char *s); |
|---|
| 23 | | -char *rtrim(char *s); |
|---|
| 24 | | - |
|---|
| 25 | | -static inline char *trim(char *s) |
|---|
| 26 | | -{ |
|---|
| 27 | | - return ltrim(rtrim(s)); |
|---|
| 28 | | -} |
|---|
| 29 | 23 | |
|---|
| 30 | 24 | char *asprintf_expr_inout_ints(const char *var, bool in, size_t nints, int *ints); |
|---|
| 31 | 25 | |
|---|
| .. | .. |
|---|
| 39 | 33 | return asprintf_expr_inout_ints(var, false, nints, ints); |
|---|
| 40 | 34 | } |
|---|
| 41 | 35 | |
|---|
| 36 | +char *asprintf__tp_filter_pids(size_t npids, pid_t *pids); |
|---|
| 37 | + |
|---|
| 42 | 38 | char *strpbrk_esc(char *str, const char *stopset); |
|---|
| 43 | 39 | char *strdup_esc(const char *str); |
|---|
| 44 | 40 | |
|---|