Spdk/lib/event
Shuhei Matsumoto 1aec9334d9 thread: Change direct accesses to poller outside lib/thread to helper functions
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>
2021-05-13 10:03:44 +00:00
..
app_rpc.c thread: Change direct accesses to poller outside lib/thread to helper functions 2021-05-13 10:03:44 +00:00
app.c event: Add return code to spdk_rpc_initialize 2021-03-12 08:38:10 +00:00
dpdk_governor.c dpdk_governor: refactor _get_core_curr_freqs 2021-04-22 15:40:30 +00:00
gscheduler.c event/scheduler: Include not spdk_internal/thread.h but spdk/thread.h 2021-05-13 10:03:44 +00:00
json_config.c event: Add return code to spdk_rpc_initialize 2021-03-12 08:38:10 +00:00
log_rpc.c log_rpc: Unify codes in end path. 2021-05-05 13:26:06 +00:00
Makefile so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
reactor.c reactor: call callback if no need to set intr 2021-04-26 06:58:36 +00:00
rpc.c event: Add return code to spdk_rpc_initialize 2021-03-12 08:38:10 +00:00
scheduler_dynamic.c event/scheduler: Include not spdk_internal/thread.h but spdk/thread.h 2021-05-13 10:03:44 +00:00
scheduler_static.c event: Fix SPDK_SCHEDULER_REGISTER macro 2021-01-15 08:28:30 +00:00
spdk_event.map reactor: add spdk_reactor_set_interrupt_mode func 2021-01-25 20:37:50 +00:00
subsystem_rpc.c event: move app_rpc contents 2020-09-25 11:43:42 +00:00
subsystem.c event: remove subsystem legacy config print 2020-10-21 02:25:45 +00:00