Commit bbce7a87 authored by Jim Harris's avatar Jim Harris
Browse files

event: move struct spdk_lw_thread to internal header



This does not need to be exposed through public API.

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


Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 5031f0f3
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -32,16 +32,7 @@ enum spdk_reactor_state {
	SPDK_REACTOR_STATE_SHUTDOWN = 4,
};

struct spdk_lw_thread {
	TAILQ_ENTRY(spdk_lw_thread)	link;
	uint64_t			tsc_start;
	uint32_t                        lcore;
	bool				resched;
	/* stats over a lifetime of a thread */
	struct spdk_thread_stats	total_stats;
	/* stats during the last scheduling period */
	struct spdk_thread_stats	current_stats;
};
struct spdk_lw_thread;

/**
 * Completion callback to set reactor into interrupt mode or poll mode.
+13 −0
Original line number Diff line number Diff line
@@ -7,11 +7,24 @@

#include "spdk/stdinc.h"
#include "spdk/cpuset.h"
#include "spdk/queue.h"
#include "spdk_internal/event.h"

#ifdef __cplusplus
extern "C" {
#endif

struct spdk_lw_thread {
	TAILQ_ENTRY(spdk_lw_thread)	link;
	uint64_t			tsc_start;
	uint32_t                        lcore;
	bool				resched;
	/* stats over a lifetime of a thread */
	struct spdk_thread_stats	total_stats;
	/* stats during the last scheduling period */
	struct spdk_thread_stats	current_stats;
};

/**
 * Parse proc/stat and get time spent processing system mode and user mode
 *