rpc/thread: Add thread id to thread_get_pollers RPC output
Signed-off-by: Maciej Szwed <maciej.szwed@intel.com> Change-Id: Icdeb61cefbf9df5d3f653af5b3222808fe55ce7e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1909 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
6766e91530
commit
cd4b7a11ad
@ -655,6 +655,7 @@ Example response:
|
|||||||
"threads": [
|
"threads": [
|
||||||
{
|
{
|
||||||
"name": "app_thread",
|
"name": "app_thread",
|
||||||
|
"id": 1,
|
||||||
"active_pollers": [],
|
"active_pollers": [],
|
||||||
"timed_pollers": [
|
"timed_pollers": [
|
||||||
{
|
{
|
||||||
|
@ -267,6 +267,7 @@ rpc_thread_get_pollers(void *arg)
|
|||||||
|
|
||||||
spdk_json_write_object_begin(ctx->w);
|
spdk_json_write_object_begin(ctx->w);
|
||||||
spdk_json_write_named_string(ctx->w, "name", spdk_thread_get_name(thread));
|
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");
|
spdk_json_write_named_array_begin(ctx->w, "active_pollers");
|
||||||
TAILQ_FOREACH(poller, &thread->active_pollers, tailq) {
|
TAILQ_FOREACH(poller, &thread->active_pollers, tailq) {
|
||||||
|
Loading…
Reference in New Issue
Block a user