summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@samba.org>2022-05-09 17:31:53 +0200
committerJeremy Allison <jra@samba.org>2022-05-19 17:51:33 +0000
commit95698da905ffd8f18f5a6b1ae51c7194da02bac1 (patch)
treef32cc538d52939fb0148e62304f3e7ab61116766 /examples
parente9286b06cf807bc6e308aa1398c03588d00dc2f5 (diff)
downloadsamba-95698da905ffd8f18f5a6b1ae51c7194da02bac1.tar.gz
examples: Update winbind.stp
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/systemtap/generate-winbindd.stp.sh1
-rw-r--r--examples/systemtap/winbindd.stp22
2 files changed, 22 insertions, 1 deletions
diff --git a/examples/systemtap/generate-winbindd.stp.sh b/examples/systemtap/generate-winbindd.stp.sh
index 4f530c6ddef..3a4d2d87eb1 100755
--- a/examples/systemtap/generate-winbindd.stp.sh
+++ b/examples/systemtap/generate-winbindd.stp.sh
@@ -3,6 +3,7 @@
outfile="$(dirname $0)/winbindd.stp"
child_funcs="winbindd_dual_init_connection
+_wbint_InitConnection
_wbint_Ping
_wbint_PamAuth
_wbint_PamAuthCrap
diff --git a/examples/systemtap/winbindd.stp b/examples/systemtap/winbindd.stp
index 15a3f6f0964..635784a5b13 100644
--- a/examples/systemtap/winbindd.stp
+++ b/examples/systemtap/winbindd.stp
@@ -2,7 +2,7 @@
#
# Systemtap script to instrument winbindd
#
-# Generated by examples/systemtap/generate-winbindd.stp.sh on lun 09 may 2022 16:46:29 CEST, do not edit
+# Generated by examples/systemtap/generate-winbindd.stp.sh on lun 09 may 2022 17:31:44 CEST, do not edit
#
# Usage:
#
@@ -44,6 +44,26 @@ probe process("winbindd").function("winbindd_dual_init_connection").return {
}
#
+# winbind domain child function _wbint_InitConnection
+#
+
+probe process("winbindd").function("_wbint_InitConnection") {
+ dc_running[tid(), "_wbint_InitConnection"] = gettimeofday_us()
+}
+
+probe process("winbindd").function("_wbint_InitConnection").return {
+ if (!([tid(), "_wbint_InitConnection"] in dc_running))
+ next
+
+ end = gettimeofday_us()
+ begin = dc_running[tid(), "_wbint_InitConnection"]
+ delete dc_running[tid(), "_wbint_InitConnection"]
+
+ duration = end - begin
+ dc_svctime["_wbint_InitConnection"] <<< duration
+}
+
+#
# winbind domain child function _wbint_Ping
#