From owner-freebsd-stable@freebsd.org Tue Feb 7 17:08:32 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8AF89CD51B7 for ; Tue, 7 Feb 2017 17:08:32 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from mail.strugglingcoder.info (strugglingcoder.info [104.236.146.68]) by mx1.freebsd.org (Postfix) with ESMTP id 6F0866BD for ; Tue, 7 Feb 2017 17:08:32 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from localhost (unknown [10.1.1.3]) (Authenticated sender: hiren@strugglingcoder.info) by mail.strugglingcoder.info (Postfix) with ESMTPA id 354B81766B; Tue, 7 Feb 2017 09:08:27 -0800 (PST) Date: Tue, 7 Feb 2017 09:08:27 -0800 From: hiren panchasara To: rainer@ultra-secure.de Cc: freebsd-stable@freebsd.org Subject: Re: Question about pmcstat Message-ID: <20170207170827.GT84308@strugglingcoder.info> References: <8212583ba45617508f1bf05ca6acd706@ultra-secure.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WyNRHPUpyWKWHSil" Content-Disposition: inline In-Reply-To: <8212583ba45617508f1bf05ca6acd706@ultra-secure.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2017 17:08:32 -0000 --WyNRHPUpyWKWHSil Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 02/07/17 at 05:55P, rainer@ultra-secure.de wrote: > Hi, >=20 > in Brendan Gregg's tutorial: >=20 > http://www.brendangregg.com/blog/2015-03-10/freebsd-flame-graphs.html >=20 > it says to run >=20 > pmcstat ?S RESOURCE_STALLS.ANY -O out.pmcstat sleep 10 Not sure if it's the mailer or what but it should be '-S' and not '?S'. >=20 > However, I get >=20 > freebsd11 ) 0 # pmcstat ?S RESOURCE_STALLS.ANY -O out.pmcstat=20 > sleep 10 > pmcstat: [options] [commandline] > Measure process and/or system performance using hardware > performance monitoring counters. > Options include: > -C (toggle) show cumulative counts > -D path create profiles in directory "path" > -E (toggle) show counts at process exit > -F file write a system-wide callgraph (Kcachegrind=20 > format) to "file" > -G file write a system-wide callgraph to "file" > -M file print executable/gmon file map to "file" > -N (toggle) capture callchains > -O file send log output to "file" > -P spec allocate a process-private sampling PMC > -R file read events from "file" > -S spec allocate a system-wide sampling PMC > -T start in top mode > -W (toggle) show counts per context switch > -a file print sampled PCs and callgraph to "file" > -c cpu-list set cpus for subsequent system-wide PMCs > -d (toggle) track descendants > -e use wide history counter for gprof(1) output > -f spec pass "spec" to as plugin option > -g produce gprof(1) compatible profiles > -k dir set the path to the kernel > -l secs set duration time > -m file print sampled PCs to "file" > -n rate set sampling rate > -o file send print output to "file" > -p spec allocate a process-private counting PMC > -q suppress verbosity > -r fsroot specify FS root directory > -s spec allocate a system-wide counting PMC > -t process-spec attach to running processes matching=20 > "process-spec" > -v increase verbosity > -w secs set printing time interval > -z depth limit callchain display depth >=20 >=20 > I assume, the event specifier is not correct. Is there a list of the=20 > valid ones in FreeBSD 11? You can see available event-spacs via 'pmccontrol -L'. Cheers, Hiren --WyNRHPUpyWKWHSil Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJYmf8HXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNEUyMEZBMUQ4Nzg4RjNGMTdFNjZGMDI4 QjkyNTBFMTU2M0VERkU1AAoJEIuSUOFWPt/lQ6MIAIoYsU5NcEgvBQcCdB+YWfni kwgbRX4oKtR5QrGNCBAWIJyp5SrCD5tdutFsHH2BkW7pd2PhUIHSOldwQagllLXa gQzxdH1AJaJCCwNNxVHVa+aH/Vh97k05udw5O2UBDB0IuXFW+NdAyppiyxBCGHGD 9BjEEo42k9rlMfbux9zaCwDDZ83SYOCAFWUuvL5Zf0/pBIIvA8BA1052IxALu4yk gJmPKjIaxVNLSTXrbN3Rw2yN7IzGoVUjFO+g0aPvVgzxVU1yHSsRJqDJWHCOjmB6 6kLlzduTTXPBMMK3xqjRgeC970jWGYg+boiQXgSTvsdQvwqgLIRglskajBnIzLQ= =w8Ln -----END PGP SIGNATURE----- --WyNRHPUpyWKWHSil--