From nobody Sun Feb 8 05:42:07 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 978BD185B6D for ; Wed, 8 Jan 2025 22:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736374749; cv=none; b=AfiMPfI0U0zYupUJ3h+erFWOKgO7IddeNrQzdt0CLw9oPgu7MMXboJh8z0O5M1CRP2qEltVZ+NfsEHNRMx0/4JV4CRAHLhzLttv0AMQ8ifQCnN6PYSeQYP1Ohgdf3qCE7w1rEujPz/qzrfYMYJitUtNazykbG7R4U9WgZ81SeW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736374749; c=relaxed/simple; bh=phACauq1v3hEjr/whoNrfBaMAXZ5IEpdP8W3kvIwcto=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F0uJHLx3pHYI0s1kt6R/6B5K9SbqOwVJvA0OBNBjL7YYwEg/fAtxULipVPKUrbR4v4UgdrcsuXClucY2PK837MEMFHm0sQsqPEKT+iXqONix0oaBwmXfnuoxw0a7rcYszAHi+liGtF+eDQWLpynXAdxPSdXMaq5qjoVaAFn0OCc= 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=Z+kSUjbv; arc=none smtp.client-ip=170.10.129.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="Z+kSUjbv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736374742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=lr2vEGvJPhwM/57d6UxiwnvqAgndkMoO9FG/My+PjHo=; b=Z+kSUjbvL/i35vJKXNp8qQZAptKped6Kx/9PB2x6KVLuVUrBX8Cx/3nZY365p4gouHfdp3 8Mos9ufp80i4a75atgGRSHMSo06gtJBUDxVHGSpMX8kn67IuFiWNcIB4QBIjD0xPeFPkKH oViRZ4K1ymIcgdDXzDqeyd659KM2Gk0= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-433-dCCMid2NMw-jwhmavVgoOQ-1; Wed, 08 Jan 2025 17:19:01 -0500 X-MC-Unique: dCCMid2NMw-jwhmavVgoOQ-1 X-Mimecast-MFC-AGG-ID: dCCMid2NMw-jwhmavVgoOQ Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-6d889fd0fd6so5080426d6.0 for ; Wed, 08 Jan 2025 14:19:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736374740; x=1736979540; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lr2vEGvJPhwM/57d6UxiwnvqAgndkMoO9FG/My+PjHo=; b=G9iR9KIJkovSIEyNqHo18JCm1ygCczy6Svs3SewstsVA2ZuoBJpNxM13VA79Af0pv5 8yKznrpeEZSYBJgSecGr97WXFsCMNN1HviX/HZ9jeHB7XjE6RjHspy+AttCVKjUdHmfH oDHVw6+DlK11InLycJrxYFXFcaJQhdclauqMzQql8DuapFQH27PfZQbcLOkrtADAttjY 9tuGR8cSh0CB79XFGtbJsQ1HAJWz/USZOvbVoL1kFLxGaE/Vp13y8j/caE9yDthbxSwq nulbpG/cGddeDeVegJktASRK0tAfbphcsCF/Qa45d/dGGbdSanKNuBIhVxhWc4jve+/E uoQA== X-Forwarded-Encrypted: i=1; AJvYcCX7KBVgXx8zpBPHWMK9OCwbDAlXOl/iROdjZ4vV/RdUSIdB5j01Omm5G8AGW0UUI2BOqWGYQXCA6jzQV7U=@vger.kernel.org X-Gm-Message-State: AOJu0Yyn4fz0wwbuxuSP3Wy/h1zKWGxmoXwlc4A1mMRQ++erGD9yFvoT KCpFIdlHFGTEfm3K13LC/5MYaQP0d7GkZfB/wcgFji/ShtLsZj9oqOPfdKYW+LmBXk/D8Ka7Q3Y h+UedqF+t8P/iKgRiOKJlWBAFUIrPmtCeUhPM72qNx+uHrQIFKQmlPxbxyfh/XA== X-Gm-Gg: ASbGncuQT/dIOIO7WD55ydIpYdEwsfBRTIGsTLOuSJMG8RWyfoVHOm4ZV9H8BwVjVqb zWC3l+jP83DGmO8k+SWL482mvcbym4DqN79UrGbjgzIhuAwOFgX74RMcHYbK/kHUGsBhBAzs/Vn 1r3YfAkjM1DvJ6gBvxqa17LczG+iEktPNamTaIXCPEzFwbi5NkaT7hUs0aS1Y9lThg5OR33bysP BRqYWSX4lz1Mv5yElCFlHMMNFoIhbMQ8oqfATPSE3eqF618ykJCWEkS9PBG+K3cwAKU X-Received: by 2002:a05:6214:3b81:b0:6d8:f50e:8036 with SMTP id 6a1803df08f44-6dfa3ad8f91mr14857676d6.20.1736374740603; Wed, 08 Jan 2025 14:19:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFI09maFb66bz4gMBmOqgkOZvNDTwOWLKjXlY1eeQqpK8j4Otaa+xIOjUmtyUjsJT3xJrrmYw== X-Received: by 2002:a05:6214:3b81:b0:6d8:f50e:8036 with SMTP id 6a1803df08f44-6dfa3ad8f91mr14857486d6.20.1736374740277; Wed, 08 Jan 2025 14:19:00 -0800 (PST) Received: from thinkpad2024.redhat.com ([71.217.66.209]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6dd182070ecsm193833376d6.124.2025.01.08.14.18.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2025 14:18:59 -0800 (PST) From: "John B. Wyatt IV" To: Shuah Khan , Thomas Renninger Cc: "John B. Wyatt IV" , linux-pm@vger.kernel.org, Aboorva Devarajan , Shuah Khan , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, John Kacur , "John B. Wyatt IV" Subject: [PATCH] pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG Date: Wed, 8 Jan 2025 17:18:44 -0500 Message-ID: <20250108221852.30771-1-jwyatt@redhat.com> X-Mailer: git-send-email 2.47.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" "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@lin= ux.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/t= ools/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 in= t 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, --=20 2.47.1