Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86A49606A32D for ; Mon, 30 Nov 2026 12:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=MnC/aD7x Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 3C97D3E93B0 for ; Mon, 30 Nov 2026 13:00:01 +0100 (CET) Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 2EC373CE1E7 for ; Mon, 30 Nov 2026 12:59:30 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 2E2661A0099C for ; Mon, 30 Nov 2026 12:59:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796039970; x=1827575970; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/TMo9j/cmMDeMqqfPN0B9RS2ryi2HRng9tYb4gZDMkQ=; b=MnC/aD7xxPkEm5gYfVSufO0ZMchIw0ePLFHw5nas8o0/pF8ur6ze+KLN bLBjBoeEJFNVKlrOVBX6zElljIehUafi/HuNbzPEldJYgbt2FaFHMg+pJ gWqi2GKwBHkNMV0Uuvb4FE+1k54xy9ueRLrklyiJEecqIHEO/ZIW8pO6i 9tWxA3du3rbbqTkZjoi+kUiySqmNsbPfluWwOF8/2zNLQpz80DbSalv+R sG8YV/VXnogWnnKQrHF+O4FyAGyJqwN9DZdP0BkG351cakTq0ogJN1AZ9 K7iMcpPeve5LZeVBSOoUTE69jgIzCdJcKjpHhlCsDrVxFh+WnageLMiZ1 A==; X-CSE-ConnectionGUID: HCS/4EVfRvuxizejcNG7yQ== X-CSE-MsgGUID: HxfSpEAoS6S08WP8aU3P+w== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4757532" X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="4757532" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 03:59:20 -0800 X-CSE-ConnectionGUID: le62MqMFRDW0YOzyzbnspQ== X-CSE-MsgGUID: asCQmEFNSnuJzYzZuoUc3w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="12790158" Received: from pkubaj-mobl.igk.intel.com (HELO intel.com) ([10.237.142.91]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 03:59:18 -0800 From: Piotr Kubaj To: ltp@lists.linux.it Date: Mon, 30 Nov 2026 12:58:58 +0100 Message-ID: <20261130115901.32486-1-piotr.kubaj@intel.com> X-Mailer: git-send-email 2.47.3 X-Archived-By: MIME-Version: 1.0 X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Virus-Scanned: clamav-milter 1.0.9 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v6 0/3] pmc_core: cover the PkgC LTR blocker counters X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Archive: List-Post: List-Help: List-Subscribe: , Cc: helena.anna.dubel@intel.com, tomasz.ossowski@intel.com, rafael.j.wysocki@intel.com, daniel.niestepski@intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ltp" Tests for the pkgc_ltr_blocker_show debugfs file of intel_pmc_core (kernel v7.2). Depends on "lib: add tst_test.needs_debugfs flag" (v5 1/3) with the implied needs_root removed, which is not resent here. Tested on Nova Lake-S running 7.4.0-rc1. v5 -> v6: - Both tests set .needs_root themselves and drop .tags. - New SAFE_SCHED_GETAFFINITY() and SAFE_SCHED_SETAFFINITY(). - pkgc_ltr_blocker_show: strtoull() end pointer check, no global fails counter, count check moved into second_sample_differs(). - ltr_counter: idle phase bounded by .runtime, TCONF in a VM or with a restricted affinity mask, two burst periods of silence required. - Dropped the claim that the tests catch a wrong telemetry offset. Piotr Kubaj (3): pmc_core: add test for pkgc_ltr_blocker_show lib: add SAFE_SCHED_GETAFFINITY() and SAFE_SCHED_SETAFFINITY() pmc_core: add ltr_counter test doc/developers/api_c_tests.rst | 4 + include/tst_safe_sched.h | 83 ++++ runtest/power_management_tests | 2 + testcases/kernel/power_management/.gitignore | 2 + .../kernel/power_management/ltr_counter.c | 363 ++++++++++++++++++ .../power_management/pkgc_ltr_blocker_show.c | 291 ++++++++++++++ 6 files changed, 745 insertions(+) create mode 100644 include/tst_safe_sched.h create mode 100644 testcases/kernel/power_management/ltr_counter.c create mode 100644 testcases/kernel/power_management/pkgc_ltr_blocker_show.c base-commit: 0e2b5ce4294ec8642853688ef47c35eb0e35da08 prerequisite-patch-id: 1d5717365b9b15d4bd8f5e80d78a0498f8ef70c5 -- 2.47.3 --------------------------------------------------------------------- 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