cregit-Linux how code gets into the kernel

Release 4.14 tools/perf/util/string2.h

Directory: tools/perf/util
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef PERF_STRING_H

#define PERF_STRING_H

#include <linux/types.h>
#include <stddef.h>
#include <string.h>

s64 perf_atoll(const char *str);
char **argv_split(const char *str, int *argcp);
void argv_free(char **argv);
bool strglobmatch(const char *str, const char *pat);
bool strglobmatch_nocase(const char *str, const char *pat);
bool strlazymatch(const char *str, const char *pat);

static inline bool strisglob(const char *str) { return strpbrk(str, "*?[") != NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo22100.00%1100.00%
Total22100.00%1100.00%

int strtailcmp(const char *s1, const char *s2); char *strxfrchar(char *s, char from, char to); char *ltrim(char *s); char *rtrim(char *s);
static inline char *trim(char *s) { return ltrim(rtrim(s)); }

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo21100.00%1100.00%
Total21100.00%1100.00%

char *asprintf_expr_inout_ints(const char *var, bool in, size_t nints, int *ints);
static inline char *asprintf_expr_in_ints(const char *var, size_t nints, int *ints) { return asprintf_expr_inout_ints(var, true, nints, ints); }

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo32100.00%1100.00%
Total32100.00%1100.00%


static inline char *asprintf_expr_not_in_ints(const char *var, size_t nints, int *ints) { return asprintf_expr_inout_ints(var, false, nints, ints); }

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo32100.00%1100.00%
Total32100.00%1100.00%

#endif /* PERF_STRING_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo26799.63%150.00%
Greg Kroah-Hartman10.37%150.00%
Total268100.00%2100.00%
Directory: tools/perf/util
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.