From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: igt-dev@lists.freedesktop.org, Intel-gfx@lists.freedesktop.org
Cc: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>,
Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Subject: [igt-dev] [PATCH i-g-t 3/6] intel_gpu_top: Add command line switch to start in physical engine mode
Date: Fri, 27 Jan 2023 11:12:38 +0000 [thread overview]
Message-ID: <20230127111241.3624629-4-tvrtko.ursulin@linux.intel.com> (raw)
In-Reply-To: <20230127111241.3624629-1-tvrtko.ursulin@linux.intel.com>
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Default mode is to aggreate engines per class but some users would prefer
to be able to start in physical engine mode too.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
man/intel_gpu_top.rst | 3 +++
tools/intel_gpu_top.c | 9 +++++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/man/intel_gpu_top.rst b/man/intel_gpu_top.rst
index caf0a9f9432c..69834756b81e 100644
--- a/man/intel_gpu_top.rst
+++ b/man/intel_gpu_top.rst
@@ -49,6 +49,9 @@ OPTIONS
-d
Select a specific GPU using one of the supported filters.
+-p
+ Default to showing physical engines instead of aggregated classes.
+
RUNTIME CONTROL
===============
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index c4d98de4fe31..e91b47baf72b 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -1268,6 +1268,7 @@ usage(const char *appname)
"\t[-s <ms>] Refresh period in milliseconds (default %ums).\n"
"\t[-L] List all cards.\n"
"\t[-d <device>] Device filter, please check manual page for more details.\n"
+ "\t[-p] Default to showing physical engines instead of classes.\n"
"\n",
appname, DEFAULT_PERIOD_MS);
igt_device_print_filter_types();
@@ -2446,6 +2447,7 @@ int main(int argc, char **argv)
{
unsigned int period_us = DEFAULT_PERIOD_MS * 1000;
struct clients *clients = NULL;
+ bool physical_engines = false;
int con_w = -1, con_h = -1;
char *output_path = NULL;
struct engines *engines;
@@ -2456,7 +2458,7 @@ int main(int argc, char **argv)
char *codename = NULL;
/* Parse options */
- while ((ch = getopt(argc, argv, "o:s:d:JLlh")) != -1) {
+ while ((ch = getopt(argc, argv, "o:s:d:pJLlh")) != -1) {
switch (ch) {
case 'o':
output_path = optarg;
@@ -2467,6 +2469,9 @@ int main(int argc, char **argv)
case 'd':
opt_device = strdup(optarg);
break;
+ case 'p':
+ physical_engines = true;
+ break;
case 'J':
output_mode = JSON;
break;
@@ -2508,7 +2513,7 @@ int main(int argc, char **argv)
case INTERACTIVE:
pops = &term_pops;
interactive_stdin();
- class_view = true;
+ class_view = !physical_engines;
break;
case STDOUT:
pops = &stdout_pops;
--
2.34.1
next prev parent reply other threads:[~2023-01-27 11:12 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-27 11:12 [igt-dev] [PATCH i-g-t 0/6] Assorted intel_gpu_top improvements Tvrtko Ursulin
2023-01-27 11:12 ` [igt-dev] [PATCH i-g-t 1/6] intel_gpu_top: Fix man page formatting Tvrtko Ursulin
2023-01-27 17:18 ` Kamil Konieczny
2023-01-27 11:12 ` [igt-dev] [PATCH i-g-t 2/6] intel_gpu_top: Automatically enclose JSON output into brackets Tvrtko Ursulin
2023-01-27 11:12 ` Tvrtko Ursulin [this message]
2023-01-27 11:12 ` [igt-dev] [PATCH i-g-t 4/6] intel_gpu_top: Aggregate engine classes in all output modes Tvrtko Ursulin
2023-01-27 11:12 ` [igt-dev] [PATCH i-g-t 5/6] intel_gpu_top: Fix cleanup on old kernels / unsupported GPU Tvrtko Ursulin
2023-01-27 16:10 ` [igt-dev] [Intel-gfx] " Kamil Konieczny
2023-01-30 10:55 ` Tvrtko Ursulin
2023-01-30 10:58 ` Das, Nirmoy
2023-01-30 16:54 ` Kamil Konieczny
2023-01-27 11:12 ` [igt-dev] [PATCH i-g-t 6/6] lib/igt_device_scan: Improve Intel discrete GPU selection Tvrtko Ursulin
2023-01-27 11:39 ` Petri Latvala
2023-01-27 11:53 ` Tvrtko Ursulin
2023-01-27 13:41 ` Petri Latvala
2023-01-27 16:17 ` Kamil Konieczny
2023-01-30 11:04 ` Tvrtko Ursulin
2023-01-30 16:51 ` Kamil Konieczny
2023-01-30 6:30 ` Zbigniew Kempczyński
2023-01-27 12:16 ` [igt-dev] ✓ Fi.CI.BAT: success for Assorted intel_gpu_top improvements Patchwork
2023-01-27 14:33 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-01-30 12:28 ` Kamil Konieczny
2023-01-30 15:02 ` Yedireswarapu, SaiX Nandan
2023-01-30 13:51 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230127111241.3624629-4-tvrtko.ursulin@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
--cc=dmitry.v.rogozhkin@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=tvrtko.ursulin@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox