All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG
@ 2025-01-08 22:18 John B. Wyatt IV
  2025-01-13 14:04 ` John B. Wyatt IV
  0 siblings, 1 reply; 5+ messages in thread
From: John B. Wyatt IV @ 2025-01-08 22:18 UTC (permalink / raw)
  To: Shuah Khan, Thomas Renninger
  Cc: John B. Wyatt IV, linux-pm, Aboorva Devarajan, Shuah Khan,
	Rafael J. Wysocki, linux-kernel, John Kacur, John B. Wyatt IV

"tools/cpupower: display residency value in idle-info" added a new
function to cpuidle.h. This patch adds them to the bindings.

Link: https://lore.kernel.org/linux-pm/20240809083728.266697-1-aboorvad@linux.ibm.com/

Tested by compiling both libcpupower and the headers; running the test
script that does not use the functions as a basic sanity test.

Signed-off-by: "John B. Wyatt IV" <jwyatt@redhat.com>
Signed-off-by: "John B. Wyatt IV" <sageofredondo@gmail.com>
---
 tools/power/cpupower/bindings/python/raw_pylibcpupower.swg | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg b/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
index a8226c79cfea..d82af6fa93c3 100644
--- a/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
+++ b/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
@@ -163,6 +163,8 @@ int cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
 				   unsigned int disable);
 unsigned long cpuidle_state_latency(unsigned int cpu,
 						unsigned int idlestate);
+unsigned long cpuidle_state_residency(unsigned int cpu,
+						unsigned int idlestate);
 unsigned long cpuidle_state_usage(unsigned int cpu,
 					unsigned int idlestate);
 unsigned long long cpuidle_state_time(unsigned int cpu,
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG
  2025-01-08 22:18 [PATCH] pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG John B. Wyatt IV
@ 2025-01-13 14:04 ` John B. Wyatt IV
  2025-01-13 16:36   ` Shuah Khan
  0 siblings, 1 reply; 5+ messages in thread
From: John B. Wyatt IV @ 2025-01-13 14:04 UTC (permalink / raw)
  To: Shuah Khan, Thomas Renninger
  Cc: linux-pm, Aboorva Devarajan, Shuah Khan, Rafael J. Wysocki,
	linux-kernel, John Kacur, John B. Wyatt IV

Hello Shuah,

Did you have a chance to look at this? This is the second header change
that was missing from the bindings.

On Wed, Jan 08, 2025 at 05:18:44PM -0500, John B. Wyatt IV wrote:
> "tools/cpupower: display residency value in idle-info" added a new
> function to cpuidle.h. This patch adds them to the bindings.
> 
> Link: https://lore.kernel.org/linux-pm/20240809083728.266697-1-aboorvad@linux.ibm.com/
> 
> Tested by compiling both libcpupower and the headers; running the test
> script that does not use the functions as a basic sanity test.
> 
> Signed-off-by: "John B. Wyatt IV" <jwyatt@redhat.com>
> Signed-off-by: "John B. Wyatt IV" <sageofredondo@gmail.com>
> ---
>  tools/power/cpupower/bindings/python/raw_pylibcpupower.swg | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg b/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
> index a8226c79cfea..d82af6fa93c3 100644
> --- a/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
> +++ b/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
> @@ -163,6 +163,8 @@ int cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
>  				   unsigned int disable);
>  unsigned long cpuidle_state_latency(unsigned int cpu,
>  						unsigned int idlestate);
> +unsigned long cpuidle_state_residency(unsigned int cpu,
> +						unsigned int idlestate);
>  unsigned long cpuidle_state_usage(unsigned int cpu,
>  					unsigned int idlestate);
>  unsigned long long cpuidle_state_time(unsigned int cpu,
> -- 
> 2.47.1
> 

-- 
Sincerely,
John Wyatt
Software Engineer, Core Kernel
Red Hat


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG
  2025-01-13 14:04 ` John B. Wyatt IV
@ 2025-01-13 16:36   ` Shuah Khan
  2025-01-13 23:17     ` Shuah Khan
  0 siblings, 1 reply; 5+ messages in thread
