summaryrefslogtreecommitdiffstats
path: root/useful
diff options
context:
space:
mode:
authorSimon Rettberg2013-05-02 16:02:00 +0200
committerSimon Rettberg2013-05-02 16:02:00 +0200
commit524b2f08da4b60d1e5b598649857abf55f167ff6 (patch)
treebf62bdd3a3530c3b69072db1440624f76c66e7ab /useful
parentMerge branch 'master' of openslx:openslx-ng/tm-scripts (diff)
downloadtm-scripts-524b2f08da4b60d1e5b598649857abf55f167ff6.tar.gz
tm-scripts-524b2f08da4b60d1e5b598649857abf55f167ff6.tar.xz
tm-scripts-524b2f08da4b60d1e5b598649857abf55f167ff6.zip
ultrastrace update
Diffstat (limited to 'useful')
-rwxr-xr-xuseful/ultrastrace.php2
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);