From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org, Intel-gfx@lists.freedesktop.org Date: Thu, 12 Jan 2023 17:47:30 +0000 Message-Id: <20230112174730.1101192-5-tvrtko.ursulin@linux.intel.com> In-Reply-To: <20230112174730.1101192-1-tvrtko.ursulin@linux.intel.com> References: <20230112174730.1101192-1-tvrtko.ursulin@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 4/4] intel_gpu_top: Aggregate engine classes in all output modes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dmitry Rogozhkin , Tvrtko Ursulin Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Tvrtko Ursulin Use the same default for stdout and JSON output modes as it is for interactive. Previously added command line switch can be used to go back to showing all physical engines. Signed-off-by: Tvrtko Ursulin Cc: Dmitry Rogozhkin --- tools/intel_gpu_top.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c index e91b47baf72b..7aa233570463 100644 --- a/tools/intel_gpu_top.c +++ b/tools/intel_gpu_top.c @@ -2509,11 +2509,12 @@ int main(int argc, char **argv) if (signal(SIGINT, sigint_handler) == SIG_ERR) fprintf(stderr, "Failed to install signal handler!\n"); + class_view = !physical_engines; + switch (output_mode) { case INTERACTIVE: pops = &term_pops; interactive_stdin(); - class_view = !physical_engines; break; case STDOUT: pops = &stdout_pops; -- 2.34.1