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

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


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Mon, 30 Sep 2019 20:44:10 +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=WW6whxbPb5s13sJFT05k4+TFEEy89bRxp1LoA1ZKpOE=; b=VMvLKR9wMdcJr2COTCVGBSTi2yjT3aFHqvstYoH1R/Zkh15NqSBoG1g6/ka83ePXxLxESczM2mi2h+XKvjh4qZNIxzbKDr+Z7DXKSwIh63AmAp9pyFontUVmc4t1wYxBD8+WPWhiqE0sluflJkdR8ob8nl1ccIMwXLKGPMvH1OOmYrc2P/hRXMTCj5q1dsTek0EHJO/yegOCuS/t2OI+QCyJQ4BDFCz+leSzD4UCfLAKNmOU9aYIHe6gTqFPxqLo8J6zbbVOkNizjcl7FZqC48RUYWIOIahaaaxbNuNdM4fjYpny91DUuSTF93/fAltfkCmFk6jppBisuE4wQds77w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MK5Yz4IMVC9low00cVmNXF+pIWpI27y6FR8mO7TGuqma3IDdMEDMwnc6i+DWtqFhX6NQ4w5Wr6DPTX5ijF1mCZB+YBCeXFLWnBScvBfcxqgriTaVfBbMU2GVDYf9sQYma7aAPxODpuEKeTBquqS/dZTNRl3eo2Wn8PjkIFRBbk0ud9XIfdk8us3nHZY8X3y/QJ7Zwo1cm0c8/Ilac3U7yHxYb+rA9m2ReLlzFybB7AsmKPOb0HuGdU6Femzn2HrhMEzQ1MNvEkLmUfFIP18Jbk9rvyP64p7y4ForVigCrwCeODwnyy5JWxENhjpwH/eujb/SWrtzUj471nQNfrZyNQ==
  • 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:28 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVd8/PmsbV0MEIeUWBtOdAbXi1Zw==
  • Thread-topic: [UNIKRAFT/LIBBENCHMARK PATCH 3/5] patches: Fix build issues

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 ...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..726069d
--- /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"
+ 
++export int getloadavg(double loadavg[], int nelem);
++export 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®.