From: Samuel Cabrero Date: Mon, 9 May 2022 14:12:41 +0000 (+0200) Subject: examples: Update winbind.stp X-Git-Tag: talloc-2.3.4~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f213285b697554b6c3a5b9f9e5a325abdacd7eb;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 2b722a4deb3..90ebdadf174 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_logoff winbindd_dual_pam_chng_pswd_auth_crap winbindd_dual_pam_chauthtok _wbint_Ping _wbint_PamAuth _wbint_PamAuthCrap +_wbint_PamLogOff _wbint_ListTrustedDomains _wbint_LookupSid _wbint_LookupSids diff --git a/examples/systemtap/winbindd.stp b/examples/systemtap/winbindd.stp index bbc16d15952..9dd2f87d0b7 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:27:02 CEST, do not edit +# Generated by examples/systemtap/generate-winbindd.stp.sh on lun 09 may 2022 16:28:20 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_logoff -# - -probe process("winbindd").function("winbindd_dual_pam_logoff") { - dc_running[tid(), "winbindd_dual_pam_logoff"] = gettimeofday_us() -} - -probe process("winbindd").function("winbindd_dual_pam_logoff").return { - if (!([tid(), "winbindd_dual_pam_logoff"] in dc_running)) - next - - end = gettimeofday_us() - begin = dc_running[tid(), "winbindd_dual_pam_logoff"] - delete dc_running[tid(), "winbindd_dual_pam_logoff"] - - duration = end - begin - dc_svctime["winbindd_dual_pam_logoff"] <<< duration -} - # # winbind domain child function winbindd_dual_pam_chng_pswd_auth_crap # @@ -163,6 +143,26 @@ probe process("winbindd").function("_wbint_PamAuthCrap").return { dc_svctime["_wbint_PamAuthCrap"] <<< duration } +# +# winbind domain child function _wbint_PamLogOff +# + +probe process("winbindd").function("_wbint_PamLogOff") { + dc_running[tid(), "_wbint_PamLogOff"] = gettimeofday_us() +} + +probe process("winbindd").function("_wbint_PamLogOff").return { + if (!([tid(), "_wbint_PamLogOff"] in dc_running)) + next + + end = gettimeofday_us() + begin = dc_running[tid(), "_wbint_PamLogOff"] + delete dc_running[tid(), "_wbint_PamLogOff"] + + duration = end - begin + dc_svctime["_wbint_PamLogOff"] <<< duration +} + # # winbind domain child function _wbint_ListTrustedDomains #