From 887109bf9ebd0d9409e3d35755d493b7d72403cc Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 30 Apr 2021 22:39:28 +0000 Subject: [PATCH] scripts: add bpf/syscalls.bt This script counts how many times each syscall is called by the SPDK application. Signed-off-by: Jim Harris Change-Id: Ife5efccee73e407e1d819293786f2acdfa317f78 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7713 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Changpeng Liu Reviewed-by: Konrad Sztyber --- scripts/bpf/syscalls.bt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 scripts/bpf/syscalls.bt diff --git a/scripts/bpf/syscalls.bt b/scripts/bpf/syscalls.bt new file mode 100644 index 000000000..3c8cd70bc --- /dev/null +++ b/scripts/bpf/syscalls.bt @@ -0,0 +1,3 @@ +tracepoint:syscalls:sys_enter_* /pid == __PID__/ { + @syscall[probe] = count(); +}