From: tglozar@redhat.com
To: rostedt@goodmis.org
Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org,
jkacur@redhat.com, jwyatt@redhat.com,
Tomas Glozar <tglozar@redhat.com>
Subject: [PATCH v4 1/6] tools/build: Add libcpupower dependency detection
Date: Tue, 15 Oct 2024 15:35:47 +0200 [thread overview]
Message-ID: <20241015133552.3043040-2-tglozar@redhat.com> (raw)
In-Reply-To: <20241015133552.3043040-1-tglozar@redhat.com>
From: Tomas Glozar <tglozar@redhat.com>
Add the ability to detect the presence of libcpupower on a system to
the Makefiles in tools/build.
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
---
tools/build/Makefile.feature | 1 +
tools/build/feature/Makefile | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature
index ffd117135094..2ebfb826dcea 100644
--- a/tools/build/Makefile.feature
+++ b/tools/build/Makefile.feature
@@ -53,6 +53,7 @@ FEATURE_TESTS_BASIC := \
libslang-include-subdir \
libtraceevent \
libtracefs \
+ libcpupower \
libcrypto \
libunwind \
pthread-attr-setaffinity-np \
diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile
index 5938cf799dc6..6ef3e1ca583e 100644
--- a/tools/build/feature/Makefile
+++ b/tools/build/feature/Makefile
@@ -38,6 +38,7 @@ FILES= \
test-libslang.bin \
test-libslang-include-subdir.bin \
test-libtraceevent.bin \
+ test-libcpupower.bin \
test-libtracefs.bin \
test-libcrypto.bin \
test-libunwind.bin \
@@ -245,6 +246,9 @@ $(OUTPUT)test-libslang-include-subdir.bin:
$(OUTPUT)test-libtraceevent.bin:
$(BUILD) -ltraceevent
+$(OUTPUT)test-libcpupower.bin:
+ $(BUILD) -lcpupower
+
$(OUTPUT)test-libtracefs.bin:
$(BUILD) $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null) -ltracefs
--
2.47.0
next prev parent reply other threads:[~2024-10-15 13:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 13:35 [PATCH v4 0/6] rtla: Support idle state disabling via libcpupower in timerlat tglozar
2024-10-15 13:35 ` tglozar [this message]
2024-10-15 13:35 ` [PATCH v4 2/6] rtla: Add optional dependency on libcpupower tglozar
2024-10-15 13:35 ` [PATCH v4 3/6] rtla/utils: Add idle state disabling via libcpupower tglozar
2024-10-15 13:35 ` [PATCH v4 4/6] rtla/timerlat: Add --deepest-idle-state for top tglozar
2024-10-15 13:35 ` [PATCH v4 5/6] rtla/timerlat: Add --deepest-idle-state for hist tglozar
2024-10-15 13:35 ` [PATCH v4 6/6] rtla: Documentation: Mention --deepest-idle-state tglozar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241015133552.3043040-2-tglozar@redhat.com \
--to=tglozar@redhat.com \
--cc=jkacur@redhat.com \
--cc=jwyatt@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®