Date: Tue, 4 Sep 2012 20:14:37 +0000 (UTC) From: "George V. Neville-Neil" <gnn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r240101 - head/tools/test/hwpmc Message-ID: <201209042014.q84KEbxv012649@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gnn Date: Tue Sep 4 20:14:37 2012 New Revision: 240101 URL: http://svn.freebsd.org/changeset/base/240101 Log: 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. Modified: head/tools/test/hwpmc/pmctest.py Modified: head/tools/test/hwpmc/pmctest.py ============================================================================== --- head/tools/test/hwpmc/pmctest.py Tue Sep 4 19:49:37 2012 (r240100) +++ head/tools/test/hwpmc/pmctest.py Tue Sep 4 20:14:37 2012 (r240101) @@ -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]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209042014.q84KEbxv012649>