* [PATCH] tools: build: use correct lib name for libtracefs feature detection
@ 2024-06-17 18:38 Daniel Wagner
2024-06-18 8:26 ` Daniel Bristot de Oliveira
2024-06-21 10:01 ` Daniel Bristot de Oliveira
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Wagner @ 2024-06-17 18:38 UTC (permalink / raw)
To: Daniel Bristot de Oliveira, Steven Rostedt, linux-trace-kernel,
linux-kernel
Cc: Daniel Wagner
Use libtracefs as package name to lookup the CFLAGS for libtracefs. This
makes it possible to use the distro specific path as include path for
the header file.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
Our downstream packaging stop working. After a bit of didding I found out that
the libtracefs feature detection is not completely right.
https://build.opensuse.org/build/benchmark/SLE_15_SP5/x86_64/rtla/_log
---
tools/build/feature/Makefile | 2 +-
tools/build/feature/test-libtracefs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile
index ed54cef450f5..489cbed7e82a 100644
--- a/tools/build/feature/Makefile
+++ b/tools/build/feature/Makefile
@@ -213,7 +213,7 @@ endif
$(BUILD) -ltraceevent
$(OUTPUT)test-libtracefs.bin:
- $(BUILD) $(shell $(PKG_CONFIG) --cflags libtraceevent 2>/dev/null) -ltracefs
+ $(BUILD) $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null) -ltracefs
$(OUTPUT)test-libcrypto.bin:
$(BUILD) -lcrypto
diff --git a/tools/build/feature/test-libtracefs.c b/tools/build/feature/test-libtracefs.c
index 8eff16c0c10b..29a757a7d848 100644
--- a/tools/build/feature/test-libtracefs.c
+++ b/tools/build/feature/test-libtracefs.c
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
-#include <tracefs/tracefs.h>
+#include <tracefs.h>
int main(void)
{
---
base-commit: 0bbac3facb5d6cc0171c45c9873a2dc96bea9680
change-id: 20240617-rtla-build-83020baf9277
Best regards,
--
Daniel Wagner <dwagner@suse.de>
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] tools: build: use correct lib name for libtracefs feature detection
2024-06-17 18:38 [PATCH] tools: build: use correct lib name for libtracefs feature detection Daniel Wagner
@ 2024-06-18 8:26 ` Daniel Bristot de Oliveira
2024-06-21 10:01 ` Daniel Bristot de Oliveira
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Bristot de Oliveira @ 2024-06-18 8:26 UTC (permalink / raw)
To: Daniel Wagner, Arnaldo Carvalho de Melo
Cc: Steven Rostedt, linux-trace-kernel, linux-kernel
Adding Arnaldo
On 6/17/24 20:38, Daniel Wagner wrote:
> Use libtracefs as package name to lookup the CFLAGS for libtracefs. This
> makes it possible to use the distro specific path as include path for
> the header file.
>
> Signed-off-by: Daniel Wagner <dwagner@suse.de>
> ---
> Our downstream packaging stop working. After a bit of didding I found out that
> the libtracefs feature detection is not completely right.
>
> https://build.opensuse.org/build/benchmark/SLE_15_SP5/x86_64/rtla/_log
> ---
> tools/build/feature/Makefile | 2 +-
> tools/build/feature/test-libtracefs.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile
> index ed54cef450f5..489cbed7e82a 100644
> --- a/tools/build/feature/Makefile
> +++ b/tools/build/feature/Makefile
> @@ -213,7 +213,7 @@ endif
> $(BUILD) -ltraceevent
>
> $(OUTPUT)test-libtracefs.bin:
> - $(BUILD) $(shell $(PKG_CONFIG) --cflags libtraceevent 2>/dev/null) -ltracefs
> + $(BUILD) $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null) -ltracefs
>
> $(OUTPUT)test-libcrypto.bin:
> $(BUILD) -lcrypto
> diff --git a/tools/build/feature/test-libtracefs.c b/tools/build/feature/test-libtracefs.c
> index 8eff16c0c10b..29a757a7d848 100644
> --- a/tools/build/feature/test-libtracefs.c
> +++ b/tools/build/feature/test-libtracefs.c
> @@ -1,5 +1,5 @@
> // SPDX-License-Identifier: GPL-2.0
> -#include <tracefs/tracefs.h>
> +#include <tracefs.h>
>
> int main(void)
> {
>
> ---
> base-commit: 0bbac3facb5d6cc0171c45c9873a2dc96bea9680
> change-id: 20240617-rtla-build-83020baf9277
>
> Best regards,
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] tools: build: use correct lib name for libtracefs feature detection
2024-06-17 18:38 [PATCH] tools: build: use correct lib name for libtracefs feature detection Daniel Wagner
2024-06-18 8:26 ` Daniel Bristot de Oliveira
@ 2024-06-21 10:01 ` Daniel Bristot de Oliveira
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Bristot de Oliveira @ 2024-06-21 10:01 UTC (permalink / raw)
To: Daniel Wagner, Steven Rostedt, Arnaldo Carvalho de Melo
Cc: linux-trace-kernel, linux-kernel, Ian Rogers, Jiri Olsa
On 6/17/24 20:38, Daniel Wagner wrote:
> Use libtracefs as package name to lookup the CFLAGS for libtracefs. This
> makes it possible to use the distro specific path as include path for
> the header file.
So, I added it to my review branch and tested it. It is fine!
But, as the most important user of this build system is perf, I think
it is safer to ask them to review, test, and integrate it.
I Cc'ing some perf people here, but it might be worth sending a v2 with
all perf crew in Cc.
It is also worth checking which Fixes to use between:
b758a61b391f perf tools: Enable libtracefs dynamic linking
a87834d19aa2 perf build: Fix broken feature check for libtracefs due to external lib changes
To avoid breaking older perf versions.
For rtla,
Tested-by: Daniel Bristot de Oliveira <bristot@kernel.org>
-- Daniel
> Signed-off-by: Daniel Wagner <dwagner@suse.de>
> ---
> Our downstream packaging stop working. After a bit of didding I found out that
> the libtracefs feature detection is not completely right.
>
> https://build.opensuse.org/build/benchmark/SLE_15_SP5/x86_64/rtla/_log
> ---
> tools/build/feature/Makefile | 2 +-
> tools/build/feature/test-libtracefs.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile
> index ed54cef450f5..489cbed7e82a 100644
> --- a/tools/build/feature/Makefile
> +++ b/tools/build/feature/Makefile
> @@ -213,7 +213,7 @@ endif
> $(BUILD) -ltraceevent
>
> $(OUTPUT)test-libtracefs.bin:
> - $(BUILD) $(shell $(PKG_CONFIG) --cflags libtraceevent 2>/dev/null) -ltracefs
> + $(BUILD) $(shell $(PKG_CONFIG) --cflags libtracefs 2>/dev/null) -ltracefs
>
> $(OUTPUT)test-libcrypto.bin:
> $(BUILD) -lcrypto
> diff --git a/tools/build/feature/test-libtracefs.c b/tools/build/feature/test-libtracefs.c
> index 8eff16c0c10b..29a757a7d848 100644
> --- a/tools/build/feature/test-libtracefs.c
> +++ b/tools/build/feature/test-libtracefs.c
> @@ -1,5 +1,5 @@
> // SPDX-License-Identifier: GPL-2.0
> -#include <tracefs/tracefs.h>
> +#include <tracefs.h>
>
> int main(void)
> {
>
> ---
> base-commit: 0bbac3facb5d6cc0171c45c9873a2dc96bea9680
> change-id: 20240617-rtla-build-83020baf9277
>
> Best regards,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-21 10:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-17 18:38 [PATCH] tools: build: use correct lib name for libtracefs feature detection Daniel Wagner
2024-06-18 8:26 ` Daniel Bristot de Oliveira
2024-06-21 10:01 ` Daniel Bristot de Oliveira
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).