mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Arcari <darcari@redhat.com>
To: Len Brown <lenb@kernel.org>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] tools/power turbostat: allow turbostat to work when aperf is not available
Date: Mon, 1 Dec 2025 10:13:18 -0500	[thread overview]
Message-ID: <25d6584f-7763-4b6e-92da-e8f1e31ea3df@redhat.com> (raw)
In-Reply-To: <b2ff2579-0d19-4648-9411-c02133c28c1d@redhat.com>



On 11/25/25 4:55 PM, David Arcari wrote:
> 
> 
> On 11/25/25 2:14 PM, Len Brown wrote:
>> It would be helpful if you could describe exactly what environment you
>> are running in.
> 
> It' a VMWARE instance.
> 
> CPUID(0): AuthenticAMD 0xd CPUID levels
> CPUID(1): family:model:stepping 0x17:0:0 (23:0:0) microcode 0x0
> CPUID(0x80000000): max_extended_levels: 0x8000001f
> CPUID(1): SSE3 - - - - TSC MSR - - -
> CPUID(6): No-APERF, No-TURBO, No-DTS, No-PTM, No-HWP, No-HWPnotify, No- 
> HWPwindow, No-HWPepp, No-HWPpkg, No-EPB
> CPUID(7): No-SGX No-Hybrid
> 
> 
>>
>> are there any MSRs?
> 
> I'm not certain, is there something in particular you are looking for?
> 

rdmsr returns zero for MSR_IA32_APERF and MSR_IA32_MPERF.

>> Is APERF available via perf, but not via MSR?
>> etc.

No.  add_msr_perf_counter() returns -1 as the call to open_perf_counter 
returns -1.

> 
> I don't believe that APERF was available via perf. I'll go back and 
> verify when I have a chance.
> 
> -DA
> 
Is there anything else you need?

Thanks,
-DA


  reply	other threads:[~2025-12-01 15:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-18 15:58 [PATCH 0/3] tools/power turbostat: Fix segfault and restart loop issues David Arcari
2025-11-18 15:58 ` [PATCH 1/3] tools/power turbostat: avoid segfault referencing fd_instr_count_percpu David Arcari
2025-11-25 19:11   ` Len Brown
2025-12-01 14:13     ` David Arcari
2025-11-18 15:58 ` [PATCH 2/3] tools/power turbostat: avoid an infinite loop of restarts David Arcari
2025-11-25 19:12   ` Len Brown
2025-11-25 21:50     ` David Arcari
2025-11-27 17:45       ` Len Brown
2025-12-01 12:18         ` David Arcari
2025-11-18 15:58 ` [PATCH 3/3] tools/power turbostat: allow turbostat to work when aperf is not available David Arcari
2025-11-25 19:14   ` Len Brown
2025-11-25 21:55     ` David Arcari
2025-12-01 15:13       ` David Arcari [this message]
2025-12-01 19:53         ` Len Brown
2025-12-01 20:11           ` Len Brown
2025-12-02 12:55             ` David Arcari
2025-12-02 15:02               ` Len Brown

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=25d6584f-7763-4b6e-92da-e8f1e31ea3df@redhat.com \
    --to=darcari@redhat.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®