From owner-freebsd-current@FreeBSD.ORG Mon Oct 6 20:28:13 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 749DF10656A0 for ; Mon, 6 Oct 2008 20:28:13 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-gx0-f21.google.com (mail-gx0-f21.google.com [209.85.217.21]) by mx1.freebsd.org (Postfix) with ESMTP id 2EF2F8FC1C for ; Mon, 6 Oct 2008 20:28:13 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by gxk14 with SMTP id 14so5408573gxk.19 for ; Mon, 06 Oct 2008 13:28:12 -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:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=lNfKjRoC6rQ5q/L7oRxBYJqyvmYXWOhggfLPmbKixPM=; b=Dhh4+nIWFwoI7anmFwJFW2TZkesSov7xb8hcm+XBNzR3fA9RBCGGXXMOyfSId/iF5H ZGZDuZcL84YeQJf3zET4FEEGIhdrTk94EcDdY8dRqwpKfEPDmTxHDmGrvYOCuNzKHx0D zK4e6szYvynPBjTWYPEngCHL1wLHZ6nPQU9B8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=fL62CDb/KbpDTWYQYUh6t2+51lbchs72EKx8ldrmOlYULE20+3ykM0ZNiHkXzzd1t5 bREyIKC4/+USiK8qoYveAjHB37PPqLe1DpXjwTdxY+qe2uHoqXbjkfMlBNHiXh7EUYGL 5g6ZYTCjtmDa6wcHh5qcvKodnWrxCxRDwIplw= Received: by 10.150.136.6 with SMTP id j6mr8258683ybd.193.1223324892420; Mon, 06 Oct 2008 13:28:12 -0700 (PDT) Received: by 10.150.97.16 with HTTP; Mon, 6 Oct 2008 13:28:12 -0700 (PDT) Message-ID: Date: Mon, 6 Oct 2008 16:28:12 -0400 From: "Ryan Stone" To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mailman-Approved-At: Mon, 06 Oct 2008 20:35:25 +0000 Subject: pmcstat: should it fail when a cpu is disabled? 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: Mon, 06 Oct 2008 20:28:13 -0000 Recently I've run into a small issue where pmcstat will fail if a cpu is disabled unless you specifically tell pmcstat to not attach to that processor. This is annoying for me because we have some machines with hyper-threaded cpus but we disable hyperthreading on them. When we try to run pmcstat on those machines, pmcstat will try to attach to the disabled hyperthreaded cpu and fail. I can work around it by figuring out what the active cpus are and specifying only those cpus to the -c options, but that's annoying. I was thinking that if the -c '*' option is specified(either explicitly or implicitly by not specifying any -c option) that pmcstat should only attach to active cpus and ignore disabled cpus. I have a patch that will do this but I wanted to gauge opinions on whether this behaviour is wanted or not before submitting it. Any strong opinions one way or the other? Ryan Stone