mirror of
https://github.com/openwrt/openwrt.git
synced 2025-04-22 18:12:00 +00:00
ChangeLog: bd47bd5 libtraceevent: 1.8.4 fe0bc49 libtraceevent: Print function pointer address when TEP_EVENT_FL_PRINTRAW is specified f2224d5 libtraceevent: Have sizeof() parsing handle u8/s8 through u64/s64 5f570de libtraceevent: Print arrays like Linux does 645a883 libtraceevent: 1.8.3 d4c1fb4 libtraceevent: Add meson build targets to Makefile c3dc220 libtraceevent: Fix a double free in process_op() 021da90 libtraceevent: Do not return a local stack pointer in get_field_str() 340e2e6 libtraceevent: Have unit test fail when any tests fail c84155f libtraceevent: prevent a memory leak in tep_plugin_add_option() 03551eb libtraceevent: Prevent a memory leak in process_fields() 34ece90 libtraceevent: Close shared object in the error path of load_plugin() 8802f0f libtraceevent: Avoid a simple asprintf case 76a0eb8 libtraceevent: Fix event-parse memory leak in process_cond 5bc98bd libtraceevent: Have single quotes represent characters ec8e0cc libtraceevent: Fix tests running on big endian arch 60ed6c3 libtraceevent: build: Various fixes for the Meson build of libtraceevent 0351241 libtraceevent utest: Include libgen.h for basename() with musl Link: https://github.com/openwrt/openwrt/pull/18349 Signed-off-by: Nick Hainke <vincent@systemli.org>
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libtraceevent
|
|
PKG_VERSION:=1.8.4
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/
|
|
PKG_HASH:=dc456d4d2bf4b4cd4d0c737d3374a8093f9e5ca18c1d7fc2279a4bf41e613121
|
|
|
|
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libtraceevent
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Linux kernel trace event library
|
|
URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
|
|
ABI_VERSION:=0
|
|
endef
|
|
|
|
define Package/libtraceevent/description
|
|
The libtraceevent library provides APIs to access kernel tracepoint events, located in
|
|
the tracefs file system under the events directory.
|
|
endef
|
|
|
|
define Package/libtraceevent-extra
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Extra plugins for libtraceevent
|
|
DEPENDS:=
|
|
endef
|
|
|
|
CONFIGURE_ARGS+= \
|
|
--enable-shared \
|
|
--enable-static
|
|
|
|
PLUGINS_DIR := $(PKG_BUILD_DIR)/plugins
|
|
PLUGINS_MAIN := function hrtimer mac80211 sched_switch
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_BUILD_DIR)/include/traceevent $(1)/usr/include/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_BUILD_DIR)/lib/libtraceevent.{a,so*} $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_BUILD_DIR)/libtraceevent.pc $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libtraceevent/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/traceevent/plugins
|
|
$(CP) $(PKG_BUILD_DIR)/lib/libtraceevent.so.* $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(patsubst %,$(PLUGINS_DIR)/plugin_%.so,$(PLUGINS_MAIN)) \
|
|
$(1)/usr/lib/traceevent/plugins
|
|
endef
|
|
|
|
define Package/libtraceevent-extra/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/traceevent/plugins
|
|
$(CP) \
|
|
$$(patsubst %,$(PLUGINS_DIR)/plugin_%.so, \
|
|
$$(filter-out $(PLUGINS_MAIN), \
|
|
$$(patsubst $(PLUGINS_DIR)/plugin_%.so,%, \
|
|
$$(wildcard $(PLUGINS_DIR)/plugin_*.so)))) \
|
|
$(1)/usr/lib/traceevent/plugins
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libtraceevent))
|
|
$(eval $(call BuildPackage,libtraceevent-extra))
|