diff --git a/tools/test/hwpmc/pmctest.py b/tools/test/hwpmc/pmctest.py index e3c12d3ddd51..fb6667db8c00 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]