spdk_top: Update to new thread_get_pollers RPC output

Signed-off-by: Maciej Szwed <maciej.szwed@intel.com>
Change-Id: Ic60fc0b43b178151d9e269fec71ee0eac79dd5aa

Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1910
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>
This commit is contained in:
Maciej Szwed 2020-04-17 11:20:40 +02:00 committed by Tomasz Zawadzki
parent cd4b7a11ad
commit 6f4c058bf6

View File

@ -158,6 +158,7 @@ struct rpc_pollers {
struct rpc_poller_thread_info {
char *name;
uint64_t id;
struct rpc_pollers active_pollers;
struct rpc_pollers timed_pollers;
struct rpc_pollers paused_pollers;
@ -297,6 +298,7 @@ rpc_decode_pollers_array(const struct spdk_json_val *val, void *out)
static const struct spdk_json_object_decoder rpc_pollers_threads_decoders[] = {
{"name", offsetof(struct rpc_poller_thread_info, name), spdk_json_decode_string},
{"id", offsetof(struct rpc_poller_thread_info, id), spdk_json_decode_uint64},
{"active_pollers", offsetof(struct rpc_poller_thread_info, active_pollers), rpc_decode_pollers_array},
{"timed_pollers", offsetof(struct rpc_poller_thread_info, timed_pollers), rpc_decode_pollers_array},
{"paused_pollers", offsetof(struct rpc_poller_thread_info, paused_pollers), rpc_decode_pollers_array},