[PATCH 3/5] umr: Add command line support for "--gpu-metrics"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add command line support for --gpu-metrics, to fall in line with the rest
of the command line arguments' format.

Cc: Tom StDenis <tom.stdenis@xxxxxxx>
Cc: Jinzhou.Su <Jinzhou.Su@xxxxxxx>
Signed-off-by: Luben Tuikov <luben.tuikov@xxxxxxx>
---
 src/app/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/app/main.c b/src/app/main.c
index 62ea2f42145f60..6cfbe09bea7b4d 100644
--- a/src/app/main.c
+++ b/src/app/main.c
@@ -861,7 +861,9 @@ int main(int argc, char **argv)
 				if (umr_print_pp_table(asic, NULL) != 0)
 					fprintf(stderr, "[ERROR]: can not print pp table info.\n");
 			}
-		} else if (!strcmp(argv[i], "--gpu_metrics") || !strcmp(argv[i], "-gm")) {
+		} else if (!strcmp(argv[i], "--gpu-metrics") ||
+			   !strcmp(argv[i], "--gpu_metrics") ||
+			   !strcmp(argv[i], "-gm")) {
 			if (!asic)
 				asic = get_asic();
 			if (umr_print_gpu_metrics(asic) != 0)
-- 
2.35.1.607.gf01e51a7cf




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux