Skip to contentSkip to conversation

tools/power turbostat: Enable header iteration option

PATCH New Kaushlendra Kumar 1 participant 1 message Dec 1, 2025 Turbostat utility

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/power turbostat: Enable header iteration option

getopt_long_only() never listed the -N flag. Include N in the short option string so -N is parsed like its long form, allowing users to set header iterations consistently.

---
 tools/power/x86/turbostat/turbostat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/x86/turbostat/turbostat.c +1 -1
index 807b2d7f1809..7f5ce392a338 100644
@@ -11044,7 +11044,7 @@ void cmdline(int argc, char **argv)
 	}
 	optind = 0;
 
-	while ((opt = getopt_long_only(argc, argv, "+C:c:Dde:hi:Jn:o:qMST:v", long_options, &option_index)) != -1) {
+	while ((opt = getopt_long_only(argc, argv, "+C:c:Dde:hi:Jn:N:o:qMST:v", long_options, &option_index)) != -1) {
 		switch (opt) {
 		case 'a':
 			parse_add_command(optarg);
Signature · 1 line
2.34.1