Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330195
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ingo Molnar <mingo@kernel.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH -v2] x86: Add an archinfo dumper module |
| Date | Tue, 09 Feb 2016 13:30:05 +0100 |
| Message-ID | <r0fAF-3Wc-71@gated-at.bofh.it> (permalink) |
| References | <qXljc-25A-7@gated-at.bofh.it> <qXw4V-1KM-3@gated-at.bofh.it> <qXFKW-BP-9@gated-at.bofh.it> <qY3ay-Nu-31@gated-at.bofh.it> <qY3tV-19p-37@gated-at.bofh.it> <qYu14-3JT-23@gated-at.bofh.it> <qZHyW-5BD-19@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=G2TIR0JKW3AUEfBp3wU9kDNUm0MEA6uLbr8OejDgb/w=; b=Kds4Q1WdCYTb1YiBdTO1z78OVpzeLlvkWnIoDBnUwTd9G+0RNiqLIn64Umzh3DOZ83 1sLp04wkOoZCnaMYO16XUtriY2lg55t43YDqJhGZHtxyM2IwRAyENvOut+KOnftpefP2 nWm6l8IXDugyTbvaLqS0D2MV4rll8YcnTY27/h32Vl93k0/1XmxT6QwzEnf+FbKUSe9x /JWNOsXIpAQuew3JnIeUuEFhpTahrAYwSqspU39uWRZkEGtLevGo1cjC5fs6HMhkQu4K uogyBTfNepj+3YAoiPRamXcT/vjgFBcY+nxbh+u9TncJV+s4TYMw9HZ5mdsSJbFnah9w g0/w== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=G2TIR0JKW3AUEfBp3wU9kDNUm0MEA6uLbr8OejDgb/w=; b=Ah/e2gKYv3V3i7awYXmQJKcIanM+DakJN6g8T4pbVFko8zzv6Q7EWLvztk9J3DR6+P kTl+1ud4eFD7qa3YNq//qfd0CyA5kGx14kICBUdfEJFRqvB35NC7ePSpWKsknQpugJTs W1lOeisL//qruX9d/Ea9rTtJkDanzJHIlT+jna7Bc+hKFtomKXf8PrIvydsVPTY51nSs ZqDl4IwJCDcd3sgJoF0qwyOBN3ZGylI17Fu0Ahrja5ndeCNJEBxSHrvCkGli2FsKVsvO BDA9ewQK7gqk2FSRyWK0/pFwzeFv3jPoi1jK+jQhK+pHiDAoHdsaUPNK02x0I4HhUr3k yyRA== |
| X-Gm-Message-State | AG10YOTSQny0DePuxWfhtU9RRsHOVYtPQBgd2BCnB05Gh3Dm9QBdW/OFWZs02gHSxiZDXA== |
| X-Received | by 10.194.250.39 with SMTP id yz7mr37442417wjc.92.1455020583687; Tue, 09 Feb 2016 04:23:03 -0800 (PST) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.23 (2014-03-12) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 24 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Borislav Petkov <bp@alien8.de>, "Luck, Tony" <tony.luck@intel.com>, Thomas Gleixner <tglx@linutronix.de>, Andy Lutomirski <luto@amacapital.net>, Peter Zijlstra <peterz@infradead.org>, Steven Rostedt <rostedt@goodmis.org>, Brian Gerst <brgerst@gmail.com>, lkml <linux-kernel@vger.kernel.org> |
| X-Original-Date | Tue, 9 Feb 2016 13:23:00 +0100 |
| X-Original-Message-ID | <20160209122300.GA4878@gmail.com> |
| X-Original-References | <20160201115601.GD6438@pd.tnic> <3908561D78D1C84285E8C5FCA982C28F39FCE0E4@ORSMSX114.amr.corp.intel.com> <20160202094147.GA3778@pd.tnic> <20160203104823.GA21257@gmail.com> <20160203110052.GA20682@pd.tnic> <20160204152235.GB5343@pd.tnic> <56B7DAC2.2030506@zytor.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1330195 |
Show key headers only | View raw
* H. Peter Anvin <hpa@zytor.com> wrote: > On 02/04/16 07:22, Borislav Petkov wrote: > > Here's v2 with the stuff we talked about, implemented. I've added > > 'control_regs' file too so that you can do: > > > > $ cat /sys/kernel/debug/x86/archinfo/control_regs > > CR4: [-|-|SMEP|OSXSAVE|-|-|-|-|OSXMMEXCPT|OSFXSR|-|PGE|MCE|PAE|PSE|-|-|-|-]: 0x1406f0 > > > > for example. Yeah, only CR4 right now. > > > > Off the top of my head, we would need "msrs" which dumps EFER and a > > bunch of other interesting MSRs along with the names of the set bits. > > Is there a reason why all this parsing has to be done in kernel space? Ease of use I suspect, no need to locate some separate utility. Also, no need to define an ABI for the information displayed - which keeps things simpler. Since it's a kernel module there's no real bloat argument. Thanks, Ingo
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC] Dump interesting arch/platform info Borislav Petkov <bp@alien8.de> - 2016-02-01 13:00 +0100
RE: [RFC] Dump interesting arch/platform info "Luck, Tony" <tony.luck@intel.com> - 2016-02-02 00:30 +0100
Re: [RFC] Dump interesting arch/platform info Borislav Petkov <bp@alien8.de> - 2016-02-02 10:50 +0100
Re: [RFC] Dump interesting arch/platform info Ingo Molnar <mingo@kernel.org> - 2016-02-03 11:50 +0100
Re: [RFC] Dump interesting arch/platform info Borislav Petkov <bp@alien8.de> - 2016-02-03 12:10 +0100
[PATCH -v2] x86: Add an archinfo dumper module Borislav Petkov <bp@alien8.de> - 2016-02-04 16:30 +0100
Re: [PATCH -v2] x86: Add an archinfo dumper module "Luck, Tony" <tony.luck@intel.com> - 2016-02-04 20:10 +0100
Re: [PATCH -v2] x86: Add an archinfo dumper module Borislav Petkov <bp@alien8.de> - 2016-02-07 12:00 +0100
Re: [PATCH -v2] x86: Add an archinfo dumper module "Luck, Tony" <tony.luck@intel.com> - 2016-02-09 20:20 +0100
Re: [PATCH -v2] x86: Add an archinfo dumper module Borislav Petkov <bp@alien8.de> - 2016-02-09 20:50 +0100
Re: [PATCH -v2] x86: Add an archinfo dumper module "Luck, Tony" <tony.luck@intel.com> - 2016-02-05 21:00 +0100
RE: [PATCH -v2] x86: Add an archinfo dumper module "Luck, Tony" <tony.luck@intel.com> - 2016-02-05 23:30 +0100
Re: [PATCH -v2] x86: Add an archinfo dumper module "H. Peter Anvin" <hpa@zytor.com> - 2016-02-08 01:10 +0100
Re: [PATCH -v2] x86: Add an archinfo dumper module Boris Petkov <bp@alien8.de> - 2016-02-08 09:00 +0100
Re: [PATCH -v2] x86: Add an archinfo dumper module Ingo Molnar <mingo@kernel.org> - 2016-02-09 13:30 +0100
Re: [PATCH -v2] x86: Add an archinfo dumper module Borislav Petkov <bp@alien8.de> - 2016-02-09 15:10 +0100
csiph-web