diff --git a/doc/jsonrpc.md b/doc/jsonrpc.md index 6ef0c65c4..6b6c4cb57 100644 --- a/doc/jsonrpc.md +++ b/doc/jsonrpc.md @@ -655,6 +655,7 @@ Example response: "threads": [ { "name": "app_thread", + "id": 1, "active_pollers": [], "timed_pollers": [ { diff --git a/module/event/rpc/app_rpc.c b/module/event/rpc/app_rpc.c index b662d5727..7de1494ef 100644 --- a/module/event/rpc/app_rpc.c +++ b/module/event/rpc/app_rpc.c @@ -267,6 +267,7 @@ rpc_thread_get_pollers(void *arg) spdk_json_write_object_begin(ctx->w); spdk_json_write_named_string(ctx->w, "name", spdk_thread_get_name(thread)); + spdk_json_write_named_uint64(ctx->w, "id", spdk_thread_get_id(thread)); spdk_json_write_named_array_begin(ctx->w, "active_pollers"); TAILQ_FOREACH(poller, &thread->active_pollers, tailq) {