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 <konrad.sztyber@intel.com>
Change-Id: Ic92a1413498df28a8561a13c0f06d895d0af2cc6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8407
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Konrad Sztyber 2021-06-16 15:07:00 +02:00 committed by Tomasz Zawadzki
parent 2731216dca
commit b8b1f19222

View File

@ -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),