From owner-freebsd-current@FreeBSD.ORG Sun Jan 13 12:21:04 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 D6D8B16A41B for ; Sun, 13 Jan 2008 12:21:04 +0000 (UTC) (envelope-from mozolevsky@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 734B013C455 for ; Sun, 13 Jan 2008 12:21:03 +0000 (UTC) (envelope-from mozolevsky@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so1044315uge.37 for ; Sun, 13 Jan 2008 04:21:02 -0800 (PST) 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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=CA4Dzv3sIcYtKhTv3AXcFTZzrNAG3p/2mbDt8cQf+7w=; b=lF2/bFZkymR+FhJK3kUx5bRWGl9RUGoOien8a6+4XiJBKDt/gqrT2dC5C41ePBLuhyTfeyyIge1JlmVv2ntTLOSznwhmo5LTTadXp4ErFCsOaV+66+YOP8tuYF713gllD/aPbWgWA0IKTAmTR0yLB/MPktRL1KkjLDhjtezZC7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=P1b36Px+ehKIZZrQKhuwQrfC2LGgTYVOCKud6sd9xEsnRDXAaXcArSZwe6yaB83K3Cati0FfQYgR2lluCpU4dk7v2W+A8yHg5Yl+XYtQRB21VmZPJAV8FeuWR/2dIt7HRYbogWiHkr4N/BUcMwFHqikSiVU+uKadFyPbJ5teoJ8= Received: by 10.67.122.10 with SMTP id z10mr2468444ugm.44.1200226862628; Sun, 13 Jan 2008 04:21:02 -0800 (PST) Received: by 10.66.248.11 with HTTP; Sun, 13 Jan 2008 04:21:02 -0800 (PST) Message-ID: Date: Sun, 13 Jan 2008 12:21:02 +0000 From: "Igor Mozolevsky" Sender: mozolevsky@gmail.com To: "Joe Marcus Clarke" In-Reply-To: <1200197787.67286.13.camel@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1200197787.67286.13.camel@shumai.marcuscom.com> X-Google-Sender-Auth: 424d80060703dd18 Cc: current Subject: Re: RFC: Adding a hw.features[2] sysctl 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: Sun, 13 Jan 2008 12:21:04 -0000 On 13/01/2008, Joe Marcus Clarke wrote: > I find it would be useful to have the list of CPU features available via > a sysctl. Currently, he only ways to get this information are to have > linprocfs mounted, or parse dmesg.boot (if it exists). Attached are > patches to add hw.features and hw.features2 sysctls for i386 and amd64 > (where a list of CPU features is applicable). The results are identical > to the Features and Features2 strings from dmesg: > > hw.features2: 0x41d > hw.features: > 0xbfebfbff > > Comments? Would /dev/cpuinfo not be more appropriate for this? Igor