examples: Update winbind.stp and generate script
authorSamuel Cabrero <scabrero@samba.org>
Fri, 25 Feb 2022 13:53:16 +0000 (14:53 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 30 Apr 2022 00:10:34 +0000 (00:10 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
examples/systemtap/generate-winbindd.stp.sh
examples/systemtap/winbindd.stp

index 28b2dbc58c14e9437fb42d560ae64bbbb4e9fb57..18695232f43b1dfca3ec85e7329019a5c663e2ea 100755 (executable)
@@ -10,6 +10,7 @@ winbindd_dual_pam_chng_pswd_auth_crap
 winbindd_dual_pam_chauthtok
 _wbint_Ping
 _wbint_PamAuth
+_wbint_PamAuthCrap
 _wbint_ListTrustedDomains
 _wbint_LookupSid
 _wbint_LookupSids
index 58926017595ba5905921aa5020fca310ca58a01d..5b8e72fea6c93407b1dab562c544ba228acd0b35 100644 (file)
@@ -2,7 +2,7 @@
 #
 # Systemtap script to instrument winbindd
 #
-# Generated by examples/systemtap/generate-winbindd.stp.sh on jue 31 mar 2022 12:34:16 CEST, do not edit
+# Generated by examples/systemtap/generate-winbindd.stp.sh on vie 01 abr 2022 16:21:52 CEST, do not edit
 #
 # Usage:
 #
@@ -183,6 +183,26 @@ probe process("winbindd").function("_wbint_PamAuth").return {
        dc_svctime["_wbint_PamAuth"] <<< duration
 }
 
+#
+# winbind domain child function _wbint_PamAuthCrap
+#
+
+probe process("winbindd").function("_wbint_PamAuthCrap") {
+       dc_running[tid(), "_wbint_PamAuthCrap"] = gettimeofday_us()
+}
+
+probe process("winbindd").function("_wbint_PamAuthCrap").return {
+       if (!([tid(), "_wbint_PamAuthCrap"] in dc_running))
+               next
+
+       end = gettimeofday_us()
+       begin = dc_running[tid(), "_wbint_PamAuthCrap"]
+       delete dc_running[tid(), "_wbint_PamAuthCrap"]
+
+       duration = end - begin
+       dc_svctime["_wbint_PamAuthCrap"] <<< duration
+}
+
 #
 # winbind domain child function _wbint_ListTrustedDomains
 #