From 014bce3ff4f366c75e4d03929fabedcacd7f938f Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Mon, 20 Dec 2021 17:51:00 +0100 Subject: [PATCH] nvmf/tcp: fix trace definition for TRACE_TCP_QP_ABORT_REQ The tracepoint passes qpair pointer as an argument, while not specifying it in its definitions, which makes the following assertion to fail: trace.c:83: _spdk_trace_record: Assertion `0 && "Unexpected number of tracepoint arguments"' failed. Signed-off-by: Konrad Sztyber Change-Id: I315e9bf0465db7033ac0f1169536c459ac4e9250 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10761 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Changpeng Liu --- lib/nvmf/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvmf/tcp.c b/lib/nvmf/tcp.c index d6a462ca05..b8ab3d414e 100644 --- a/lib/nvmf/tcp.c +++ b/lib/nvmf/tcp.c @@ -181,7 +181,7 @@ SPDK_TRACE_REGISTER_FN(nvmf_tcp_trace, "nvmf_tcp", TRACE_GROUP_NVMF_TCP) SPDK_TRACE_ARG_TYPE_INT, ""); spdk_trace_register_description("TCP_QP_ABORT_REQ", TRACE_TCP_QP_ABORT_REQ, OWNER_NONE, OBJECT_NONE, 0, - SPDK_TRACE_ARG_TYPE_INT, ""); + SPDK_TRACE_ARG_TYPE_PTR, "qpair"); spdk_trace_register_description("TCP_QP_RCV_STATE_CHANGE", TRACE_TCP_QP_RCV_STATE_CHANGE, OWNER_NONE, OBJECT_NONE, 0, SPDK_TRACE_ARG_TYPE_INT, "state");