From owner-svn-src-head@freebsd.org Wed Jun 6 04:10:39 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FC0CFE0131; Wed, 6 Jun 2018 04:10:39 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 925DE82077; Wed, 6 Jun 2018 04:10:38 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id QPmNfd8rSSzNNQPmPffXHl; Tue, 05 Jun 2018 22:10:37 -0600 X-Authority-Analysis: v=2.3 cv=KuxjJ1eN c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=7mUfYlMuFuIA:10 a=VxmjJ2MpAAAA:8 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=lqruMqFtL0iausSl72QA:9 a=CjuIK1q_8ugA:10 a=oYPce5JG7pwA:10 a=7gXAzLPJhVmCkEl4_tsf:22 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id A468D1A85; Tue, 5 Jun 2018 21:10:35 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id w5649f48078795; Tue, 5 Jun 2018 21:09:41 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id w5649f2g078792; Tue, 5 Jun 2018 21:09:41 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201806060409.w5649f2g078792@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Cy Schubert cc: Matt Macy , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r334701 - in head: lib/libpmc share/examples/hwpmc sys/dev/hwpmc sys/sys usr.sbin/pmc usr.sbin/pmcstat In-Reply-To: Message from Cy Schubert of "Tue, 05 Jun 2018 20:53:51 -0700." <201806060353.w563rpg1070888@slippy.cwsent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 05 Jun 2018 21:09:41 -0700 X-CMAE-Envelope: MS4wfDv8lzgiCoJ+exN4JEhGiuJBXKOuL97lTDt/LwykyMQfMAVd2GkX7iPoaGerurTIDdNHtg6k8o+3VmlC4PsOMoe/M14fkFDtKgStBZ1njKJjW40gKsdx c13sMxXQBxZBi1aDv4m92n6BY9XYcct72hRS80bXaQ15ymt3CqHu0jiDWD9luw9nmjI1M1La2NNbxjWbchz76wQZrq5BKoEBq80rg8xlcH/qjMzGRwIqjz8I v4qYJiK8qTvic6AFxL1K9RBQDPK0H4YoiXBwAWxf3HACZS4EQwIuLtGc3z8x0ze5 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2018 04:10:39 -0000 In message <201806060353.w563rpg1070888@slippy.cwsent.com>, Cy Schubert writes: > In message <201806060248.w562m9tB083134@repo.freebsd.org>, Matt Macy > writes: > > Author: mmacy > > Date: Wed Jun 6 02:48:09 2018 > > New Revision: 334701 > > URL: https://svnweb.freebsd.org/changeset/base/334701 > > > > Log: > > hwpmc: add summary command and further metadata extensions > > > > metadata changes: > > - log pmc sample rate with pmcallocate > > - log proc flags with thread / process logging > > to identify user vs kernel threads > > > > fixes: > > - use log cpuid to translate event id to event name > > > > Implement rudimentary summary command to track sample > > counts by thread and process name within a pmc log. > > > > % make -j4 buildkernel >& /dev/null & > > % sudo pmcstat -S unhalted_core_cycles -S llc-misses -O foo sleep 15 > > % pmc summary foo > > cpu_clk_unhalted.thread_p_any: > > idle: 138108207162 > > clang-6.0: 105336158004 > > sh: 72340108510 > > make: 8642012963 > > kernel: 7754011631 > > longest_lat_cache.miss: > > clang-6.0: 87502625 > > sh: 40901227 > > make: 5500165 > > kernel: 3300099 > > awk: 2000060 > > > > % pmc summary -f ~/foo > > idx: 278 name: cpu_clk_unhalted.thread_p_any rate: 2000003 > > idle: 69054 > > clang-6.0: 52668 > > sh: 36170 > > make: 4321 > > kernel: 3877 > > hwpmc: proc(7445): 3319 > > awk: 1289 > > xargs: 357 > > rand_harvestq: 181 > > mtree: 102 > > intr: 53 > > zfskern: 31 > > usb: 7 > > pagedaemon: 4 > > ntpd: 3 > > syslogd: 1 > > acpi_thermal: 1 > > logger: 1 > > syncer: 1 > > snmptrapd: 1 > > sleep: 1 > > idx: 17 name: longest_lat_cache.miss rate: 100003 > > clang-6.0: 875 > > sh: 409 > > make: 55 > > kernel: 33 > > awk: 20 > > hwpmc: proc(7445): 14 > > xargs: 9 > > idle: 8 > > intr: 3 > > zfskern: 2 > > Hi Matt, > > I'm not sure if this is due to this commit or one of your others but > it's broken the build. > > Sorry I can't do any more analysis but I need to get dinner on the > table. Oops, I should have pasted this into my previous email. --- cmd_pmc_filter.o --- /usr/local/bin/ccache cc -target x86_64-unknown-freebsd12.0 --sysroot=/export/obj/opt/src/svn-current/amd64.amd64/tmp -B/export/obj/opt/src/svn-current/amd64.amd64/tmp/usr/bin -O2 -pipe -pipe -g -MD -MF.depend.cmd_pmc_filter.o -MTcmd_pmc_filter.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -c /opt/src/svn-current/usr.sbin/pmc/cmd_pmc_filter.c -o cmd_pmc_filter.o cc: error: no such file or directory: '/opt/src/svn-current/usr.sbin/pmc /cmd_pmc_filter.c' cc: error: no input files -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.