[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/LIBBENCHMARK PATCH 2/5] Add Makefile.uk


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Mon, 30 Sep 2019 20:44:09 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nyKbT7LjEmUwBh4w+v5tF709ieCbg1sT9dmkX1L75Q0=; b=EJaZyOWlQFX/Q6I4nRysCioifAtdXkJ6Lbjbw7p51DmlGyqxcUSGFi2Qba4mMGD4HdPkrcY1sMw5/WVUcga9TmMgZDU/lhwUOMTNRhNYAIurur25YVcLybppBW/aXfCRDIHwbNxve+WyeBo2FmFqV8/uAYB5Si85JATmaL2WBkpE+8SImclFdmLhFrer/K2qsD/xTJFDj6lwFr8L39RCYufD4+e3dgFLVKlXKqjamoOEpAlu+GJar0h6YEDxqw4UIq96MSKka4XFBqds9WT3ZYrg8MnRVCQ2RkmyW1/Qs3MfMWdUNhZGGFAdV231qsmUjPQzoTd6LZV6y/KNGqF7bA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GQElXrvuGL92sg1vPyhEhutf2HzCqxA2kOhq7P6hFVssnOMd2TWpEPxGFAmXfUlZ5OY4usGQRJq5O072WbnXTIF6jtzGypxqXQYGOagZfv/H4MaD7vRehNHC0aZLyjEmfvLrk9thzWGDpiqMdce0CTAckhTupaQB1x60PV4iIctapzj3L3lL50Oa7wgTNMhT0xSqi0gsirTYjzASUKrLLy+3b/AOvqF+/Qk/5SrrZkd5aYMefWR2CVgD46wyLjncZO43QUjcPeaiThV2o7VNqjk60U9F63zEtSvj3bUkX8YhdTDZlq9z8Y3jb13Hu7QFTPV4fKMYkcZnoF48SEA+oA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 30 Sep 2019 20:44:23 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVd8/P7NKUMgyZZEm/QRrwd5HH9w==
  • Thread-topic: [UNIKRAFT/LIBBENCHMARK PATCH 2/5] Add Makefile.uk

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 Makefile.uk | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 110 insertions(+)
 create mode 100644 Makefile.uk

diff --git a/Makefile.uk b/Makefile.uk
new file mode 100644
index 0000000..27e04e9
--- /dev/null
+++ b/Makefile.uk
@@ -0,0 +1,110 @@
+#  SPDX-License-Identifier: BSD-3-Clause
+#
+#  benchmark Makefile.uk
+#
+#  Authors: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
+#
+#  Copyright (c) 2019, University Politehnica of Bucharest. All rights 
reserved.
+#
+#  Redistribution and use in source and binary forms, with or without
+#  modification, are permitted provided that the following conditions
+#  are met:
+#
+#  1. Redistributions of source code must retain the above copyright
+#     notice, this list of conditions and the following disclaimer.
+#  2. Redistributions in binary form must reproduce the above copyright
+#     notice, this list of conditions and the following disclaimer in the
+#     documentation and/or other materials provided with the distribution.
+#  3. Neither the name of the copyright holder nor the names of its
+#     contributors may be used to endorse or promote products derived from
+#     this software without specific prior written permission.
+#
+#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+#  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+#  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+#  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+#  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+#  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+#  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+#  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+#  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+#  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+#  POSSIBILITY OF SUCH DAMAGE.
+#
+#  THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY.
+#
+
+################################################################################
+# Library registration
+################################################################################
+$(eval $(call addlib_s,libbenchmark,$(CONFIG_LIBBENCHMARK)))
+
+################################################################################
+# Sources
+################################################################################
+LIBBENCHMARK_VERSION=1.5.0
+LIBBENCHMARK_URL=https://github.com/google/benchmark/archive/v$(LIBBENCHMARK_VERSION).tar.gz
+LIBBENCHMARK_PATCHDIR=$(LIBBENCHMARK_BASE)/patches
+$(eval $(call fetch,libbenchmark,$(LIBBENCHMARK_URL)))
+$(eval $(call 
patch,libbenchmark,$(LIBBENCHMARK_PATCHDIR),benchmark-$(LIBBENCHMARK_VERSION)))
+
+################################################################################
+# Helpers
+################################################################################
+LIBBENCHMARK_SUBDIR=benchmark-$(LIBBENCHMARK_VERSION)
+LIBBENCHMARK_SRC = $(LIBBENCHMARK_ORIGIN)/$(LIBBENCHMARK_SUBDIR)
+
+################################################################################
+# Library includes
+################################################################################
+LIBBENCHMARK_GLOBAL_INCLUDES-y += -I$(LIBBENCHMARK_SRC)/src
+LIBBENCHMARK_GLOBAL_INCLUDES-y += -I$(LIBBENCHMARK_SRC)/include
+CINCLUDES-y += $(LIBBENCHMARK_GLOBAL_INCLUDES-y)
+CXXINCLUDES-y += $(LIBBENCHMARK_GLOBAL_INCLUDES-y)
+
+################################################################################
+# Common flags
+################################################################################
+# Suppressed flags
+SUPPRESS_FLAGS += -Wno-unused-parameter \
+       -Wno-unused-variable -Wno-unused-value -Wno-unused-function \
+       -Wno-missing-field-initializers -Wno-implicit-fallthrough \
+       -Wno-cast-function-type -Wno-stringop-truncation \
+       -Wno-char-subscripts -Wno-sign-compare
+
+LIBBENCHMARK_CFLAGS-y  += $(SUPPRESS_FLAGS) -Wno-pointer-to-int-cast 
-Wno-int-to-pointer-cast
+LIBBENCHMARK_CXXFLAGS-y        += $(SUPPRESS_FLAGS) -Wno-pointer-to-int-cast 
-Wno-int-to-pointer-cast
+
+LIBBENCHMARK_CFLAGS-y  +=  -DBENCHMARK_OS_LINUX -DCLOCK_THREAD_CPUTIME_ID \
+                               -DNDEBUG -DBENCHMARK_HAS_SYSCTL
+
+LIBBENCHMARK_CXXFLAGS-y        +=  -DBENCHMARK_OS_LINUX 
-DCLOCK_THREAD_CPUTIME_ID \
+                               -DNDEBUG -DBENCHMARK_HAS_SYSCTL
+
+################################################################################
+# Glue code
+################################################################################
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_BASE)/glue.cc|unikraft
+
+################################################################################
+# Library sources
+################################################################################
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/complexity.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/benchmark_name.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/console_reporter.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/sleep.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/benchmark_runner.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/benchmark_api_internal.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/csv_reporter.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/statistics.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/json_reporter.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/reporter.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/commandlineflags.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/benchmark_register.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/sysinfo.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/string_util.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/benchmark.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/counter.cc
+#LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/benchmark_main.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/timers.cc
+LIBBENCHMARK_SRCS-y += $(LIBBENCHMARK_SRC)/src/colorprint.cc
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.