mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-11 17:34:57 +00:00
409052eade
Changelog: 6f6d580 libtraceevent: 1.8.2 b29b192 kbuffer: Update kbuf->next in kbuffer_refresh 4b2286c kbuffer: Always walk the events to calculate timestamp in kbuffer_read_buffer() ce0acec libtraceevent meson: Add libdl dependency to meson 15a0121 libtraceevent Documentation: Fix tep_kbuffer() prototype 85a2078 libtraceevent: 1.8.1 6b21b4c libtraceevent: Add tep_get_sub_buffer_data_size() 8cf5315 libtraceevent: 1.8 7a4d5b2 kbuffer: Add kbuffer_refresh() API 33bad32 kbuffer: Add kbuffer_subbuffer() API f6bdff7 kbuffer: Add kbuffer_dup() 0582118 kbuffer: Add kbuffer_read_buffer() 014ca24 libtraceevent: Fix tep_kbuffer() to have kbuf assign long_size afead9a libtraceevent: Add tep_get_sub_buffer_commit_offset() 3152506 libtraceevent plugins: Parse sched_switch "prev_state" field for state info 4be92aa libtraceevent: Bump meson version to >=0.58.0 9b2e543 libtraceevent: sync state char array with the kernel 5b89385 libtraceevent: Add option to disable documentation a496a39 libtraceevent: Add tep_record_is_event() API 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.2
|
|
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:=919f0c024c7b5059eace52d854d4df00ae7e361a4033e1b4d6fe01d97064a1b9
|
|
|
|
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))
|