From cbb57e0d9635b6760f4037cb792c7b6e10665b14 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 30 Apr 2021 22:22:31 +0000 Subject: [PATCH] scripts: add bpf/send_msg.bt This script tracks spdk_thread_send_msg and spdk_for_each_channel calls. It also uses usym to get the name of the function pointer passed to these calls. Signed-off-by: Jim Harris Change-Id: Ia0cf5b50538bd26a3e15e35cbab765fe3c327c73 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7711 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Changpeng Liu Reviewed-by: Konrad Sztyber --- scripts/bpf/send_msg.bt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 scripts/bpf/send_msg.bt diff --git a/scripts/bpf/send_msg.bt b/scripts/bpf/send_msg.bt new file mode 100644 index 0000000000..2e1bedf5fd --- /dev/null +++ b/scripts/bpf/send_msg.bt @@ -0,0 +1,7 @@ +uprobe:__EXE__:spdk_thread_send_msg { + @send_msg[usym(arg1)] = count(); +} + +uprobe:__EXE__:spdk_for_each_channel { + @for_each_channel[usym(arg1)] = count(); +}