2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

31
tpt/dtrace/qda Normal file
View File

@@ -0,0 +1,31 @@
#!/bin/ksh
# "Quick Dtrace" script by Tanel Poder (http://www.tanelpoder.com)
# (qda prints first 6 function arguments for function calls)
# Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
# Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
#$FUNCLIST_ENTRY'{ printf("%16x %16x %16x %16x %16x %16x", arg0, arg1, arg2, arg3, arg4, arg5); }'\
PROCESS=$1
shift
for F in $* ; do
FUNCLIST_ENTRY=${FUNCLIST_ENTRY}",pid\$target::$F:entry"
FUNCLIST_RETURN=${FUNCLIST_RETURN}",pid\$target::$F:return"
done
FUNCLIST_ENTRY=`echo "$FUNCLIST_ENTRY" | sed 's/^,//'`
FUNCLIST_RETURN=`echo "$FUNCLIST_RETURN" | sed 's/^,//'`
echo $FUNCLIST
#$FUNCLIST_ENTRY'{ printf("%16x %16x %16x %16x %16x %16x", arg0, arg1, arg2, arg3, arg4, arg5); }'
dtrace -p $PROCESS -Fn \
$FUNCLIST_ENTRY'{ printf("%x %x %x %x %x %x", arg0, arg1, arg2, arg3, arg4, arg5); }'\
$FUNCLIST_RETURN'{ printf("%x", arg1); }'