Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp499895lqp; Wed, 12 Jun 2024 07:56:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvEmAIY82CRKVotkgIbEhuGmJ/iTKPnSR9k0M/VkUTy80iH3xDXwooJkt79dPudQ6u1u5PLHX4j8TBA9Ezcloxe0/tzQDYBuOAowlXuQ== X-Google-Smtp-Source: AGHT+IHyfBg0fylsBtzQ6CZ9UkjypkEVmPwoyRJTRIbVnkPshYQKc1yuT5JtyNF8Z0pdjxy9Zxy4 X-Received: by 2002:a17:906:f59a:b0:a6f:2eeb:c2b8 with SMTP id a640c23a62f3a-a6f47f52ecdmr173537366b.3.1718204165968; Wed, 12 Jun 2024 07:56:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718204165; cv=pass; d=google.com; s=arc-20160816; b=n8+DAD4un8z4cEhtqj8s7kZAmQLNE1XMAVmXUIGncbPe/qXnbShGPAUleP9YMpZxxk qqP1HoDiK4vg4KYX4SPHmdqxFMM9WjwpQIIRBpKc82gk9krx8IV/0drA0IBrhaQQy1ce lYkwzildwseqBY+idGdcjaoQLTfOiK9/nHp66+be60sKVoTQ5L2ksuTcVN7/i/9cm3yL /d+ZSGqivrKGaBc1TI2OU0LJf8fJEI/CkgaGrkuO2KYFKOb9iyGEoHXvBrrxJDlCb1NF LshlG4Pnj95Aht7Y9r3deDXJJ6LsQtKRPp7y2nNra7D92ABw6G0UGbIFpZNPcy9l/xFT E5Ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=FT0dvVd6Gm7M+CCKrZ6Jo3Pbd+HUvtG3ZBX2N+JLxYw=; fh=K8mLBiK/3C/kmCEXsUOFCCNvyk4rolfkOaiOXXuEDi8=; b=0bwusU7rsEdoiOguE6NJE38wxvT7KQw/pY1+IlLDiylHapQ+wOrlxd69dLWM24R2pf CKiYWJ6wyhPWAVH/PGDypqYzt5fZEYa3O160GRV4we93IPpHjVf0gqwA1z127c7A081l V2sCXMHkF7WgzL/UMV/p2OBgPkXK3zBroElns8FwudYjrEvwgLlepHERuGqRAgWSRGQa rYE05OExLavXdUv0mRZf/QN0s5qeiLw39POFob4W1ypf+OvEC+vmFr7Ie8yv+DKdYpTq sg43PI6Y1Y6bd2YhY1aNqCPadlCmqRB1V8M2ZsGkF7tRpBURKiTg347RndN54d3Q5q4t gEfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="gNk/ahsW"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6effdbd770si463486266b.18.2024.06.12.07.56.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:56:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="gNk/ahsW"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A84221F26EB4 for ; Wed, 12 Jun 2024 14:56:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32D5317F387; Wed, 12 Jun 2024 14:56:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gNk/ahsW" 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 DAEEC17E908 for ; Wed, 12 Jun 2024 14:55:57 +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=1718204159; cv=none; b=KOri6xoOHcIXnd7qLOSwJJSmatLlVR/Gkjh1WvJse3goShpR6PZCyk3/0H8IYv5RnoSQ1UmkzmkzKarA4UMpuaUhqdNiSpEfAiOMfPFM9t77Kwj6bQeNPEW/tE+R8arZLKR4tX4qpkRaHTB3ooFlvxjh9FPy9mZUBfu+/vTj5ko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204159; c=relaxed/simple; bh=xh6MUGu4by/vG11OEeezU9OPPR4k7PK3TGG2UVuMagc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TSBasc8w7XwjCH30DQwWH28aU615LvyJ/i+gLBmGSIrRd4BiX/3yHiySssc8IUaQNIEbea0aDS0aMR4WHvusrDVTjJ1l5vX97drHhFbvjS80RiOudp+gAKzCvit+uGdq5bmUOnMJR6QoEDDvQHQ0Htu+f908MOQXhQzpNvpMZPI= 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=gNk/ahsW; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718204156; 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=FT0dvVd6Gm7M+CCKrZ6Jo3Pbd+HUvtG3ZBX2N+JLxYw=; b=gNk/ahsWL1/f7a4sAi4SA0z2gjDbSCscR4ccmbtZaICHAlpmD20tVVz8mdVPbTvv0UC0zR /6RTiHJtGkeadPECjCF7QTtY16pIWP17hRqkteICDQqtCjXdu/Nl8MZMPntH/DCcDHZrNP 4DSxaYMO3jXA7QEodj9rvYW1b+22Mxc= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-39-ZmrNPSz6OGmdv1ZqI9Knmw-1; Wed, 12 Jun 2024 10:55:52 -0400 X-MC-Unique: ZmrNPSz6OGmdv1ZqI9Knmw-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5F8771955E72; Wed, 12 Jun 2024 14:55:51 +0000 (UTC) Received: from fedora.brq.redhat.com (unknown [10.43.17.68]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 273D31956087; Wed, 12 Jun 2024 14:55:48 +0000 (UTC) From: tglozar@redhat.com To: bristot@kernel.org, rostedt@goodmis.org Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, jkacur@redhat.com, jwyatt@redhat.com, Tomas Glozar Subject: [PATCH 0/5] rtla: Support idle state disabling via libcpupower in timerlat Date: Wed, 12 Jun 2024 16:54:34 +0200 Message-ID: <20240612145439.206990-1-tglozar@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 From: Tomas Glozar rtla-timerlat allows reducing latency on wake up from idle by setting /dev/cpu_dma_latency during the timerlat measurement. This has an effect on the idle states of all CPUs, including those which are not used by timerlat. Add option --disable-idle-states that disables all idle states only on the CPUs where timerlat measurements are running. libcpupower is used to do the disabling of idle states via the corresponding sysfs interface. Tomas Glozar (5): rtla: Add dependency on libcpupower rtla/utils: Add idle state disabling via libcpupower rtla/timerlat: Add --disable-idle-states for top rtla/timerlat: Add --disable-idle-states for hist rtla: Documentation: Add --disable-idle-states .../tools/rtla/common_timerlat_options.rst | 6 + tools/build/Makefile.feature | 1 + tools/build/feature/Makefile | 4 + tools/build/feature/test-libcpupower.c | 8 ++ tools/tracing/rtla/Makefile | 2 + tools/tracing/rtla/Makefile.config | 9 ++ tools/tracing/rtla/README.txt | 4 + tools/tracing/rtla/src/timerlat_hist.c | 35 ++++- tools/tracing/rtla/src/timerlat_top.c | 35 ++++- tools/tracing/rtla/src/utils.c | 133 ++++++++++++++++++ tools/tracing/rtla/src/utils.h | 4 + 11 files changed, 239 insertions(+), 2 deletions(-) create mode 100644 tools/build/feature/test-libcpupower.c -- 2.43.0