From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>
Cc: Pierre Floury <pierre.floury@gmail.com>,
Giulio Benetti <giulio.benetti@benettiengineering.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 3/4] package/linux-tools: add rtla
Date: Sun, 14 May 2023 16:06:47 +0200 [thread overview]
Message-ID: <20230514140647.GH2582048@scaer> (raw)
In-Reply-To: <20230130144655.1193660-4-maxime.chevallier@bootlin.com>
Maxime, All,
On 2023-01-30 15:46 +0100, Maxime Chevallier via buildroot spake thusly:
> The RealTime Linux Analysis tool includes a set of commands that relies
> on the osnoise and timerlat tracers from the ftrace kernel subsystem,
> allowing to analyze the lantency sources coming from the hardware and
> the kernel itself.
>
> This tool was introduced in v5.17, and relies on libtracefs and
> libtraceevent, although libtraceevent itself is already a dependency for
> libtracefs.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
> ---
[--SNIP--]
> diff --git a/package/linux-tools/linux-tool-rtla.mk.in b/package/linux-tools/linux-tool-rtla.mk.in
> new file mode 100644
> index 0000000000..a736e3b785
> --- /dev/null
> +++ b/package/linux-tools/linux-tool-rtla.mk.in
> @@ -0,0 +1,32 @@
> +################################################################################
> +#
> +# rtla
> +#
> +################################################################################
> +
> +LINUX_TOOLS += rtla
> +
> +RTLA_DEPENDENCIES = host-pkgconf libtracefs
> +RTLA_MAKE_OPTS = $(LINUX_MAKE_FLAGS) \
> + CC=$(TARGET_CC) \
> + LDFLAGS="$(TARGET_LDFLAGS)" \
> + PKG_CONFIG_PATH=$(STAGING_DIR)/usr/lib/pkgconfig
For multi-line assignment, start first assignment on its own line as
well:
RTLA_MAKE_OPTS = \
$(LINUX_MAKE_FLAGS) \
CC=$(TARGET_CC) \
LDFLAGS="$(TARGET_LDFLAGS)" \
PKG_CONFIG_PATH=$(STAGING_DIR)/usr/lib/pkgconfig
> +define RTLA_BUILD_CMDS
> + $(Q)if ! grep install $(LINUX_DIR)/tools/tracing/rtla/Makefile >/dev/null 2>&1 ; then \
> + echo "Your kernel version is too old and does not implement the rtla tool." ; \
> + echo "At least kernel 5.17 must be used." ; \
> + exit 1 ; \
> + fi
> +
> + $(TARGET_MAKE_ENV) \
> + $(MAKE) $(RTLA_MAKE_OPTS) \
> + -C $(LINUX_DIR)/tools/tracing rtla
Similarly to libtraceevent and libtracefs, indent the continuation
lines. Also, keep coommon arguments in the same order for all _CMDS.
I've marked the whole series as Changes Requested. Sorry for the long
delay on providing that review... :-(
Regards,
Yann E. MORIN.
> +endef
> +
> +define RTLA_INSTALL_TARGET_CMDS
> + $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/tracing \
> + $(RTLA_MAKE_OPTS) \
> + DESTDIR=$(TARGET_DIR) \
> + rtla_install
> +endef
> --
> 2.39.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-05-14 14:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 14:46 [Buildroot] [PATCH 0/4] introduce the rtla package and its dependencies Maxime Chevallier via buildroot
2023-01-30 14:46 ` [Buildroot] [PATCH 1/4] package/libtraceevent: new package Maxime Chevallier via buildroot
2023-05-14 14:01 ` Yann E. MORIN
2023-01-30 14:46 ` [Buildroot] [PATCH 2/4] package/libtracefs: " Maxime Chevallier via buildroot
2023-05-14 14:02 ` Yann E. MORIN
2023-01-30 14:46 ` [Buildroot] [PATCH 3/4] package/linux-tools: add rtla Maxime Chevallier via buildroot
2023-05-14 14:06 ` Yann E. MORIN [this message]
2023-01-30 14:46 ` [Buildroot] [PATCH 4/4] package/trace-cmd: bump to 3.1.5 Maxime Chevallier via buildroot
2023-01-30 23:12 ` Giulio Benetti
2023-01-31 15:15 ` Maxime Chevallier via buildroot
2023-01-31 16:05 ` Giulio Benetti
2023-01-31 16:07 ` Giulio Benetti
2023-01-31 16:31 ` Giulio Benetti
2023-01-31 16:44 ` Maxime Chevallier via buildroot
2023-05-14 13:43 ` Yann E. MORIN
[not found] <mailman.18015.1675100677.179342.buildroot@buildroot.org>
2023-02-05 8:22 ` [Buildroot] [PATCH 3/4] package/linux-tools: add rtla Andreas Ziegler
2023-02-06 7:39 ` Maxime Chevallier via buildroot
2023-02-20 10:11 ` Andreas Ziegler
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=20230514140647.GH2582048@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=giulio.benetti@benettiengineering.com \
--cc=maxime.chevallier@bootlin.com \
--cc=pierre.floury@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.