From owner-freebsd-current@FreeBSD.ORG Wed Jun 25 21:59:17 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B67751065675 for ; Wed, 25 Jun 2008 21:59:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id 71FDE8FC27 for ; Wed, 25 Jun 2008 21:59:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1832625pyb.10 for ; Wed, 25 Jun 2008 14:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=QUOJD6+Zm1SB6UN6LBJvs4gWixG0fUkSlY/WQdjU9qs=; b=NWPgBRugBmz3NThKSckQ5o8aIMfxFfwvnbu8sktFGiaA/Q1rSzKh7LwH5YCW4UGogK JyzF/CTIqglG5IONe8dX/YG6uDEQQfWbAq8j9VJ9nng+4W7cDeFWRkCijZYe8sGcy2zE rVDmLMnFFbvfs1t/Jvz8a4SA4qzbnjMvtodt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=AGgLJld0i+83NmvDKlicFp24H2ZD93qgmOUkoYT4Q+2CuTjSnitAbMG0K3psxU70Uu 9YR2aqsRBSCA9jjwNKXT97KELYGNEYoL5zH44/t92eUJZP40et/R5ybPnieBJ4Pe6Jbx 0UqQENCHHNr+5RWamckFpHYW39ugPV9s5qWZQ= Received: by 10.141.164.13 with SMTP id r13mr16829721rvo.150.1214429520900; Wed, 25 Jun 2008 14:32:00 -0700 (PDT) Received: by 10.141.212.9 with HTTP; Wed, 25 Jun 2008 14:32:00 -0700 (PDT) Message-ID: Date: Thu, 26 Jun 2008 05:32:00 +0800 From: "Adrian Chadd" Sender: adrian.chadd@gmail.com To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 45f2c9dd61a98499 Cc: Subject: hwpmc and existing processes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2008 21:59:17 -0000 I've been looking at hwpmc a little more lately (argh). One of the things which annoys me is that although hwpmc can capture events from existing processes pmcstat doesn't generate summary output for them. If this is still the case (I've not checked -current over my exam period!), the required changes don't look -that- hard. pmc receives events from hwpmc about the exec and mappings for the binary and libraries; I wonder if pmcstat could be taught to "fake" exec/map-in/map-out entries for stats from processes it hasn't seen yet. It'd also be nice if it recorded some kind of timestamp from the file(s) in question so it could notice if the underlying libraries/binaries have changed between gathering and reporting. I sort of need this with Squid so I can profile things after a "burnin period". I can currently fake it by starting squid + hwpmc and removing the first n kernel/user events from the pmcstat data file. This is slightly silly. :) Has anyone else looked into this? adrian