Commit 57c2d6d3 authored by Jim Harris's avatar Jim Harris
Browse files

trace: rename "per_lcore_history" to just "data"



We will be adding more variable sized data sections to the trace
file, so "per_lcore_history" is no longer an appropriate name for
this field.

Signed-off-by: default avatarJim Harris <jim.harris@samsung.com>
Change-Id: I96c5fa6c33408f04a8fd66c95b287a419fb69004
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22850


Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 674b4c1a
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -128,13 +128,10 @@ struct spdk_trace_file {
	/** Offset of each trace_history from the beginning of this data structure. */
	uint64_t			lcore_history_offsets[SPDK_TRACE_MAX_LCORE];

	/**
	 * struct spdk_trace_history has a dynamic size determined by num_entries
	 * in spdk_trace_init. Mark array size of per_lcore_history to be 0 in uint8_t
	 * as a reminder that each per_lcore_history pointer should be gotten by
	 * proper API, instead of directly referencing by struct element.
	/** Variable sized data sections are at the end of this data structure,
	 *  referenced by offsets defined in this structure.
	 */
	uint8_t	per_lcore_history[0];
	uint8_t	data[0];
};
extern struct spdk_trace_file *g_trace_file;