Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1330195

Re: [PATCH -v2] x86: Add an archinfo dumper module

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH -v2] x86: Add an archinfo dumper module
Date 2016-02-09 13:30 +0100
Message-ID <r0fAF-3Wc-71@gated-at.bofh.it> (permalink)
References (2 earlier) <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>
Organization linux.* mail to news gateway

Show all headers | 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


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