Skip to contentSkip to conversation

tuna: require -i option for cstate

PATCH New Anubhav Shelat 1 participant 2 messages Jul 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tuna: require -i option for cstate

Previously, user could run cstate subcommand without specifying cstate. Now the option to specify a cstate is required.

---
 tuna-cmd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tuna-cmd.py +1 -1
index b6f94182241f..5a7e795e3bea 100755
@@ -224,7 +224,7 @@ def gen_parser():
     show_irqs.add_argument('-q', '--irqs', **MODS['irqs'])
 
     cstate.add_argument('-c', '--cpus', **MODS['cpus'])
-    cstate.add_argument('-i', '--cstate', **MODS['cstate'])
+    cstate.add_argument('-i', '--cstate', **MODS['cstate'], required=True)
     cstate.add_argument('--info', **MODS['info'])
 
     what_is.add_argument('thread_list', **POS['thread_list'])
Signature · 1 line
2.45.2
#1 lore raw

PATCH 2/2 tuna: added SPDX licence for cpupower.py

Added SPDX licence for cpupower.py

---
 tuna/cpupower.py | 1 +
 1 file changed, 1 insertion(+)
tuna/cpupower.py +1 -0
index da869420eb6f..1a8296553ed8 100644
@@ -1,4 +1,5 @@
 #! /user/bin/python3
+# SPDX-License-Identifier: GPL-2.0-only
 
 import subprocess
 import argparse
Signature · 1 line
2.45.2