From: "Kubaj, Piotr" <piotr.kubaj@intel.com>
To: "andrea.cervesato@suse.com" <andrea.cervesato@suse.com>
Cc: "Wysocki, Rafael J" <rafael.j.wysocki@intel.com>,
"Ossowski, Tomasz" <tomasz.ossowski@intel.com>,
"Dubel, Helena Anna" <helena.anna.dubel@intel.com>,
"Niestepski, Daniel" <daniel.niestepski@intel.com>,
"ltp@lists.linux.it" <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH v7] high_freq_hwp_cap_cppc.c: new test
Date: Thu, 30 Apr 2026 11:10:04 +0000 [thread overview]
Message-ID: <4aba20ea6369b6ad2423a67b7af2c4b7a68c04f0.camel@intel.com> (raw)
In-Reply-To: <69f1b8ea.050a0220.2c172.5acd@mx.google.com>
2026-04-29 (水) の 07:53 +0000 に Andrea Cervesato さんは書きました:
> Hi Piotr,
>
> I commented the wrong patch. Was v6, sorry. Let me complete the
> review
> here.
>
> > +static void run(void)
> > +{
> > + bool status = true;
> > +
> > + for (int i = 0; i < nproc; i++) {
> > + int online = 1;
> > + char path[PATH_MAX];
>
> This can stay out of the loop. `snprintf()` adds a string terminator
> so there's no issue with this.
Fixed.
>
> > + unsigned long long msr_highest_perf = 0,
> > sysfs_highest_perf = 0;
> > +
> > + snprintf(path, sizeof(path),
> > "/sys/devices/system/cpu/cpu%d/online", i);
> > + if (i)
>
> I think I missed a part here. Did you double check if `i == 0`
> creates
> an issue while using SAFE_FILE_SCANF ? Please verify and eventually
> remove this check.
Yes, it's necessary. "online" is not available for cpu0, I think it's
assumed to be always online.
>
> > + SAFE_FILE_SCANF(path, "%d", &online);
>
> Regards,
> --
> Andrea Cervesato
> SUSE QE Automation Engineer Linux
> andrea.cervesato@suse.com
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2026-04-30 11:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-20 9:44 [LTP] [PATCH v7] high_freq_hwp_cap_cppc.c: new test Piotr Kubaj
2026-04-20 10:53 ` [LTP] " linuxtestproject.agent
2026-04-29 7:53 ` [LTP] [PATCH v7] " Andrea Cervesato via ltp
2026-04-30 11:10 ` Kubaj, Piotr [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=4aba20ea6369b6ad2423a67b7af2c4b7a68c04f0.camel@intel.com \
--to=piotr.kubaj@intel.com \
--cc=andrea.cervesato@suse.com \
--cc=daniel.niestepski@intel.com \
--cc=helena.anna.dubel@intel.com \
--cc=ltp@lists.linux.it \
--cc=rafael.j.wysocki@intel.com \
--cc=tomasz.ossowski@intel.com \
/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