From 95698da905ffd8f18f5a6b1ae51c7194da02bac1 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Mon, 9 May 2022 17:31:53 +0200 Subject: [PATCH] examples: Update winbind.stp Signed-off-by: Samuel Cabrero Reviewed-by: Jeremy Allison --- examples/systemtap/generate-winbindd.stp.sh | 1 + examples/systemtap/winbindd.stp | 22 ++++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/examples/systemtap/generate-winbindd.stp.sh b/examples/systemtap/generate-winbindd.stp.sh index 4f530c6ddef..3a4d2d87eb1 100755 --- a/examples/systemtap/generate-winbindd.stp.sh +++ b/examples/systemtap/generate-winbindd.stp.sh @@ -3,6 +3,7 @@ outfile="$(dirname $0)/winbindd.stp" child_funcs="winbindd_dual_init_connection +_wbint_InitConnection _wbint_Ping _wbint_PamAuth _wbint_PamAuthCrap diff --git a/examples/systemtap/winbindd.stp b/examples/systemtap/winbindd.stp index 15a3f6f0964..635784a5b13 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:46:29 CEST, do not edit +# Generated by examples/systemtap/generate-winbindd.stp.sh on lun 09 may 2022 17:31:44 CEST, do not edit # # Usage: # @@ -43,6 +43,26 @@ probe process("winbindd").function("winbindd_dual_init_connection").return { dc_svctime["winbindd_dual_init_connection"] <<< duration } +# +# winbind domain child function _wbint_InitConnection +# + +probe process("winbindd").function("_wbint_InitConnection") { + dc_running[tid(), "_wbint_InitConnection"] = gettimeofday_us() +} + +probe process("winbindd").function("_wbint_InitConnection").return { + if (!([tid(), "_wbint_InitConnection"] in dc_running)) + next + + end = gettimeofday_us() + begin = dc_running[tid(), "_wbint_InitConnection"] + delete dc_running[tid(), "_wbint_InitConnection"] + + duration = end - begin + dc_svctime["_wbint_InitConnection"] <<< duration +} + # # winbind domain child function _wbint_Ping #