lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANCcNXdVRi7JnvXhFAzMPZwUm9qFJYCNNj4f_YrsMzuShyhjdg@mail.gmail.com>
Date:   Mon, 19 Mar 2018 23:11:00 +0000
From:   Puthikorn Voravootivat <puthik@...gle.com>
To:     harry.pan@...el.com
Cc:     linux-kernel@...r.kernel.org, gs0622@...il.com, tglx@...utronix.de,
        mingo@...hat.com, hpa@...or.com, x86@...nel.org,
        kan.liang@...ux.intel.com, vincent.weaver@...ne.edu,
        peterz@...radead.org, colin.king@...onical.com,
        bleung@...omium.org, Benson Leung <bleung@...gle.com>
Subject: Re: [PATCH 2/3] perf/x86/intel: Add Cannon Lake support of RAPL profiling

On Mon, Mar 19, 2018 at 4:05 PM Benson Leung <bleung@...gle.com> wrote:

> Hi Harry,

> On 03/09/2018 04:15 AM, Harry Pan wrote:
> > This patch enables RAPL counters (energy consumption counters)
> > support for Cannon Lake processors.
> >
> > ESU and power domains refer to Intel Software Developers' Manual,
> > Vol. 4, Order No. 335592.
> >
> > Usage example:
> >
> > $ perf list
> > $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10
> >
> > Signed-off-by: Harry Pan <harry.pan@...el.com>

> Reviewed-by: Benson Leung <bleung@...omium.org>

Tested-by: Puthikorn Voravootivat <puthik@...omium.org>


> > ---
> >  arch/x86/events/intel/rapl.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c
> > index a2efb490f743..32f3e9423e99 100644
> > --- a/arch/x86/events/intel/rapl.c
> > +++ b/arch/x86/events/intel/rapl.c
> > @@ -774,6 +774,8 @@ static const struct x86_cpu_id rapl_cpu_match[]
__initconst = {
> >       X86_RAPL_MODEL_MATCH(INTEL_FAM6_KABYLAKE_MOBILE,  skl_rapl_init),
> >       X86_RAPL_MODEL_MATCH(INTEL_FAM6_KABYLAKE_DESKTOP, skl_rapl_init),
> >
> > +     X86_RAPL_MODEL_MATCH(INTEL_FAM6_CANNONLAKE_MOBILE,
  skl_rapl_init),
> > +
> >       X86_RAPL_MODEL_MATCH(INTEL_FAM6_ATOM_GOLDMONT, hsw_rapl_init),
> >       X86_RAPL_MODEL_MATCH(INTEL_FAM6_ATOM_DENVERTON, hsw_rapl_init),
> >
> >

> Thanks,
> --
> Benson Leung
> Staff Software Engineer
> Chrome OS Kernel
> Google Inc.
> bleung@...gle.com
> Chromium OS Project
> bleung@...omium.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