From 0b1cd12a733990a16b33ee4af0fc01af43e15f2a Mon Sep 17 00:00:00 2001
From: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Date: Wed, 15 Jan 2014 12:16:32 +0100
Subject: [PATCH] trace: make -t option required for prof command

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
---
 scripts/trace.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/trace.py b/scripts/trace.py
index e9681055e..6c6df171c 100755
--- a/scripts/trace.py
+++ b/scripts/trace.py
@@ -364,7 +364,7 @@ if __name__ == "__main__":
     add_symbol_resolution_options(cmd_prof_hit)
     add_trace_source_options(cmd_prof_hit)
     add_profile_options(cmd_prof_hit)
-    cmd_prof_hit.add_argument("-t", "--tracepoint", action="store", help="name of the tracepint to count")
+    cmd_prof_hit.add_argument("-t", "--tracepoint", action="store", required=True, help="name of the tracepint to count")
     cmd_prof_hit.set_defaults(func=prof_hit)
 
     args = parser.parse_args()
-- 
GitLab