Skip to content

Commit

Permalink
tools/offcputime.py: Redundatn arg check
Browse files Browse the repository at this point in the history
pid/tid is already set to be mutually exclusive in
python's arg parser so no need for this check manually.
  • Loading branch information
bodgergely authored and yonghong-song committed Jan 3, 2020
1 parent c6b287c commit 909ada9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/offcputime.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ def stack_id_err(stack_id):
parser.add_argument("--ebpf", action="store_true",
help=argparse.SUPPRESS)
args = parser.parse_args()
if args.pid and args.tgid:
parser.error("specify only one of -p and -t")
folded = args.folded
duration = int(args.duration)
debug = 0
Expand Down

0 comments on commit 909ada9

Please sign in to comment.