Commit cbb57e0d authored by Jim Harris's avatar Jim Harris Committed by Tomasz Zawadzki
Browse files

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: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: Ia0cf5b50538bd26a3e15e35cbab765fe3c327c73
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7711


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent af0bf0f0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
uprobe:__EXE__:spdk_thread_send_msg {
	@send_msg[usym(arg1)] = count();
}

uprobe:__EXE__:spdk_for_each_channel {
	@for_each_channel[usym(arg1)] = count();
}