Most accesses to the struct spdk_poller outside lib/thread have been done via functions but a few direct accesses remain. Change these to indirect accesses by addinng a few helper functions as SPDK internal APIs. Add spdk_poller_get_name() to get the name of the poller. Remove spdk_poller_state_str() and add spdk_poller_get_state_str(). Exposing enum spdk_poller_state outside lib/thread is not really necessary. This removal requires us to update major SO version. Add spdk_poller_get_period_ticks() to get the period ticks of the poller. Add struct spdk_poller_stats and spdk_poller_get_stats() to get the stats of the poller. The next patch will move the definition of struct spdk_poller and enum spdk_poller_state from include/spdk_internal/thread.h to lib/thread/thread.c. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Id597dae074a15fcd8af09fd9d416a22ce2f403c3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7798 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
app_rpc.c | ||
app.c | ||
dpdk_governor.c | ||
gscheduler.c | ||
json_config.c | ||
log_rpc.c | ||
Makefile | ||
reactor.c | ||
rpc.c | ||
scheduler_dynamic.c | ||
scheduler_static.c | ||
spdk_event.map | ||
subsystem_rpc.c | ||
subsystem.c |