package/hawktracer: new package
HawkTracer is a highly portable, low-overhead, configurable profiling tool
--- DEVELOPERS | 1 + package/Config.in | 1 + package/hawktracer/Config.in | 20 ++++++++++++ package/hawktracer/hawktracer.hash | 3 ++ package/hawktracer/hawktracer.mk | 51 ++++++++++++++++++++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 package/hawktracer/Config.in create mode 100644 package/hawktracer/hawktracer.hash create mode 100644 package/hawktracer/hawktracer.mk
DEVELOPERS +1 -0
@@ -1024,6 +1024,7 @@ F: board/freescale/imx8mmevk/ F: configs/freescale_imx8mmevk_defconfig F: package/cctz/ F: package/fdk-aac/ +F: package/hawktracer/ F: package/httping/ F: package/iozone/ F: package/leptonica/
package/Config.in +1 -0
@@ -1594,6 +1594,7 @@ endmenu menu "Logging" source "package/glog/Config.in" + source "package/hawktracer/Config.in" source "package/liblog4c-localtime/Config.in" source "package/liblogging/Config.in" source "package/log4cplus/Config.in"
package/hawktracer/Config.in new file +20 -0
@@ -0,0 +1,20 @@ +config BR2_PACKAGE_HAWKTRACER + bool "hawktracer" + help + HawkTracer is a highly portable, low-overhead, configurable + profiling tool built in Amazon Video for getting performance + metrics from low-end devices. + + https://www.hawktracer.org/ + +if BR2_PACKAGE_HAWKTRACER + +config BR2_PACKAGE_HAWKTRACER_TCP_LISTENER + bool "Enable hawktracer TCP listener" + default y + depends on BR2_TOOLCHAIN_HAS_THREADS + +comment "Hawktracer TCP listener feature needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS + +endif
package/hawktracer/hawktracer.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Computed locally +sha256 68b5c95fd98aaf255b51c1dbf676950701cbcb67398f4266f083e91396345f75 hawktracer-4beb43d110b7718a1a07fc7ce69550dfd102a0e7.tar.gz +sha256 2f377333e64ad08ad3afec8ed6c2c96ced2a6d7d67443eb2784a931bb7b3fd59 LICENSE
package/hawktracer/hawktracer.mk new file +51 -0
51 lines not on this page · raw message
Signature · 1 line
2.25.1
Hi Gilles,
Am So., 17. Mai 2020 um 14:38 Uhr schrieb Gilles Talis <[email protected]>:
Quoted 45 lines
HawkTracer is a highly portable, low-overhead, configurable profiling tool
Signed-off-by Gilles Talis <[email protected]>--- DEVELOPERS | 1 + package/Config.in | 1 + package/hawktracer/Config.in | 20 ++++++++++++ package/hawktracer/hawktracer.hash | 3 ++ package/hawktracer/hawktracer.mk | 51 ++++++++++++++++++++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 package/hawktracer/Config.in create mode 100644 package/hawktracer/hawktracer.hash create mode 100644 package/hawktracer/hawktracer.mkDEVELOPERS +1
-0@@ -1024,6 +1024,7 @@ F: board/freescale/imx8mmevk/ F: configs/freescale_imx8mmevk_defconfig F: package/cctz/ F: package/fdk-aac/ +F: package/hawktracer/ F: package/httping/ F: package/iozone/ F: package/leptonica/package/Config.in +1
-0@@ -1594,6 +1594,7 @@ endmenu menu "Logging" source "package/glog/Config.in" + source "package/hawktracer/Config.in" source "package/liblog4c-localtime/Config.in" source "package/liblogging/Config.in" source "package/log4cplus/Config.in"package/hawktracer/Config.in new file +0
-0
package/hawktracer/Config.in line 2
Quoted 2 lines
package/hawktracer/Config.in new file +2
-0@@ -0,0 +1,20 @@ +config BR2_PACKAGE_HAWKTRACER + bool "hawktracer"
I tried to build but it seems a compiler with C++ support is required.
-- 8< --
CMake [email protected]:3 (project):
The CMAKE_CXX_COMPILER:
/home/hthiery/sources/mainline/buildroot/output/host/bin/aarch64-buildroot-linux-uclibc-g++
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
-- 8< --
Quoted 74 lines
package/hawktracer/Config.in new file +18
-0+ help + HawkTracer is a highly portable, low-overhead, configurable + profiling tool built in Amazon Video for getting performance + metrics from low-end devices. + + https://www.hawktracer.org/ + +if BR2_PACKAGE_HAWKTRACER + +config BR2_PACKAGE_HAWKTRACER_TCP_LISTENER + bool "Enable hawktracer TCP listener" + default y + depends on BR2_TOOLCHAIN_HAS_THREADS + +comment "Hawktracer TCP listener feature needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS + +endifpackage/hawktracer/hawktracer.hash new file +3
-0@@ -0,0 +1,3 @@ +# Computed locally +sha256 68b5c95fd98aaf255b51c1dbf676950701cbcb67398f4266f083e91396345f75 hawktracer-4beb43d110b7718a1a07fc7ce69550dfd102a0e7.tar.gz +sha256 2f377333e64ad08ad3afec8ed6c2c96ced2a6d7d67443eb2784a931bb7b3fd59 LICENSEpackage/hawktracer/hawktracer.mk new file +41
-0@@ -0,0 +1,51 @@ +################################################################################ +# +# hawktracer +# +################################################################################ + +HAWKTRACER_VERSION = 4beb43d110b7718a1a07fc7ce69550dfd102a0e7 +HAWKTRACER_SITE = $(call github,amzn,hawktracer,$(HAWKTRACER_VERSION)) +HAWKTRACER_LICENSE = MIT +HAWKTRACER_LICENSE_FILES = LICENSE +HAWKTRACER_INSTALL_STAGING = YES + +HAWKTRACER_CONF_OPTS = \ + -DENABLE_ASAN=OFF \ + -DENABLE_TESTS=OFF \ + -DENABLE_CODE_COVERAGE=OFF \ + -DENABLE_BENCHMARKS=OFF \ + -DENABLE_DOC=OFF \ + -DENABLE_PYTHON_BINDINGS=OFF \ + -DENABLE_MAINTAINER_MODE=OFF \ + -DENABLE_RELEASE_MODE=OFF \ + -DENABLE_CLIENT=OFF \ + -DENABLE_EXAMPLES=OFF + +ifeq ($(BR2_STATIC_LIBS),y) +HAWKTRACER_CONF_OPTS += -DBUILD_STATIC_LIB=ON +else +HAWKTRACER_CONF_OPTS += -DBUILD_STATIC_LIB=OFF +endif + +ifeq ($(BR2_PACKAGE_HAWKTRACER_TCP_LISTENER),y) +HAWKTRACER_CONF_OPTS += -DENABLE_TCP_LISTENER=ON +else +HAWKTRACER_CONF_OPTS += -DENABLE_TCP_LISTENER=OFF +endif + +# Enable C++ compilation if supported by toolchain (requires C++11) +ifeq ($(BR2_INSTALL_LIBSTDCPP)$(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8),yy) +HAWKTRACER_CONF_OPTS += -DFORCE_C_COMPILATION=OFF +else +HAWKTRACER_CONF_OPTS += -DFORCE_C_COMPILATION=ON
package/hawktracer/hawktracer.mk line 51
Quoted 10 lines
package/hawktracer/hawktracer.mk new file +10
-0+endif + +# Enable threads support if supported by toolchain +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +HAWKTRACER_CONF_OPTS += -DENABLE_THREADS=ON +else +HAWKTRACER_CONF_OPTS += -DENABLE_THREADS=OFF +endif + +$(eval $(cmake-package))
Thank you
Signature · 1 line
Heiko
Hello Heiko,
Le mar. 15 sept. 2020 ? 23:31, Heiko Thiery <[email protected]> a ?crit :
Quoted 154 lines
Hi Gilles,
Am So., 17. Mai 2020 um 14:38 Uhr schrieb Gilles Talis <[email protected]>:
Quoted 45 lines
HawkTracer is a highly portable, low-overhead, configurable profiling tool
Signed-off-by Gilles Talis <[email protected]>--- DEVELOPERS | 1 + package/Config.in | 1 + package/hawktracer/Config.in | 20 ++++++++++++ package/hawktracer/hawktracer.hash | 3 ++ package/hawktracer/hawktracer.mk | 51 ++++++++++++++++++++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 package/hawktracer/Config.in create mode 100644 package/hawktracer/hawktracer.hash create mode 100644 package/hawktracer/hawktracer.mkDEVELOPERS +1
-0@@ -1024,6 +1024,7 @@ F: board/freescale/imx8mmevk/ F: configs/freescale_imx8mmevk_defconfig F: package/cctz/ F: package/fdk-aac/ +F: package/hawktracer/ F: package/httping/ F: package/iozone/ F: package/leptonica/package/Config.in +1
-0@@ -1594,6 +1594,7 @@ endmenu menu "Logging" source "package/glog/Config.in" + source "package/hawktracer/Config.in" source "package/liblog4c-localtime/Config.in" source "package/liblogging/Config.in" source "package/log4cplus/Config.in"package/hawktracer/Config.in new file +0
-0package/hawktracer/Config.in line 2
Quoted 2 lines
package/hawktracer/Config.in new file +2
-0@@ -0,0 +1,20 @@ +config BR2_PACKAGE_HAWKTRACER + bool "hawktracer"I tried to build but it seems a compiler with C++ support is required.
-- 8< --
CMake Error at CMakeLists.txt:3 (project):
TheCMAKE_CXX_COMPILER:
/home/hthiery/sources/mainline/buildroot/output/host/bin/aarch64-buildroot-linux-uclibc-g++is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry
CMAKE_CXX_COMPILERto the full path to the compiler, or to the compiler name if it is in the PATH.
-- 8< --Quoted 74 lines
package/hawktracer/Config.in new file +18
-0+ help + HawkTracer is a highly portable, low-overhead, configurable + profiling tool built in Amazon Video for getting performance + metrics from low-end devices. + + https://www.hawktracer.org/ + +if BR2_PACKAGE_HAWKTRACER + +config BR2_PACKAGE_HAWKTRACER_TCP_LISTENER + bool "Enable hawktracer TCP listener" + default y + depends on BR2_TOOLCHAIN_HAS_THREADS + +comment "Hawktracer TCP listener feature needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS + +endifpackage/hawktracer/hawktracer.hash new file +3
-0@@ -0,0 +1,3 @@ +# Computed locally +sha256 68b5c95fd98aaf255b51c1dbf676950701cbcb67398f4266f083e91396345f75 hawktracer-4beb43d110b7718a1a07fc7ce69550dfd102a0e7.tar.gz +sha256 2f377333e64ad08ad3afec8ed6c2c96ced2a6d7d67443eb2784a931bb7b3fd59 LICENSEpackage/hawktracer/hawktracer.mk new file +41
-0@@ -0,0 +1,51 @@ +################################################################################ +# +# hawktracer +# +################################################################################ + +HAWKTRACER_VERSION = 4beb43d110b7718a1a07fc7ce69550dfd102a0e7 +HAWKTRACER_SITE = $(call github,amzn,hawktracer,$(HAWKTRACER_VERSION)) +HAWKTRACER_LICENSE = MIT +HAWKTRACER_LICENSE_FILES = LICENSE +HAWKTRACER_INSTALL_STAGING = YES + +HAWKTRACER_CONF_OPTS = \ + -DENABLE_ASAN=OFF \ + -DENABLE_TESTS=OFF \ + -DENABLE_CODE_COVERAGE=OFF \ + -DENABLE_BENCHMARKS=OFF \ + -DENABLE_DOC=OFF \ + -DENABLE_PYTHON_BINDINGS=OFF \ + -DENABLE_MAINTAINER_MODE=OFF \ + -DENABLE_RELEASE_MODE=OFF \ + -DENABLE_CLIENT=OFF \ + -DENABLE_EXAMPLES=OFF + +ifeq ($(BR2_STATIC_LIBS),y) +HAWKTRACER_CONF_OPTS += -DBUILD_STATIC_LIB=ON +else +HAWKTRACER_CONF_OPTS += -DBUILD_STATIC_LIB=OFF +endif + +ifeq ($(BR2_PACKAGE_HAWKTRACER_TCP_LISTENER),y) +HAWKTRACER_CONF_OPTS += -DENABLE_TCP_LISTENER=ON +else +HAWKTRACER_CONF_OPTS += -DENABLE_TCP_LISTENER=OFF +endif + +# Enable C++ compilation if supported by toolchain (requires C++11) +ifeq ($(BR2_INSTALL_LIBSTDCPP)$(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8),yy) +HAWKTRACER_CONF_OPTS += -DFORCE_C_COMPILATION=OFF +else +HAWKTRACER_CONF_OPTS += -DFORCE_C_COMPILATION=ONpackage/hawktracer/hawktracer.mk line 51
Quoted 10 lines
package/hawktracer/hawktracer.mk new file +10
-0+endif + +# Enable threads support if supported by toolchain +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +HAWKTRACER_CONF_OPTS += -DENABLE_THREADS=ON +else +HAWKTRACER_CONF_OPTS += -DENABLE_THREADS=OFF +endif + +$(eval $(cmake-package))Thank you
Quoted 2 lines
--
Heiko
Thanks for running the test. I will take a look and send a v2.
cheers
Gilles.