[PATCH V2] tuna: Remove argument requirement for config_file_list option
by Leah Leshchinsky
Running tuna with the long option --config_file_list without specifying an
argument produces an error "option --config_file_list requires argument".
This option should not require an argument, and running the short option
`tuna -l` does not produce this error.
To allow --config_file_list to be specified without an argument,
remove "=" from the "config_file_list" string in the longopts list
that is passed to getopt.
Add minor spelling fix in comments.
Signed-off-by: Leah Leshchinsky <lleshchi(a)redhat.com>
---
tuna-cmd.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tuna-cmd.py b/tuna-cmd.py
index f9b20f7..8617966 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -504,7 +504,7 @@ def main():
"show_irqs", "irqs=",
"save=", "sockets=", "threads=", "no_uthreads",
"version", "what_is", "spread", "cgroup", "config_file_apply=",
- "config_file_list=", "run=", "refresh=", "disable_perf"]
+ "config_file_list", "run=", "refresh=", "disable_perf"]
if have_inet_diag:
short += "n"
long.append("show_sockets")
@@ -570,7 +570,7 @@ def main():
list(map(thread_mapper, a.split(","))))
op_list = list(set(op_list))
thread_list = do_list_op(op, thread_list, op_list)
- # Check if a process name was especified and no
+ # Check if a process name was specified and no
# threads was found, which would result in an empty
# thread list, i.e. we would print all the threads
# in the system when we should print nothing.
--
2.27.0
2 years, 2 months
[PATCH] tuna: Remove argument requirement for config_file_list option
by Leah Leshchinsky
Running tuna with the long option --config_file_list without specifying
an argument produces an error "option --config_file_list requires argument".
This option should not require an argument, and running the short option
`tuna -l` does not produce this error.
Signed-off-by: Leah Leshchinsky <lleshchi(a)redhat.com>
---
tuna-cmd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuna-cmd.py b/tuna-cmd.py
index f9b20f7..8093b0c 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -504,7 +504,7 @@ def main():
"show_irqs", "irqs=",
"save=", "sockets=", "threads=", "no_uthreads",
"version", "what_is", "spread", "cgroup", "config_file_apply=",
- "config_file_list=", "run=", "refresh=", "disable_perf"]
+ "config_file_list", "run=", "refresh=", "disable_perf"]
if have_inet_diag:
short += "n"
long.append("show_sockets")
--
2.27.0
2 years, 2 months
Renamed master branch main python-schedutils and python-linux-procfs
by John Kacur
I renamed the master branch main for both python-schedutils and
python-linux-procfs. (tuna was done awhile ago).
Note that python-schedutils is obsolete for tuna based on python-3.6 and
up since the code has been updated to use built in python scheduling
If you want to keep your local repo, here is one way to set that up
# Make sure you are on the "master" branch
git checkout master
# Rename it to "main"
git branch -m master main
# Get the latest commit and branches from the remote repo
git fetch
# Remove the existing tracking branch
git branch --unset-upstream
# Reset the tracking branch to the new upstream branch
git branch -u origin/main
# you can then make sure you are in sync
git remote update
git pull
Thanks
John
2 years, 2 months