From: Shuah Khan @ 2025-01-13 16:36 UTC (permalink / raw)
  To: John B. Wyatt IV, Thomas Renninger
  Cc: linux-pm, Aboorva Devarajan, Shuah Khan, Rafael J. Wysocki,
	linux-kernel, John Kacur, John B. Wyatt IV, Shuah Khan

On 1/13/25 07:04, John B. Wyatt IV wrote:
> Hello Shuah,
> 
> Did you have a chance to look at this? This is the second header change
> that was missing from the bindings.
> 
> On Wed, Jan 08, 2025 at 05:18:44PM -0500, John B. Wyatt IV wrote:
>> "tools/cpupower: display residency value in idle-info" added a new
>> function to cpuidle.h. This patch adds them to the bindings.
>>
>> Link: https://lore.kernel.org/linux-pm/20240809083728.266697-1-aboorvad@linux.ibm.com/
>>
>> Tested by compiling both libcpupower and the headers; running the test
>> script that does not use the functions as a basic sanity test.
>>
>> Signed-off-by: "John B. Wyatt IV" <jwyatt@redhat.com>
>> Signed-off-by: "John B. Wyatt IV" <sageofredondo@gmail.com>
>> ---

Yes I did. Looks good to me. I am waiting for Rafael to pull my PR
to apply the patch.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG
  2025-01-13 16:36   ` Shuah Khan
@ 2025-01-13 23:17     ` Shuah Khan
  2025-01-14 20:39       ` John B. Wyatt IV
  0 siblings, 1 reply; 5+ messages in thread
From: Shuah Khan @ 2025-01-13 23:17 UTC (permalink / raw)
  To: John B. Wyatt IV, Thomas Renninger
  Cc: linux-pm, Aboorva Devarajan, Shuah Khan, Rafael J. Wysocki,
	linux-kernel, John Kacur, John B. Wyatt IV, Shuah Khan

On 1/13/25 09:36, Shuah Khan wrote:
> On 1/13/25 07:04, John B. Wyatt IV wrote:
>> Hello Shuah,
>>
>> Did you have a chance to look at this? This is the second header change
>> that was missing from the bindings.
>>
>> On Wed, Jan 08, 2025 at 05:18:44PM -0500, John B. Wyatt IV wrote:
>>> "tools/cpupower: display residency value in idle-info" added a new
>>> function to cpuidle.h. This patch adds them to the bindings.
>>>
>>> Link: https://lore.kernel.org/linux-pm/20240809083728.266697-1-aboorvad@linux.ibm.com/
>>>
>>> Tested by compiling both libcpupower and the headers; running the test
>>> script that does not use the functions as a basic sanity test.
>>>
>>> Signed-off-by: "John B. Wyatt IV" <jwyatt@redhat.com>
>>> Signed-off-by: "John B. Wyatt IV" <sageofredondo@gmail.com>
>>> ---
> 
> Yes I did. Looks good to me. I am waiting for Rafael to pull my PR
> to apply the patch.
> 
> thanks,
> -- Shuah

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux.git/log/?h=cpupower

Will send another pr to Rafael later this week.

thanks,
-- Shuah


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG
  2025-01-13 23:17     ` Shuah Khan
@ 2025-01-14 20:39       ` John B. Wyatt IV
  0 siblings, 0 replies; 5+ messages in thread
From: John B. Wyatt IV @ 2025-01-14 20:39 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Thomas Renninger, linux-pm, Aboorva Devarajan, Shuah Khan,
	Rafael J. Wysocki, linux-kernel, John Kacur, John B. Wyatt IV

On Mon, Jan 13, 2025 at 04:17:32PM -0700, Shuah Khan wrote:
> On 1/13/25 09:36, Shuah Khan wrote:
> 
> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux.git/log/?h=cpupower
> 
> Will send another pr to Rafael later this week.
> 
> thanks,
> -- Shuah
> 

Thank you; I appreciate it.

-- 
Sincerely,
John Wyatt
Software Engineer, Core Kernel
Red Hat


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-01-14 20:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08 22:18 [PATCH] pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG John B. Wyatt IV
2025-01-13 14:04 ` John B. Wyatt IV
2025-01-13 16:36   ` Shuah Khan
2025-01-13 23:17     ` Shuah Khan
2025-01-14 20:39       ` John B. Wyatt IV

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.