examples: Update winbindd.stp and generate script
authorSamuel Cabrero <scabrero@samba.org>
Thu, 31 Mar 2022 10:34:29 +0000 (12:34 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Apr 2022 21:06:01 +0000 (21:06 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Apr  8 21:06:01 UTC 2022 on sn-devel-184

examples/systemtap/generate-winbindd.stp.sh
examples/systemtap/winbindd.stp

index 5a4507874e4046651e652bc8ad760fe6e6218de5..28b2dbc58c14e9437fb42d560ae64bbbb4e9fb57 100755 (executable)
@@ -9,6 +9,7 @@ winbindd_dual_pam_logoff
 winbindd_dual_pam_chng_pswd_auth_crap
 winbindd_dual_pam_chauthtok
 _wbint_Ping
+_wbint_PamAuth
 _wbint_ListTrustedDomains
 _wbint_LookupSid
 _wbint_LookupSids
index 94f0559677138c36bdd303c978a4998666525b92..58926017595ba5905921aa5020fca310ca58a01d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # Systemtap script to instrument winbindd
 #
-# Generated by examples/systemtap/generate-winbindd.stp.sh on miĆ© 09 mar 2022 12:10:37 CET, do not edit
+# Generated by examples/systemtap/generate-winbindd.stp.sh on jue 31 mar 2022 12:34:16 CEST, do not edit
 #
 # Usage:
 #
@@ -163,6 +163,26 @@ probe process("winbindd").function("_wbint_Ping").return {
        dc_svctime["_wbint_Ping"] <<< duration
 }
 
+#
+# winbind domain child function _wbint_PamAuth
+#
+
+probe process("winbindd").function("_wbint_PamAuth") {
+       dc_running[tid(), "_wbint_PamAuth"] = gettimeofday_us()
+}
+
+probe process("winbindd").function("_wbint_PamAuth").return {
+       if (!([tid(), "_wbint_PamAuth"] in dc_running))
+               next
+
+       end = gettimeofday_us()
+       begin = dc_running[tid(), "_wbint_PamAuth"]
+       delete dc_running[tid(), "_wbint_PamAuth"]
+
+       duration = end - begin
+       dc_svctime["_wbint_PamAuth"] <<< duration
+}
+
 #
 # winbind domain child function _wbint_ListTrustedDomains
 #