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

[Minios-devel] [UNIKRAFT/LIBBENCHMARK PATCH v3 3/5] patches: Fix build issues


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Tue, 15 Oct 2019 13:04:33 +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=89G57tgmJVRw8pNRydm0OB7VDOKoE1qboxg0k0yqabM=; b=WwhHSHIZav4FGbvy5ZQVJeoBkxgQ4g6dTV+x85o3N+okHqE8VgjyK5bDEQqLVuOPLx4Os+mOv8YTAUmAtbQBS36yfP3HTKpDBcF5doivImMfcaEITpDst8ywfSLJKueQYQq6F9XOgcndRHYx2dCKpj2kKExsirPCa+TsRoqg6LdoOefAvIkfu0KokGPM2mJdJUDg7l+YS/3EiJaWyH0MrkjYKssAsTVnPgp0JKuDiKRA28aG1teNmZH9TVGOhHzuu6YJhvx0H7ME5hZFRxrAlOunpWAFeXCIqs4eglCDq6weBSGx07q8S3D5VaAZrejpdqs7m7ZHzIZZs8ZB+ANlUQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ASV2emF1wvA0CZaSah1xiAmbC5SdYY8rQY24wJ2rnR2E/GGHDlrrmpQ7rdapV/pn/KHUxTdIo0yfJolVlTgvhDogWRhioO37VkIizk6dl0mrTX1rxwQd3797tZaFka27wCT192MtHY7dhE+C8/C6WpkvW1IK4l8OJ3GjaKGRGRv+p3ydEMNbhi2lyC23WX9xIXGYCLENb6oWmhZLg9zq3pZvV1XNB6HIbuaMC0/SSHMzAO+eYR8oA4aaiVc7+ttdX5bh05saqyJugomFDZyEAF62NnvEppjnmCyafn/xlWqtNq1ovWiu0dw/+X2gdpjXlXEuBTOXem0RBbzfQnaTnA==
  • 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: Tue, 15 Oct 2019 13:04:49 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVg1kWKOw+xMQgikC405MLo7ZgRw==
  • Thread-topic: [UNIKRAFT/LIBBENCHMARK PATCH v3 3/5] patches: Fix build issues

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
Reviewed-by: Felipe Huici <felipe.huici@xxxxxxxxx>
---
 ...and-sysctlbyname-as-external-symbols.patch | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 
patches/0001-Add-getloadavg-and-sysctlbyname-as-external-symbols.patch

diff --git 
a/patches/0001-Add-getloadavg-and-sysctlbyname-as-external-symbols.patch 
b/patches/0001-Add-getloadavg-and-sysctlbyname-as-external-symbols.patch
new file mode 100644
index 0000000..e322e3d
--- /dev/null
+++ b/patches/0001-Add-getloadavg-and-sysctlbyname-as-external-symbols.patch
@@ -0,0 +1,28 @@
+From 0e5193cab3a0120197fe6b1f610e09a9de45fef2 Mon Sep 17 00:00:00 2001
+From: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
+Date: Mon, 30 Sep 2019 01:28:41 +0300
+Subject: [PATCH 1/1] Add getloadavg and sysctlbyname as external symbols
+
+Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
+---
+ src/sysinfo.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/sysinfo.cc b/src/sysinfo.cc
+index 2812647..19938e8 100644
+--- a/src/sysinfo.cc
++++ b/src/sysinfo.cc
+@@ -65,6 +65,10 @@
+ #include "sleep.h"
+ #include "string_util.h"
+ 
++int getloadavg(double loadavg[], int nelem);
++int sysctlbyname(const char *name, void *oldp, size_t *oldlenp,
++      const void *newp, size_t newlen);
++
+ namespace benchmark {
+ namespace {
+ 
+-- 
+2.20.1
+
-- 
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®.