Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef PERF_STRING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define PERF_STRING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/string.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #include <sys/types.h> // pid_t
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <stddef.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <string.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) extern const char *graph_dotted_line;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) extern const char *dots;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) s64 perf_atoll(const char *str);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) bool strglobmatch(const char *str, const char *pat);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) bool strglobmatch_nocase(const char *str, const char *pat);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) bool strlazymatch(const char *str, const char *pat);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) static inline bool strisglob(const char *str)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	return strpbrk(str, "*?[") != NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int strtailcmp(const char *s1, const char *s2);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) char *asprintf_expr_inout_ints(const char *var, bool in, size_t nints, int *ints);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) static inline char *asprintf_expr_in_ints(const char *var, size_t nints, int *ints)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	return asprintf_expr_inout_ints(var, true, nints, ints);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) static inline char *asprintf_expr_not_in_ints(const char *var, size_t nints, int *ints)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	return asprintf_expr_inout_ints(var, false, nints, ints);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) char *asprintf__tp_filter_pids(size_t npids, pid_t *pids);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) char *strpbrk_esc(char *str, const char *stopset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) char *strdup_esc(const char *str);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #endif /* PERF_STRING_H */