diff options
| author | Jonathan Bauer | 2013-05-03 15:25:26 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2013-05-03 15:25:26 +0200 |
| commit | 0859d1ec6b7ec92f0d145b38f86ef1fc9083151b (patch) | |
| tree | 12358c5d6321a2e2e5221f1631dd7fba9e7a3769 /useful | |
| parent | minor (diff) | |
| parent | Add support for wildcards in REQUIRED_KERNEL_MODULES (diff) | |
| download | tm-scripts-0859d1ec6b7ec92f0d145b38f86ef1fc9083151b.tar.gz tm-scripts-0859d1ec6b7ec92f0d145b38f86ef1fc9083151b.tar.xz tm-scripts-0859d1ec6b7ec92f0d145b38f86ef1fc9083151b.zip | |
rsyslog
Diffstat (limited to 'useful')
| -rwxr-xr-x | useful/ultrastrace.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/useful/ultrastrace.php b/useful/ultrastrace.php index ab45e2c2..eeff80c2 100755 --- a/useful/ultrastrace.php +++ b/useful/ultrastrace.php @@ -35,7 +35,7 @@ foreach ($argv as $fname) { $lastLine = $line; $lastTime = $time; } - if (preg_match('#^(\d+\s+)?(\d+:\d+:\d+\.?\d*\s+)?(?<action>readlink|open|openat|execve)\("(?<lib>[^"]*[^"]*[^/])".*\)\s+=\s+(?<ret>\S+)(\s+(?<err>\S+)\s+|$)#', $line, $out) < 1) continue; + if (preg_match('#^(\d+\s+)?(\d+:\d+:\d+\.?\d*\s+)?(?<action>access|stat|lstat|stat64|lstat64|readlink|open|openat|execve)\("(?<lib>[^"]*[^"]*[^/])".*\)\s+=\s+(?<ret>\S+)(\s+(?<err>\S+)\s+|$)#', $line, $out) < 1) continue; //echo "Match: {$out['lib']} -> {$out['ret']} ({$out['err']})\n"; $file = basename($out['lib']); $file = preg_replace('/\.so(\.\d+)*$/', '', $file); |
