tools/perf/tests/shell/common/patterns.sh
Source file repositories/reference/linux-study-clean/tools/perf/tests/shell/common/patterns.sh
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/tests/shell/common/patterns.sh- Extension
.sh- Size
- 9025 bytes
- Lines
- 269
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: tools
- Status
- atlas-only
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
# SPDX-License-Identifier: GPL-2.0
export RE_NUMBER="[0-9\.]+"
# Number
# Examples:
# 123.456
export RE_NUMBER_HEX="[0-9A-Fa-f]+"
# Hexadecimal number
# Examples:
# 1234
# a58d
# aBcD
# deadbeef
export RE_DATE_YYYYMMDD="[0-9]{4}-(?:(?:01|03|05|07|08|10|12)-(?:[0-2][0-9]|3[0-1])|02-[0-2][0-9]|(?:(?:04|06|09|11)-(?:[0-2][0-9]|30)))"
# Date in YYYY-MM-DD form
# Examples:
# 1990-02-29
# 0015-07-31
# 2456-12-31
#! 2012-13-01
#! 1963-09-31
export RE_TIME="(?:[0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]"
# Time
# Examples:
# 15:12:27
# 23:59:59
#! 24:00:00
#! 11:25:60
#! 17:60:15
export RE_DATE_TIME="\w+\s+\w+\s+$RE_NUMBER\s+$RE_TIME\s+$RE_NUMBER"
# Time and date
# Examples:
# Wed Feb 12 10:46:26 2020
# Mon Mar 2 13:27:06 2020
#! St úno 12 10:57:21 CET 2020
#! Po úno 14 15:17:32 2010
export RE_ADDRESS="0x$RE_NUMBER_HEX"
# Memory address
# Examples:
# 0x123abc
# 0xffffffff9abe8ae8
# 0x0
export RE_ADDRESS_NOT_NULL="0x[0-9A-Fa-f]*[1-9A-Fa-f]+[0-9A-Fa-f]*"
# Memory address (not NULL)
# Examples:
# 0xffffffff9abe8ae8
#! 0x0
#! 0x0000000000000000
export RE_PROCESS_PID="[^\/]+\/\d+"
# A process with PID
# Example:
# sleep/4102
# test_overhead./866185
# in:imjournal/1096
# random#$& test/866607
export RE_EVENT_ANY="[\w\-\:\/_=,]+"
Annotation
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.