Skip to content

Commit

Permalink
tools/runqslower: fix '-P'&'-p PID' conflict
Browse files Browse the repository at this point in the history
There is no conflict in '-P'&'-p PID', fix the commit(508d969)
    tools/runqslower: add '-P' optional

Signed-off-by: zhenwei pi <[email protected]>
  • Loading branch information
pizhenwei authored and chenhengqi committed Oct 13, 2022
1 parent 1fa246d commit 95566c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/runqslower.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down

0 comments on commit 95566c9

Please sign in to comment.