All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: Doug Smythies <dsmythies@telus.net>
Cc: Linux PM list <linux-pm@vger.kernel.org>,
	Len Brown <len.brown@intel.com>,
	Antti Laakso <antti.laakso@linux.intel.com>
Subject: Re: [PATCH v2 09/10] tools/power turbostat: Print cpuidle information
Date: Thu, 13 Aug 2020 17:14:29 -0400	[thread overview]
Message-ID: <CAJvTdKkZR-GT8gTGQqPeH+9kKkME7s4MULx1akAeAE389bNeDg@mail.gmail.com> (raw)
In-Reply-To: <003101d6023f$70975750$51c605f0$@net>

Doug,
I agree with you.

Looks like an oversight -- will fix.

thanks!
-Len

On Tue, Mar 24, 2020 at 8:50 PM Doug Smythies <dsmythies@telus.net> wrote:
>
> Hi Len,
>
> On 2020.03.20 21:55 Len Brown wrote:
>
> > From: Len Brown <len.brown@intel.com>
> >
> > Print cpuidle driver and governor.
> >
> > Originally-by: Antti Laakso <antti.laakso@linux.intel.com>
> > Signed-off-by: Len Brown <len.brown@intel.com>
> > ---
> > tools/power/x86/turbostat/turbostat.c | 26 ++++++++++++++++++++++++++
> > 1 file changed, 26 insertions(+)
> >
> > diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
> > index 77f89371ec5f..05dbe23570d4 100644
> > --- a/tools/power/x86/turbostat/turbostat.c
> > +++ b/tools/power/x86/turbostat/turbostat.c
>
>
> ...
>
> >
> > static void
> > dump_sysfs_cstate_config(void)
> > {
> > @@ -3516,6 +3533,15 @@ dump_sysfs_cstate_config(void)
> >       if (!DO_BIC(BIC_sysfs))
> >               return;
>
> I do not understand why this information needs to be
> a function of the --show options and not solely a
> function of the --quiet option.
>
> My reasoning is that I almost always want all the information
> possible in the start spew of stuff, and if I don't I'll
> use --quiet option. However, I rarely show more than
> about 6 columns at a time resulting in intermittent inclusion
> of this information.
>
> >
> > +     if (access("/sys/devices/system/cpu/cpuidle", R_OK)) {
> > +             fprintf(outf, "cpuidle not loaded\n");
> > +             return;
> > +     }
> > +
> > +     dump_sysfs_file("/sys/devices/system/cpu/cpuidle/current_driver");
> > +     dump_sysfs_file("/sys/devices/system/cpu/cpuidle/current_governor");
> > +     dump_sysfs_file("/sys/devices/system/cpu/cpuidle/current_governor_ro");
> > +
> >       for (state = 0; state < 10; ++state) {
> >
> >               sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/name",
>
>


-- 
Len Brown, Intel Open Source Technology Center

      reply	other threads:[~2020-08-13 21:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <081c54323b27d8d4b40df6b2375b9e1f6846d827.1584766216.git.len.brown@intel.com>
2020-03-21  4:54 ` [PATCH v2 09/10] tools/power turbostat: Print cpuidle information Len Brown
2020-03-25  0:50   ` Doug Smythies
2020-08-13 21:14     ` Len Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJvTdKkZR-GT8gTGQqPeH+9kKkME7s4MULx1akAeAE389bNeDg@mail.gmail.com \
    --to=lenb@kernel.org \
    --cc=antti.laakso@linux.intel.com \
    --cc=dsmythies@telus.net \
    --cc=len.brown@intel.com \
    --cc=linux-pm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.