From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D288C8C5 for ; Mon, 13 Jan 2025 14:04:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736777058; cv=none; b=Zm8elG4m6GT2F9PTO5IDySRtVLC/3k1yr9rDGlP8GFGD0zwzybmbh5vmYpXXYLzr+X24NI6b4z0tIVyd9F4Xv1CA55eVwRyJHxVv+kHVzZbaNbdaxfHaDLsZZRs3ceou+OGpuEaVUkDeO0y9aJR73aN1wPmhNVKwkfFKLhWCXjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736777058; c=relaxed/simple; bh=y7i9yK6uqPSjht73r/iR+aYc5L6hwOUIN5gJlfHlwqI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Nn8CzavLjvWl6bQ3eC74vrrR4qOQ/6KLLMH2NAccGh6yAXGKbGvHz88SZnQquUi/90R4uXl6UXXBqUscAdbn53Ry8bFPmS0TBf17M1zuK4yhuE8d3pbzW8mV6u+2FmChpW3b0bJrUeFoh0cs+CkU+vzrcH8WFDYG3adv3iZKiSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=cQKzZZiP; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cQKzZZiP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736777055; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1W27EkcgH33VK3/pO6eap5hK2Jc5r+DsZDrPLLdoo6o=; b=cQKzZZiP8N/rP4zNQhqtWpIeyCP4r7fIk6UGOKz5901vP+4ulqj3d55ixzsuBvdhiIWZu1 RII8rsaOQq/heYnHo6GUqa31fcfkNJSJM4+sBmgjx8gdi29+1xuEqDZdh2sMt/O7NYM+qf KH3b9Go60MneQFA+O8FqI7HCR+GXZ1U= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-650-dku0r_8eMNWXpOmhxWHIaw-1; Mon, 13 Jan 2025 09:04:14 -0500 X-MC-Unique: dku0r_8eMNWXpOmhxWHIaw-1 X-Mimecast-MFC-AGG-ID: dku0r_8eMNWXpOmhxWHIaw Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6d8fe8a0371so69754096d6.1 for ; Mon, 13 Jan 2025 06:04:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736777053; x=1737381853; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1W27EkcgH33VK3/pO6eap5hK2Jc5r+DsZDrPLLdoo6o=; b=TIL7XEfnRYP3VfxWzwlKQJxiehfOzhYhCdcVXb6his8hkJg4WNNYpY3MBeSMDyTzOM 2l46tTTBkM5dFph1b/ebcT6FDvzidAUEuzMOc+1zpGYvK1mheokNZOHUj0Aqa8OJh2WG d8IpzRJmrp0KKUolbPaq+Ijfx7yIod7YF4bA8MLzAwDAWCayUl+fASnxQy5doCkgJkaY kAURD0IPdtp8F/nRO/zEWyDsYa/0QPhLoPBPAprjda52CmbgTU64XfwoiLjecVfI1hSD 0jk1jtfzkBvVEpbrXW514nQq51xNzYNM8WnRw5iAushZoKlTuJ2sylGvLtAQxPSGk/GJ CwRg== X-Forwarded-Encrypted: i=1; AJvYcCXjOsO9kqvHZefivXe2AEF3akVLMztCMUajNk7giHy3Cm5rpiUqBUAphwp+Pb4qDa0fCHZSu+k8yGLTQpk=@vger.kernel.org X-Gm-Message-State: AOJu0YwhYNe4yW9QL6jvKGqolPcV8enEMOXVeG5DH9H0dvYTx3rJckki snOrvMjf5wLh9qDiHuJhBFbkontEHJpRK5k236j54fS+Zjea4Ce6oLWn3OFPevTapyWBE3SOFja zKw5kTBYZYeL8Cov5Q5BBq8JQ7EqooEkRsUA6fhuDsZ3NOIzdhObJXx79w0z8YQ== X-Gm-Gg: ASbGncsqh7zx4/WcdTVhzJuXTWQRLVPdT1TO/2MVpljz4jbwS929XoAFbxBkq9akoi8 j7Yr7aXzoatjnSzZwOQMuddVdaGAMcBxKN+cT6nZOuFZDnqmzPnTAAztBUZ4tfF4rpZlVRbfEk8 fdhwE1m2wk7dVU/HmtmzU6xQNjqa6kF0PJsLshojktVOWnSQlmRjNUzAXUDUJ3Ma3XFICI9W0aw rZWybTXX7LKCfJbVPz+3xV6s3wjftHL2mF4Fk4eHQj17OiexUOwvA== X-Received: by 2002:a05:6214:29ca:b0:6d8:876e:ef41 with SMTP id 6a1803df08f44-6df9b1f6ae4mr350865826d6.21.1736777053400; Mon, 13 Jan 2025 06:04:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk+PtcnPdhiObeNF+7uD32TiJaqFknjxqb1eImvlFc8X0ikjLskW2bSnvDlGKEvNI9cxmwfg== X-Received: by 2002:a05:6214:29ca:b0:6d8:876e:ef41 with SMTP id 6a1803df08f44-6df9b1f6ae4mr350865306d6.21.1736777053087; Mon, 13 Jan 2025 06:04:13 -0800 (PST) Received: from thinkpad2024 ([71.217.66.209]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6dfade73b8fsm41528816d6.72.2025.01.13.06.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2025 06:04:12 -0800 (PST) Date: Mon, 13 Jan 2025 09:04:10 -0500 From: "John B. Wyatt IV" To: Shuah Khan , Thomas Renninger Cc: linux-pm@vger.kernel.org, Aboorva Devarajan , Shuah Khan , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, John Kacur , "John B. Wyatt IV" Subject: Re: [PATCH] pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG Message-ID: References: <20250108221852.30771-1-jwyatt@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250108221852.30771-1-jwyatt@redhat.com> 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" > Signed-off-by: "John B. Wyatt IV" > --- > 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