hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/tools/perf/util/string2.h
....@@ -2,13 +2,16 @@
22 #ifndef PERF_STRING_H
33 #define PERF_STRING_H
44
5
+#include <linux/string.h>
56 #include <linux/types.h>
7
+#include <sys/types.h> // pid_t
68 #include <stddef.h>
79 #include <string.h>
810
11
+extern const char *graph_dotted_line;
12
+extern const char *dots;
13
+
914 s64 perf_atoll(const char *str);
10
-char **argv_split(const char *str, int *argcp);
11
-void argv_free(char **argv);
1215 bool strglobmatch(const char *str, const char *pat);
1316 bool strglobmatch_nocase(const char *str, const char *pat);
1417 bool strlazymatch(const char *str, const char *pat);
....@@ -17,15 +20,6 @@
1720 return strpbrk(str, "*?[") != NULL;
1821 }
1922 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
-}
2923
3024 char *asprintf_expr_inout_ints(const char *var, bool in, size_t nints, int *ints);
3125
....@@ -39,6 +33,8 @@
3933 return asprintf_expr_inout_ints(var, false, nints, ints);
4034 }
4135
36
+char *asprintf__tp_filter_pids(size_t npids, pid_t *pids);
37
+
4238 char *strpbrk_esc(char *str, const char *stopset);
4339 char *strdup_esc(const char *str);
4440