From: Samuel Cabrero Date: Mon, 9 May 2022 14:46:35 +0000 (+0200) Subject: examples: Update winbind.stp X-Git-Tag: talloc-2.3.4~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7575e4ef5c77b355de9892c864ab1ff492ea1dd8;p=thirdparty%2Fsamba.git examples: Update winbind.stp Signed-off-by: Samuel Cabrero Reviewed-by: Jeremy Allison --- diff --git a/examples/systemtap/generate-winbindd.stp.sh b/examples/systemtap/generate-winbindd.stp.sh index efa667a7e84..4f530c6ddef 100755 --- a/examples/systemtap/generate-winbindd.stp.sh +++ b/examples/systemtap/generate-winbindd.stp.sh @@ -3,11 +3,11 @@ outfile="$(dirname $0)/winbindd.stp" child_funcs="winbindd_dual_init_connection -winbindd_dual_pam_chauthtok _wbint_Ping _wbint_PamAuth _wbint_PamAuthCrap _wbint_PamLogOff +_wbint_PamAuthChangePassword _wbint_PamAuthCrapChangePassword _wbint_ListTrustedDomains _wbint_LookupSid diff --git a/examples/systemtap/winbindd.stp b/examples/systemtap/winbindd.stp index 8208ffe6276..15a3f6f0964 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:29:06 CEST, do not edit +# Generated by examples/systemtap/generate-winbindd.stp.sh on lun 09 may 2022 16:46:29 CEST, do not edit # # Usage: # @@ -43,26 +43,6 @@ probe process("winbindd").function("winbindd_dual_init_connection").return { dc_svctime["winbindd_dual_init_connection"] <<< duration } -# -# winbind domain child function winbindd_dual_pam_chauthtok -# - -probe process("winbindd").function("winbindd_dual_pam_chauthtok") { - dc_running[tid(), "winbindd_dual_pam_chauthtok"] = gettimeofday_us() -} - -probe process("winbindd").function("winbindd_dual_pam_chauthtok").return { - if (!([tid(), "winbindd_dual_pam_chauthtok"] in dc_running)) - next - - end = gettimeofday_us() - begin = dc_running[tid(), "winbindd_dual_pam_chauthtok"] - delete dc_running[tid(), "winbindd_dual_pam_chauthtok"] - - duration = end - begin - dc_svctime["winbindd_dual_pam_chauthtok"] <<< duration -} - # # winbind domain child function _wbint_Ping # @@ -143,6 +123,26 @@ probe process("winbindd").function("_wbint_PamLogOff").return { dc_svctime["_wbint_PamLogOff"] <<< duration } +# +# winbind domain child function _wbint_PamAuthChangePassword +# + +probe process("winbindd").function("_wbint_PamAuthChangePassword") { + dc_running[tid(), "_wbint_PamAuthChangePassword"] = gettimeofday_us() +} + +probe process("winbindd").function("_wbint_PamAuthChangePassword").return { + if (!([tid(), "_wbint_PamAuthChangePassword"] in dc_running)) + next + + end = gettimeofday_us() + begin = dc_running[tid(), "_wbint_PamAuthChangePassword"] + delete dc_running[tid(), "_wbint_PamAuthChangePassword"] + + duration = end - begin + dc_svctime["_wbint_PamAuthChangePassword"] <<< duration +} + # # winbind domain child function _wbint_PamAuthCrapChangePassword #