From 57d7720080ec65cee230d9d3731b6c1884a2c06b Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Mon, 9 May 2022 16:22:33 +0200 Subject: [PATCH] examples: Update winbind.stp Signed-off-by: Samuel Cabrero Reviewed-by: Jeremy Allison --- examples/systemtap/generate-winbindd.stp.sh | 2 +- examples/systemtap/winbindd.stp | 42 ++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/examples/systemtap/generate-winbindd.stp.sh b/examples/systemtap/generate-winbindd.stp.sh index 90ebdadf174..efa667a7e84 100755 --- a/examples/systemtap/generate-winbindd.stp.sh +++ b/examples/systemtap/generate-winbindd.stp.sh @@ -3,12 +3,12 @@ outfile="$(dirname $0)/winbindd.stp" child_funcs="winbindd_dual_init_connection -winbindd_dual_pam_chng_pswd_auth_crap winbindd_dual_pam_chauthtok _wbint_Ping _wbint_PamAuth _wbint_PamAuthCrap _wbint_PamLogOff +_wbint_PamAuthCrapChangePassword _wbint_ListTrustedDomains _wbint_LookupSid _wbint_LookupSids diff --git a/examples/systemtap/winbindd.stp b/examples/systemtap/winbindd.stp index 9dd2f87d0b7..8208ffe6276 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:28:20 CEST, do not edit +# Generated by examples/systemtap/generate-winbindd.stp.sh on lun 09 may 2022 16:29:06 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_chng_pswd_auth_crap -# - -probe process("winbindd").function("winbindd_dual_pam_chng_pswd_auth_crap") { - dc_running[tid(), "winbindd_dual_pam_chng_pswd_auth_crap"] = gettimeofday_us() -} - -probe process("winbindd").function("winbindd_dual_pam_chng_pswd_auth_crap").return { - if (!([tid(), "winbindd_dual_pam_chng_pswd_auth_crap"] in dc_running)) - next - - end = gettimeofday_us() - begin = dc_running[tid(), "winbindd_dual_pam_chng_pswd_auth_crap"] - delete dc_running[tid(), "winbindd_dual_pam_chng_pswd_auth_crap"] - - duration = end - begin - dc_svctime["winbindd_dual_pam_chng_pswd_auth_crap"] <<< duration -} - # # winbind domain child function winbindd_dual_pam_chauthtok # @@ -163,6 +143,26 @@ probe process("winbindd").function("_wbint_PamLogOff").return { dc_svctime["_wbint_PamLogOff"] <<< duration } +# +# winbind domain child function _wbint_PamAuthCrapChangePassword +# + +probe process("winbindd").function("_wbint_PamAuthCrapChangePassword") { + dc_running[tid(), "_wbint_PamAuthCrapChangePassword"] = gettimeofday_us() +} + +probe process("winbindd").function("_wbint_PamAuthCrapChangePassword").return { + if (!([tid(), "_wbint_PamAuthCrapChangePassword"] in dc_running)) + next + + end = gettimeofday_us() + begin = dc_running[tid(), "_wbint_PamAuthCrapChangePassword"] + delete dc_running[tid(), "_wbint_PamAuthCrapChangePassword"] + + duration = end - begin + dc_svctime["_wbint_PamAuthCrapChangePassword"] <<< duration +} + # # winbind domain child function _wbint_ListTrustedDomains #