From 618d9246d73e318cbc0ed43a1ddd77a983f21753 Mon Sep 17 00:00:00 2001 From: gnn Date: Tue, 4 Sep 2012 20:14:37 +0000 Subject: Add a reasonable error message telling the caller to specify a program to be executed under hwpmc. If there is no program to run then exit. --- tools/test/hwpmc/pmctest.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/test') diff --git a/tools/test/hwpmc/pmctest.py b/tools/test/hwpmc/pmctest.py index e3c12d3..fb6667d 100755 --- a/tools/test/hwpmc/pmctest.py +++ b/tools/test/hwpmc/pmctest.py @@ -67,6 +67,10 @@ def main(): (options, args) = parser.parse_args() + if (options.program == None): + print "specify program, such as ls, with -p/--program" + sys.exit() + p = subprocess.Popen(["pmccontrol", "-L"], stdout=PIPE) counters = p.communicate()[0] -- cgit v1.1