Spdk/lib/event
Tomasz Zawadzki e65310624b lib/event: accumulate idle_tsc when reactor has no threads
Before this patch idle_tsc was sum of all idle tsc of all
threads running on a reactor.

There are cases when no threads are present on the reactor,
and _reactor_run() spins doing nothing.

To give more accurate representation of the reactors state,
the idle_tsc now adds time spent doing idle spinning.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: If797b2a03507d17b07367d56d5f6c40cefbbbd49
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7900
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
2021-05-25 07:11:53 +00:00
..
app_rpc.c thread: Change remaining direct accesses to io_channel outside lib/thread to helper functions 2021-05-13 10:03:44 +00:00
app.c event: Shift subsystem initialization code to a separate library 2021-05-24 10:12:50 +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: Shift subsystem initialization code to a separate library 2021-05-24 10:12:50 +00:00
log_rpc.c log_rpc: Unify codes in end path. 2021-05-05 13:26:06 +00:00
Makefile event: Shift subsystem initialization code to a separate library 2021-05-24 10:12:50 +00:00
reactor.c lib/event: accumulate idle_tsc when reactor has no threads 2021-05-25 07:11:53 +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 event: Shift subsystem initialization code to a separate library 2021-05-24 10:12:50 +00:00