Spdk/scripts/bpf
Jim Harris 4a47f1f926 usdt: add SPDK_DTRACE_PROBE variants that don't collect ticks
While userspace probes have a high overhead when enabled due
to the trap, it is still cleaner and slightly more efficient
to not have all of the SPDK_DTRACE_PROBE macros implicitly
capture the tsc counter as an argument.

So rename the existing SPDK_DTRACE_PROBE macros to
SPDK_DTRACE_PROBE_TICKS, and create new SPDK_DTRACE_PROBE
macros without the implicit ticks argument.

Note this does cause slight breakage if there is any
out-of-tree code that using SPDK_DTRACE_PROBE previously,
and programs written against those probes would need to
adjust their arguments.  But the likelihood of such code
existing is practically nil, so I'm just renaming the
macros to their ideal state.

All of the nvmf SPDK_DTRACE_PROBE calls are changed to
use the new _TICKS variants.  The event one is left
without _TICKS - we have no in-tree scripts that use
the tsc for that event.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Icb965b7b8f13c23d671263326029acb88c82d9df
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17669
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Mike Gerdts <mgerdts@nvidia.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
2023-05-09 17:58:11 +08:00
..
gen_enums.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
gen.py add (c) and SPDX header to python files as needed 2022-11-10 08:28:53 +00:00
intr-wakeups.bt add USDT tracepoints for interrupt wakeups 2022-03-21 11:07:05 +00:00
nvme.bt scripts/bpf: remove bdev_nvme_destroy_qpair probe 2022-04-20 08:20:02 +00:00
nvmf_path.bt bpf: use map in nvmf_path.bt 2022-01-05 21:44:24 +00:00
nvmf_timeout.bt test/nvmf: test reconnect_delay_sec parameter 2022-06-06 07:51:54 +00:00
nvmf.bt traces: add dtrace probes around qpair/controller/subsystem 2022-01-13 08:44:54 +00:00
readv.bt scripts: add bpf/readv.bt 2021-05-21 08:03:27 +00:00
sched.bt scheduler/dynamic: add bpftrace script 2021-10-28 11:33:32 +00:00
send_msg.bt scripts: add bpf/send_msg.bt 2021-05-21 08:03:27 +00:00
syscalls.bt syscalls.bt: print syscall map every second 2021-11-17 10:58:17 +00:00
trace.py usdt: add SPDK_DTRACE_PROBE variants that don't collect ticks 2023-05-09 17:58:11 +08:00