Skip to content

Commit 0196432

Browse files
benjarobinthom24
authored andcommitted
rtla: add rtla package
This provides the rtla tool, which is useful to analyze the real-time properties of a Linux system. Signed-off-by: Benjamin Robin <benjamin.robin@bootlin.com> Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
1 parent f32b122 commit 0196432

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

utils/rtla/Makefile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
#
3+
# Copyright (C) 2026 Bootlin
4+
5+
include $(TOPDIR)/rules.mk
6+
include $(INCLUDE_DIR)/kernel.mk
7+
8+
PKG_NAME:=rtla
9+
PKG_VERSION:=$(LINUX_VERSION)
10+
11+
PKG_MAINTAINER:=Benjamin Robin <benjamin.robin@bootlin.com>
12+
PKG_LICENSE:=GPL-2.0-only
13+
14+
include $(INCLUDE_DIR)/package.mk
15+
16+
define Package/rtla
17+
SECTION:=utils
18+
CATEGORY:=Utilities
19+
TITLE:=Real-Time Linux Analysis tools
20+
URL:=https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
21+
DEPENDS:= @USE_GLIBC @(KERNEL_OSNOISE_TRACER||KERNEL_TIMERLAT_TRACER) +libtracefs +libtraceevent
22+
endef
23+
24+
MAKE_FLAGS = \
25+
CROSS_COMPILE="$(TARGET_CROSS)" \
26+
CC="$(TARGET_CC)" \
27+
CFLAGS='$(TARGET_CFLAGS) -DVERSION="\"$(PKG_VERSION)\"" -I$(STAGING_DIR)/usr/include/traceevent' \
28+
LDFLAGS="$(TARGET_LDFLAGS)"
29+
30+
define Build/Compile
31+
$(MAKE) -C $(LINUX_DIR)/tools/tracing/rtla $(MAKE_FLAGS)
32+
endef
33+
34+
define Package/rtla/install
35+
$(INSTALL_DIR) $(1)/usr/bin
36+
$(INSTALL_BIN) $(LINUX_DIR)/tools/tracing/rtla/rtla $(1)/usr/bin
37+
endef
38+
39+
$(eval $(call BuildPackage,rtla))

0 commit comments

Comments
 (0)