/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/include/linux/parser.h * * Header for lib/parser.c * Intended use of these functions is parsing filesystem argument lists, * but could potentially be used anywhere else that simple option=arg * parsing is required. */ #ifndef _LINUX_PARSER_H #define _LINUX_PARSER_H /* associates an integer enumerator with a pattern string. */ struct match_token { int token; const char *pattern; }; typedef struct match_token match_table_t[]; /* Maximum number of arguments that match_token will find in a pattern */ enum {MAX_OPT_ARGS = 3}; /* Describe the location within a string of a substring */ typedef struct { char *from; char *to; } substring_t; int match_token(char *, const match_table_t table, substring_t args[]); int match_int(substring_t *, int *result); int match_u64(substring_t *, u64 *result); int match_octal(substring_t *, int *result); int match_hex(substring_t *, int *result); bool match_wildcard(const char *pattern, const char *str); size_t match_strlcpy(char *, const substring_t *, size_t); char *match_strdup(const substring_t *); #endif /* _LINUX_PARSER_H */ linux-2.6.16.y'>linux-2.6.16.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/perl
AgeCommit message (Expand)Author
2025-10-06perf build: Disable thread safety analysis for perl headerLeo Yan
2024-06-26perf util: Make util its own libraryIan Rogers
2022-07-20perf python: Ignore unused command line arguments when building with clangArnaldo Carvalho de Melo
2022-07-20perf scripting perl: Ignore some warnings to keep building with perl headersArnaldo Carvalho de Melo
2020-03-11perf scripting perl: Add common_callchain to fix argument orderMichael Petlan
2019-08-29perf tools: Remove perf.h from source files not needing itArnaldo Carvalho de Melo
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 166Thomas Gleixner
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156Thomas Gleixner
2019-02-14perf tools: Rename build libperf to perfJiri Olsa
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman
2016-08-02perf tools: Fix build failure on perl script contextNamhyung Kim