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

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


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Sun, 13 Oct 2019 13:41:43 +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=1IgTxqv4qKRjNKqw8PM5emknhIQ31GYnfJgJHyAXQ9w=; b=EUtXXkY2X5jzdU4+/ODIsPUJuMnvt4pAy2O1a+Vgh2g7MN3TWOi8uaOytyO0R2ATIAzdSAxfoqFL6JuDDSJPsF+sE0W3OosY3X4VHG1kcECZM/4yGVC2ELNetqQHlGMYnXzPQy4q6IL9idA9AxD0X0ZVIzgiGKY9EEImf2OSrdrV5L8U+/PPn6SMrudh2Bk5mNFZ4BZ8/ARdvDH5JCPukZp/Kh1TLrHFf1H9ejYR9c4Z0g0ho2iOWhCFg1g8916fzZCVwQXA/0GIYK2AovZZfPFMemypIQi42FErItLvK+Ku2XbZaoCWcwYUVYZvl3argolgQjMqhtS5KcMHKVT9wg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xc9B+QLmd2KssXjvYo4LuMCEzaajBMbA1mGh99diXzTm4O1PTJCLCXQNzVY4fPclT6oyuwtp9jvT4m1j4jb36tydejCAlE5PFkWJQ2FBgB7H0nNFFtyJE13mDsTWZzYXQrThgOJ8d3qIss1NkSKtiOcDR91FrVaEoUVbr54F+1xvMPmdW0dD/lfOrRUWfdVlX7R/Ne+kXn8owv5ZzdxpxQK+1lhAcp31uA0WAxhF++aA5vEK3YOHZkpxqs8D9rinwc5OG8Xm7Xeu6FTZAramVguRyZUSb/4miaqB1SIy+mwAfGRU0BCSYNKzQ2Y85KjuGeURfFtqMuvzOhMJYpulfQ==
  • 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: Sun, 13 Oct 2019 13:42:01 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVgcvy4jaX4xIRskG7byq2YgfimA==
  • Thread-topic: [UNIKRAFT/LIBBENCHMARK PATCH v2 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..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®.