| 1 |
title: Report opened files whose names match a given regex |
| 2 |
name: regex.stp |
| 3 |
keywords: regex |
| 4 |
subsystem: any |
| 5 |
status: experimental |
| 6 |
exit: user-controlled |
| 7 |
output: trace |
| 8 |
scope: system-wide |
| 9 |
description: Uses the regex functionality to detect opened files whose names match a pattern given on the command line. If no command line parameter is given, demonstrate by filtering for files that end with an extension showing them to be an archive. |
| 10 |
test_check: stap -p4 regex.stp |
| 11 |
test_installcheck: stap regex.stp -T 1 |