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_DSO="(?:$RE_PATH_ABSOLUTE(?: \(deleted\))?|\[kernel\.kallsyms\]|\[unknown\]|\[vdso\]|\[kernel\.vmlinux\][\.\w]*)" # A DSO name in various result tables # Examples: # /usr/lib64/somelib.so.5.4.0 # /usr/bin/somebinart (deleted) # /lib/modules/4.3.0-rc5/kernel/fs/xfs/xfs.ko # [kernel.kallsyms] # [kernel.vmlinux] # [vdso] # [unknown]
export RE_LINE_COMMENT="^#.*" # A comment line # Examples: # # Started on Thu Sep 10 11:43:00 2015
export RE_LINE_EMPTY="^\s*$" # An empty line with possible whitespaces # Examples: #
export RE_LINE_RECORD1="^\[\s+perf\s+record:\s+Woken up $RE_NUMBER times? to write data\s+\].*$" # The first line of perf-record "OK" output # Examples: # [ perf record: Woken up 1 times to write data ]
export RE_LINE_RECORD2="^\[\s+perf\s+record:\s+Captured and wrote $RE_NUMBER\s*MB\s+(?:[\w\+\.-]*(?:$RE_PATH)?\/)?perf\.data(?:\.\d+)?\s*\(~?$RE_NUMBER samples\)\s+\].*$" # The second line of perf-record "OK" output # Examples: # [ perf record: Captured and wrote 0.405 MB perf.data (109 samples) ] # [ perf record: Captured and wrote 0.405 MB perf.data (~109 samples) ] # [ perf record: Captured and wrote 0.405 MB /some/temp/dir/perf.data (109 samples) ] # [ perf record: Captured and wrote 0.405 MB ./perf.data (109 samples) ] # [ perf record: Captured and wrote 0.405 MB ./perf.data.3 (109 samples) ]
export RE_LINE_RECORD2_TOLERANT="^\[\s+perf\s+record:\s+Captured and wrote $RE_NUMBER\s*MB\s+(?:[\w\+\.-]*(?:$RE_PATH)?\/)?perf\.data(?:\.\d+)?\s*(?:\(~?$RE_NUMBER samples\))?\s+\].*$" # The second line of perf-record "OK" output, even no samples is OK here # Examples: # [ perf record: Captured and wrote 0.405 MB perf.data (109 samples) ] # [ perf record: Captured and wrote 0.405 MB perf.data (~109 samples) ] # [ perf record: Captured and wrote 0.405 MB /some/temp/dir/perf.data (109 samples) ] # [ perf record: Captured and wrote 0.405 MB ./perf.data (109 samples) ] # [ perf record: Captured and wrote 0.405 MB ./perf.data.3 (109 samples) ] # [ perf record: Captured and wrote 0.405 MB perf.data ]
export RE_LINE_RECORD2_TOLERANT_FILENAME="^\[\s+perf\s+record:\s+Captured and wrote $RE_NUMBER\s*MB\s+(?:[\w\+\.-]*(?:$RE_PATH)?\/)?perf\w*\.data(?:\.\d+)?\s*\(~?$RE_NUMBER samples\)\s+\].*$" # The second line of perf-record "OK" output # Examples: # [ perf record: Captured and wrote 0.405 MB perf.data (109 samples) ] # [ perf record: Captured and wrote 0.405 MB perf_ls.data (~109 samples) ] # [ perf record: Captured and wrote 0.405 MB perf_aNyCaSe.data (109 samples) ] # [ perf record: Captured and wrote 0.405 MB ./perfdata.data.3 (109 samples) ] #! [ perf record: Captured and wrote 0.405 MB /some/temp/dir/my_own.data (109 samples) ] #! [ perf record: Captured and wrote 0.405 MB ./UPPERCASE.data (109 samples) ] #! [ perf record: Captured and wrote 0.405 MB ./aNyKiNDoF.data.3 (109 samples) ] #! [ perf record: Captured and wrote 0.405 MB perf.data ]
export RE_LINE_TRACE_SUMMARY_HEADER="\s*syscall\s+calls\s+(?:errors\s+)?total\s+min\s+avg\s+max\s+stddev" # A header of a perf-trace summary table # Example: # syscall calls total min avg max stddev # syscall calls errors total min avg max stddev
export RE_LINE_TRACE_SUMMARY_CONTENT="^\s*\w+\s+(?:$RE_NUMBER\s+){5,6}$RE_NUMBER%" # A line of a perf-trace summary table # Example: # open 3 0.017 0.005 0.006 0.007 10.90% # openat 2 0 0.017 0.008 0.009 0.010 12.29%
export RE_LINE_REPORT_CONTENT="^\s+$RE_NUMBER%\s+\w+\s+\S+\s+\S+\s+\S+"# FIXME # A line from typicap perf report --stdio output # Example: # 100.00% sleep [kernel.vmlinux] [k] syscall_return_slowpath
export RE_TASK="\s+[\w~\/ \.\+:#-]+(?:\[-1(?:\/\d+)?\]|\[\d+(?:\/\d+)?\])" # A name of a task used for perf sched timehist -s # Example: # sleep[62755] # runtest.sh[62762] # gmain[705/682] # xfsaild/dm-0[495] # kworker/u8:1-ev[62714] # :-1[-1/62756] # :-1[-1] # :-1[62756]
export RE_SEGFAULT=".*(?:Segmentation\sfault|SIGSEGV|\score\s|dumped|segfault).*" # Possible variations of the segfault message # Example: # /bin/bash: line 1: 32 Segmentation fault timeout 15s # Segmentation fault (core dumped) # Program terminated with signal SIGSEGV #! WARNING: 12323431 isn't a 'cpu_core', please use a CPU list in the 'cpu_core' range (0-15)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.