From 95566c9459975432360c1cb3194761c130cda196 Mon Sep 17 00:00:00 2001 From: zhenwei pi Date: Thu, 13 Oct 2022 17:56:04 +0800 Subject: [PATCH] tools/runqslower: fix '-P'&'-p PID' conflict There is no conflict in '-P'&'-p PID', fix the commit(508d9694ba7e) tools/runqslower: add '-P' optional Signed-off-by: zhenwei pi --- tools/runqslower.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/runqslower.py b/tools/runqslower.py index 58df5c719fe5..0ef5cb1ab5ab 100755 --- a/tools/runqslower.py +++ b/tools/runqslower.py @@ -52,6 +52,8 @@ epilog=examples) parser.add_argument("min_us", nargs="?", default='10000', help="minimum run queue latency to trace, in us (default 10000)") +parser.add_argument("-P", "--previous", action="store_true", + help="also show previous task name and TID") parser.add_argument("--ebpf", action="store_true", help=argparse.SUPPRESS) @@ -60,8 +62,6 @@ help="trace this PID only", type=int) thread_group.add_argument("-t", "--tid", metavar="TID", dest="tid", help="trace this TID only", type=int) -thread_group.add_argument("-P", "--previous", action="store_true", - help="also show previous task name and TID") args = parser.parse_args() min_us = int(args.min_us)