diff --git a/doc/jsonrpc.md b/doc/jsonrpc.md index 243a2768d..710961b94 100644 --- a/doc/jsonrpc.md +++ b/doc/jsonrpc.md @@ -820,6 +820,7 @@ Example response: "cpumask": "1", "busy": 139223208, "idle": 8641080608, + "in_interrupt": false, "active_pollers_count": 1, "timed_pollers_count": 2, "paused_pollers_count": 0 diff --git a/lib/event/app_rpc.c b/lib/event/app_rpc.c index 3d18e95a0..020395f63 100644 --- a/lib/event/app_rpc.c +++ b/lib/event/app_rpc.c @@ -398,6 +398,7 @@ _rpc_framework_get_reactors(void *arg1, void *arg2) spdk_json_write_named_uint32(ctx->w, "lcore", current_core); spdk_json_write_named_uint64(ctx->w, "busy", reactor->busy_tsc); spdk_json_write_named_uint64(ctx->w, "idle", reactor->idle_tsc); + spdk_json_write_named_bool(ctx->w, "in_interrupt", reactor->in_interrupt); governor = _spdk_governor_get(); /* We need to check whether governor can return current core frequency. */ if (governor->get_core_curr_freq != NULL) {