From 41c72ae9f9530e04e249bbd73356bb44a7e945e4 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Wed, 9 Mar 2022 12:11:00 +0100 Subject: [PATCH] examples: Update winbindd.stp and its generator script Signed-off-by: Samuel Cabrero Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Fri Mar 25 17:57:18 UTC 2022 on sn-devel-184 --- examples/systemtap/generate-winbindd.stp.sh | 4 +- examples/systemtap/winbindd.stp | 42 ++++++++++----------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/examples/systemtap/generate-winbindd.stp.sh b/examples/systemtap/generate-winbindd.stp.sh index ec8e3af2828..5a4507874e4 100755 --- a/examples/systemtap/generate-winbindd.stp.sh +++ b/examples/systemtap/generate-winbindd.stp.sh @@ -2,13 +2,13 @@ outfile="$(dirname $0)/winbindd.stp" -child_funcs="winbindd_dual_ping -winbindd_dual_init_connection +child_funcs="winbindd_dual_init_connection winbindd_dual_pam_auth winbindd_dual_pam_auth_crap winbindd_dual_pam_logoff winbindd_dual_pam_chng_pswd_auth_crap winbindd_dual_pam_chauthtok +_wbint_Ping _wbint_ListTrustedDomains _wbint_LookupSid _wbint_LookupSids diff --git a/examples/systemtap/winbindd.stp b/examples/systemtap/winbindd.stp index 60dd80a5c76..94f05596771 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 mar 15 feb 2022 17:45:48 CET, do not edit +# Generated by examples/systemtap/generate-winbindd.stp.sh on miƩ 09 mar 2022 12:10:37 CET, do not edit # # Usage: # @@ -23,26 +23,6 @@ probe begin { printf("Collecting data, press ctrl-C to stop... ") } -# -# winbind domain child function winbindd_dual_ping -# - -probe process("winbindd").function("winbindd_dual_ping") { - dc_running[tid(), "winbindd_dual_ping"] = gettimeofday_us() -} - -probe process("winbindd").function("winbindd_dual_ping").return { - if (!([tid(), "winbindd_dual_ping"] in dc_running)) - next - - end = gettimeofday_us() - begin = dc_running[tid(), "winbindd_dual_ping"] - delete dc_running[tid(), "winbindd_dual_ping"] - - duration = end - begin - dc_svctime["winbindd_dual_ping"] <<< duration -} - # # winbind domain child function winbindd_dual_init_connection # @@ -163,6 +143,26 @@ probe process("winbindd").function("winbindd_dual_pam_chauthtok").return { dc_svctime["winbindd_dual_pam_chauthtok"] <<< duration } +# +# winbind domain child function _wbint_Ping +# + +probe process("winbindd").function("_wbint_Ping") { + dc_running[tid(), "_wbint_Ping"] = gettimeofday_us() +} + +probe process("winbindd").function("_wbint_Ping").return { + if (!([tid(), "_wbint_Ping"] in dc_running)) + next + + end = gettimeofday_us() + begin = dc_running[tid(), "_wbint_Ping"] + delete dc_running[tid(), "_wbint_Ping"] + + duration = end - begin + dc_svctime["_wbint_Ping"] <<< duration +} + # # winbind domain child function _wbint_ListTrustedDomains #