From b8b1f19222b92409ea295863b12c080188cc9345 Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Wed, 16 Jun 2021 15:07:00 +0200 Subject: [PATCH] lib/trace: reduce trace entry size to 32B Now that multiple trace entries can be chained together to form a larger argument buffer, we can reduce the size of a single entry back to 32 bytes, while still allowing the user to pass multiple parameters. Signed-off-by: Konrad Sztyber Change-Id: Ic92a1413498df28a8561a13c0f06d895d0af2cc6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8407 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris --- include/spdk/trace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdk/trace.h b/include/spdk/trace.h index 4a29bb8c4..e8e28227d 100644 --- a/include/spdk/trace.h +++ b/include/spdk/trace.h @@ -54,13 +54,13 @@ struct spdk_trace_entry { uint16_t poller_id; uint32_t size; uint64_t object_id; - uint8_t args[40]; + uint8_t args[8]; }; struct spdk_trace_entry_buffer { uint64_t tsc; uint16_t tpoint_id; - uint8_t data[54]; + uint8_t data[22]; }; SPDK_STATIC_ASSERT(sizeof(struct spdk_trace_entry_buffer) == sizeof(struct spdk_trace_entry),