From 1e5ebec39dbe43fa2aec23feb724b332511be886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20C=C5=82api=C5=84ski?= Date: Fri, 16 Sep 2022 11:06:28 +0200 Subject: [PATCH] Allow passing --display_stats via RPC. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Cłapiński Signed-off-by: Michał Mirosław --- criu/cr-service.c | 3 +++ images/rpc.proto | 1 + 2 files changed, 4 insertions(+) diff --git a/criu/cr-service.c b/criu/cr-service.c index ed4f1edef..9aa9d5bc8 100644 --- a/criu/cr-service.c +++ b/criu/cr-service.c @@ -723,6 +723,9 @@ static int setup_opts_from_req(int sk, CriuOpts *req) if (req->orphan_pts_master) opts.orphan_pts_master = true; + if (req->has_display_stats) + opts.display_stats = req->display_stats; + /* Evaluate additional configuration file a second time to overwrite * all RPC settings. */ if (req->config_file) { diff --git a/images/rpc.proto b/images/rpc.proto index 6451e9b73..cde162f1c 100644 --- a/images/rpc.proto +++ b/images/rpc.proto @@ -141,6 +141,7 @@ message criu_opts { optional bool skip_file_rwx_check = 66; optional bool unprivileged = 67; optional bool leave_stopped = 69; + optional bool display_stats = 70; /* optional bool check_mounts = 128; */ }