From patchwork Mon Jun 17 05:24:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 166966 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2403973ilk; Sun, 16 Jun 2019 22:24:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUpjJDW5OQLl4AGXzyLul6fkHmzHeoz3Q0Apxw4Pd9BiA14PiRAZEcUaZGk+Pb6doxLzhj X-Received: by 2002:a17:90a:2190:: with SMTP id q16mr23543095pjc.23.1560749095587; Sun, 16 Jun 2019 22:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560749095; cv=none; d=google.com; s=arc-20160816; b=PYSh3du2nO5uiAVLVTgSoHaZIWf9NVT3A9TkeUfITS0lvOhnfY7EL5VCOBbv4upj/k +bfNxWVKUCcdON7x1a8+re+kwuXVUE7/h8qniAox0oiv0mywe3Lea1fdFF/buUh4fMY8 d944csMFcWjIGlj1kVuExGXr5v1IZkRk6sk0m4GtNeSp6eIcvYy9KqW6NRjmkc6iyxPq Tz70KrSSWdaFswhmndu5i8WsJi/Sxjk1P1yfHk5G2EQUT/t3rXNNBS+ooDOcJpkc8p+w ZK+ysgIaTCYm4Bckk9OWR08nysGFt8/2xl3dPbbjt/rRQAWklyRdBwcwAZqVip8iz7QF zZWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=FeCjNTW8ZLiWsOU4FCknZVXhmrwEbIleQafr9kQsUpI=; b=ilTofzKCV0UwC2g+1eToLPtHGBDaRTERUcxlVSPJ1w7tZMyumhk7shoKADJM9Z0LA+ h3CDvtqGKMxMUuFJKLyhntynIYae5tm/b/llOQ6+QqUmeyh5A4zltkMkSQF3LApQGpBp HW4gLZBns90wrXOEMtd+hn1gw0GLqmO4ldclxxescMT3WW9q1LPgBu+uOQX0Hswsg/sw DwFWz+vpqFMnRkfbyKOGiZWm7WW5j4ojakFJ7Wx2J/AcrFTtyd00+fJ0Sap51yp+PAa5 P1gfw6ehduEIWqjWzbQfPXl0hfcoWH96tiWX6FaUQ+vr7dQtD3n911CUTpS/N5GtnYTv NDrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=WQoG+ayK; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id f187si1730876pgc.516.2019.06.16.22.24.54; Sun, 16 Jun 2019 22:24:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=WQoG+ayK; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 64E627D084; Mon, 17 Jun 2019 05:24:50 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mail.openembedded.org (Postfix) with ESMTP id B80B77E508 for ; Mon, 17 Jun 2019 05:24:48 +0000 (UTC) Received: by mail-pg1-f175.google.com with SMTP id p10so5119047pgn.1 for ; Sun, 16 Jun 2019 22:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MoQGfpULCP3fk5EDxhQYJrRP5foSydwG7g277HRuqFo=; b=WQoG+ayKgJIgFZivddz1ynEedruhDGBdtBWMm5TK+BfnXUY307gbm1y5BDP3v2fpqb QDBRlwAAsG4Vrl+jRFZvVznrEw8p28gppGgVjPPDkbfQ3jFpRRFtmBdvKRRm/PXjejX7 T7N9h36mQA8KdGm9la4JQ7FnRpHHOCOVrPPzWGEV/VYmDoPFXaT8/jaXUN/21EIVdkGL CtMzvdLDUHEFk+gJBCFsYwAGdg45b8EnZV9op61KUDl9dNwe/etElbK5gGUWPaiHO22N q+SAqK0UYQZP3Z9l/OO1v8o9m8es08Jfigd2Ni9pYhfgs569gULnFFnAnGMvfJ/ErAUH mhcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MoQGfpULCP3fk5EDxhQYJrRP5foSydwG7g277HRuqFo=; b=NPkHzVWZw3QTW5FZmaonTQwoSL0A3/BBE0xhZ6E7ktSNIwzP2nrHUUAkECQEsO6j3s C/2f9Psj27Pkk+FB3cctCaaxv0jiUNkjK8pqDopXRXLNPVKMnhGgVUcBMh6aQOvx0la1 ooPeXVb2bGOwzWmqF2UfwTdjs58f3NjHuoDOH4CJbnH2fSSH6JgLOEMOGaajIzgsr5Qx TfAOCqJza+TX+BqmLQ7HDrErFErcgAdyPz8/+J5mrhIWcujocnF0w+8TST5RQ82RdNRn GPKayZe6cfRznQ3UA5lVboMhEm+8G8TvesB4UOEEue5JZ9mpiEVTIsJ+6K9ueRL68jZ6 3Naw== X-Gm-Message-State: APjAAAXvwT5B+ikv1jq8txgllmiZqlqVxEMkZZxDzSNdipRWfh1dscV2 GjfMtDOq37bzcqVoSQZpQOFCGE7pj1w= X-Received: by 2002:a65:6102:: with SMTP id z2mr1700455pgu.194.1560749088999; Sun, 16 Jun 2019 22:24:48 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::3c7b]) by smtp.gmail.com with ESMTPSA id c124sm10156911pfa.115.2019.06.16.22.24.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 16 Jun 2019 22:24:48 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 16 Jun 2019 22:24:38 -0700 Message-Id: <20190617052440.18958-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 1/3] stressapptest: Fix build with libc++ X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org when using libc++ instead of libstdc++, __gnu_cxx namespace is not available Signed-off-by: Khem Raj --- .../stressapptest/libcplusplus-compat.patch | 28 +++++++++++++++++++ .../stressapptest/stressapptest_1.0.9.bb | 4 ++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-benchmark/stressapptest/stressapptest/libcplusplus-compat.patch -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-benchmark/stressapptest/stressapptest/libcplusplus-compat.patch b/meta-oe/recipes-benchmark/stressapptest/stressapptest/libcplusplus-compat.patch new file mode 100644 index 0000000000..f5e7da359d --- /dev/null +++ b/meta-oe/recipes-benchmark/stressapptest/stressapptest/libcplusplus-compat.patch @@ -0,0 +1,28 @@ +Fix compile on sytems using libc++ instead of libstdc++ + +libc++ does not really implement __gnu_cxx namespace and it +compiles fine without this namespace, therefore detect libc++ +and if it is used them exclude this namespace + +See https://github.com/stressapptest/stressapptest/issues/47 + +Fixes + +./sattypes.h:33:17: error: expected namespace name +using namespace __gnu_cxx; //NOLINT + +Upstream-Status: Pending +Signed-off-by: Khem Raj + +--- stressapptest-1.0.9.orig/src/sattypes.h ++++ stressapptest-1.0.9/src/sattypes.h +@@ -30,7 +30,9 @@ + #include "stressapptest_config_android.h" // NOLINT + #else + #include "stressapptest_config.h" // NOLINT ++#ifndef _LIBCPP_VERSION + using namespace __gnu_cxx; //NOLINT ++#endif // _LIBCPP_VERSION + #endif // __ANDROID__ + using namespace std; + diff --git a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb index 3e5748a3a1..679201c528 100644 --- a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb +++ b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb @@ -9,7 +9,9 @@ SECTION = "benchmark" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://COPYING;md5=55ea9d559f985fb4834317d8ed6b9e58" -SRC_URI = "https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz" +SRC_URI = "https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz \ + file://libcplusplus-compat.patch \ + " SRC_URI[md5sum] = "d3a526c174c049dd7a1068dc74a62be2" SRC_URI[sha256sum] = "2ba470587ad4f6ae92057d427c3a2a2756e5f10bd25cd91e62eaef55a40b30a1" From patchwork Mon Jun 17 05:24:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 166967 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2404187ilk; Sun, 16 Jun 2019 22:25:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4MEgU64ZqdN1yLENcukj3ROlhaIvw8Yk18o+WUGLzdSX8k7J2QIM3crPElyaTz3rR4eTN X-Received: by 2002:a65:5685:: with SMTP id v5mr48235047pgs.184.1560749114698; Sun, 16 Jun 2019 22:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560749114; cv=none; d=google.com; s=arc-20160816; b=ZpTymQayp/uQZ3nB9z0jXlqvn8S2JX8qnbqDQMH8KDyiCXK/W3EEflGA4U9pplJ/Y5 LKCuyslatOAZa7lk2k/37MBop7A353T0RNXtUROEw7siQR86fA7N0dKnUvWGWsNqI09o 2YSbFedGj5JENnb0YtykB9CnE9/yMqc5UzbVFiuINtK92nvYR0HycdWfyknQqTrqG+en QuPyRNKwDpCtlOlLlUkJYz6POgiBqgHz3L8mBwwOsCd76kO24Aq07WdLeaj93v/KhKx9 yLSTcV1/thkhTbiLhN5Ce+8qC77ZuGwTDggqfN5t1VranYHa0KegNil7yLkLNpNZ6LuT Xx5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=NzGIY8F1vm3mdFCxmgynLO7h111K9GTTW6EeEu2M0BI=; b=uxov8OgvikjVztoOQKDATF4548pCw4fozghg6Okpa2TVF0QHjeziEfqU092aeE892l uV//bDGggK89EKfvBuX1BKhNAu3aaxz1cK2FPKN8mo8Yr6khnjiC0ayd5AMxM7KDaPKi WUqPcUuCUkxx5EBzVu3JPVhPjFmg98WSMdU6e1WP1RIGaF9WTVZh36cLg3LwGHto1QsO ygam0MhCli8yKXbFMyhiJiQpUAHGyT7FtOh/wOJSL/fJKOcOQ3Nlhvn3zdcjvrglzRUO OpeTx364ksu7QeLbPaKfz7w3F9VdvVaQ5USZf6la+PPIMag/iBXXkqTfrGkmUq7xiNHz vT9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="OVX56YH/"; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id f9si3513563pgc.1.2019.06.16.22.25.14; Sun, 16 Jun 2019 22:25:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="OVX56YH/"; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 24CB57E9ED; Mon, 17 Jun 2019 05:25:11 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by mail.openembedded.org (Postfix) with ESMTP id 0A0007E508 for ; Mon, 17 Jun 2019 05:24:48 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id s24so3581292plr.8 for ; Sun, 16 Jun 2019 22:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bqCuQ8dPDOpb9DpTgpZTmFeh3etK9YkTzrTk1UeYAno=; b=OVX56YH/2NSt5D2Eks37Z2k5gYtgo9gwVaIy+IT9iryKI54SnmugszTRTrgtWefcRL 9boHm5uOx/nNIP524WTw283ScHVBmCyHM7U8yrZUa7vZSfZu3gyC0xG1oRHRiTG+QYnT ItKeTU2t7wxqCtRXRGJrowtyFCiwsA12O1HbzPY06bru03g1VW6F5cfrVfp0djM62JoI HCKBzJm/F/fqn46MPEfbn2ZyQY/w6uxTawNeceU+C2Yz07II82DTH9wrUSlc2yHNvqMC 7cy8MpNxZX176U/pnUwRSxgTwYdgsrvIiBJzpKPEXp59cLLOC+UWwaETlbwJQ/BNHDzL MS4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bqCuQ8dPDOpb9DpTgpZTmFeh3etK9YkTzrTk1UeYAno=; b=rhJGFDQ+DQ17qR9wao0grJHKXnvFAHGLFxgKvxsSg3FOUV3IneLYZBFYqHxPMfHdEb 5oA6geSac/9C4J2sEILRxRZLLKq+QrUFbxX5hDpF/qvv3KkApRfTQkTg4dl0pCUBWINO cvPEg9iEjNgFyUOoE3XUUAGhDuqNSWuOwfYlQlCob3lv1PuSc80MJ/R+s8Tkx+1SamNm W6iGKQxeQCfe6UDPY5bER/4lcA9Z8a+VjaIovIvDg1Zpy89xdZefqx7S1n8qr00XUXE2 WS7m5CoqGgfbCA56qbKdnNoq+R2sXczMi2DE9dYunK5RSY74vKl34UZKDNyWBgqz5u/Z RAew== X-Gm-Message-State: APjAAAUJUEUnfML/kRGvlLZbLjtGoDwPb/695zpZPfISA15JKIUsif5e TpeybOrY2kIxPN7hrXhxiUQO9SKH0gg= X-Received: by 2002:a17:902:2ae7:: with SMTP id j94mr21874568plb.270.1560749089722; Sun, 16 Jun 2019 22:24:49 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::3c7b]) by smtp.gmail.com with ESMTPSA id c124sm10156911pfa.115.2019.06.16.22.24.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 16 Jun 2019 22:24:49 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 16 Jun 2019 22:24:39 -0700 Message-Id: <20190617052440.18958-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190617052440.18958-1-raj.khem@gmail.com> References: <20190617052440.18958-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 2/3] stressapptest: Implement reading sysfs and use it if sysconf is not there X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org This helps in building on musl platform where _SC_LEVEL1_DCACHE_LINESIZE is not available Signed-off-by: Khem Raj --- .../read_sysfs_for_cachesize.patch | 72 +++++++++++++++++++ .../stressapptest/stressapptest_1.0.9.bb | 1 + 2 files changed, 73 insertions(+) create mode 100644 meta-oe/recipes-benchmark/stressapptest/stressapptest/read_sysfs_for_cachesize.patch -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-benchmark/stressapptest/stressapptest/read_sysfs_for_cachesize.patch b/meta-oe/recipes-benchmark/stressapptest/stressapptest/read_sysfs_for_cachesize.patch new file mode 100644 index 0000000000..8c251aeb97 --- /dev/null +++ b/meta-oe/recipes-benchmark/stressapptest/stressapptest/read_sysfs_for_cachesize.patch @@ -0,0 +1,72 @@ +sysconf params like _SC_LEVEL1_DCACHE_LINESIZE are not universally +implemented, therefore check for them being available, if not there +then read the sysfs directly to get the value + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- a/src/sat.cc ++++ b/src/sat.cc +@@ -1482,15 +1482,47 @@ int Sat::CpuCount() { + return sysconf(_SC_NPROCESSORS_CONF); + } + ++int Sat::ReadInt(const char *filename, int *value) { ++ char line[64]; ++ int fd = open(filename, O_RDONLY), err = -1; ++ ++ if (fd < 0) ++ return -1; ++ if (read(fd, line, sizeof(line)) > 0) { ++ *value = atoi(line); ++ err = 0; ++ } ++ ++ close(fd); ++ return err; ++} ++ + // Return the worst case (largest) cache line size of the various levels of + // cache actually prsent in the machine. + int Sat::CacheLineSize() { +- int max_linesize = sysconf(_SC_LEVEL1_DCACHE_LINESIZE); +- int linesize = sysconf(_SC_LEVEL2_CACHE_LINESIZE); ++ int max_linesize, linesize; ++#ifdef _SC_LEVEL1_DCACHE_LINESIZE ++ max_linesize = sysconf(_SC_LEVEL1_DCACHE_LINESIZE); ++#else ++ ReadInt("/sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size", &max_linesize); ++#endif ++#ifdef _SC_LEVEL2_DCACHE_LINESIZE ++ linesize = sysconf(_SC_LEVEL2_DCACHE_LINESIZE); ++#else ++ ReadInt("/sys/devices/system/cpu/cpu0/cache/index1/coherency_line_size", &linesize); ++#endif + if (linesize > max_linesize) max_linesize = linesize; +- linesize = sysconf(_SC_LEVEL3_CACHE_LINESIZE); ++#ifdef _SC_LEVEL3_DCACHE_LINESIZE ++ linesize = sysconf(_SC_LEVEL3_DCACHE_LINESIZE); ++#else ++ ReadInt("/sys/devices/system/cpu/cpu0/cache/index2/coherency_line_size", &linesize); ++#endif + if (linesize > max_linesize) max_linesize = linesize; +- linesize = sysconf(_SC_LEVEL4_CACHE_LINESIZE); ++#ifdef _SC_LEVEL4_DCACHE_LINESIZE ++ linesize = sysconf(_SC_LEVEL4_DCACHE_LINESIZE); ++#else ++ ReadInt("/sys/devices/system/cpu/cpu0/cache/index3/coherency_line_size", &linesize); ++#endif + if (linesize > max_linesize) max_linesize = linesize; + return max_linesize; + } +--- a/src/sat.h ++++ b/src/sat.h +@@ -136,7 +136,8 @@ class Sat { + int CpuCount(); + // Return the worst-case (largest) cache line size of the system. + int CacheLineSize(); +- ++ // Read int values from kernel file system e.g. sysfs ++ int ReadInt(const char *filename, int *value); + // Collect error counts from threads. + int64 GetTotalErrorCount(); + diff --git a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb index 679201c528..aa1bf1cd32 100644 --- a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb +++ b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb @@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=55ea9d559f985fb4834317d8ed6b9e58" SRC_URI = "https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz \ file://libcplusplus-compat.patch \ + file://read_sysfs_for_cachesize.patch \ " SRC_URI[md5sum] = "d3a526c174c049dd7a1068dc74a62be2" From patchwork Mon Jun 17 05:24:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 166968 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2404289ilk; Sun, 16 Jun 2019 22:25:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxO+FRi3SFzRwHI8myDiGjVljvEab6LjquV283WaYe/g3esKLqtw5fdxDjpbFAew37X6ZOw X-Received: by 2002:a17:902:28:: with SMTP id 37mr40509941pla.188.1560749121959; Sun, 16 Jun 2019 22:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560749121; cv=none; d=google.com; s=arc-20160816; b=PeJiTwhYboYOUjVI3WPJkbEdQ4XelSSumxyyXY7B17imtVJP+Y85jkYQ8dLx4sZ8eD mY5XARQ09wCFuiH+ne7/aUxWguiPQCr2YiK0YMwQBrZoc6/o4Pci+LNQiUmuXNkhLUXi cU8xNWcB4bbrdcGFkXj5FGwyuG9Y1uFLPxBe3L7fhc2gIdbSw0af7TSxfbYPs6MCmiA+ Tv0SGZpUV1VPIxyKEtsuiWvoP1ABmKOCitlFj7F0je2+Is/4JiP6YhdvQ9eG/rvNZxS9 VoCNh2TlAxIOkr5gq0csZEvRrpl9h5LRQ1aLWj/OpOXsvj/Y/nt1nSe0wkJd52xDyioB ZRlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=DHou9vmYPLVoVgUDi7vC3lmciTWrPb25igXZyMbtyOI=; b=Guz5CDzrV7NuqvW45acPSCqnqkzG/FJXPvKdcmSO+2OyDg1hbaYpM/A39ygE75wvao x1JLkOlo+6+GwrcCfzMaIL7Vez9qJrZWKa8jE3ITw63cEWB2M12AH71PuwO1bwFAFkY8 Ejd2ZxkWj7W+B8hJyyw/K97zLyCJaWmu36a8E27LhWlBQYlfUtJLo9SLs4UijLTZcD8g lprh+Akb7SuFUg7z/LN0EMN5PVoBUsQj1Stl7QoaGlLnkO8J7ikcX3kvJKTUF+C+Ortc xW8oZ+62rD2EuIW2bHWuGkFUFHEjJnNGqm13cJr9/mwdrftw14HHL9d4zBQZ9sdhJVo4 AgWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=CH3VdpVV; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id m8si844932pgq.39.2019.06.16.22.25.21; Sun, 16 Jun 2019 22:25:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=CH3VdpVV; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 744277EA25; Mon, 17 Jun 2019 05:25:12 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id 998627DD6E for ; Mon, 17 Jun 2019 05:24:49 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id x15so5017252pfq.0 for ; Sun, 16 Jun 2019 22:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=h/dSKzsr7e4qjANjzkcAwqJZfLboQpgin37C3JpddNE=; b=CH3VdpVVhuHcW4/ePMoO34S3CsQqJEhUNuDBhNGmJX7eIp20jdZwADMF3CMtmJxdRA Wi0vhh8t3BCx8BFp5C6XhrF2SV04240tKxtGCk3xetssUKcq/QtLALABeDOjda2H5RXQ 4zbD9zRxUBNx2WTmBckpSHYG3Hdu2RQr3eQyw/fHB3Et610aC0bhCa6YIscwlRul/Iqm BuXLLPamNvJSPtvO/if6TQcmFOZdZN1yUhmA3E7cNkXHrFXi9FrYdY+KoiPfjN/oYVzb e1VAm7/i764KvKWsyPidJDtMlGj+s4lY1bBZPN1fuZBwp/789SGiDAGxzh6/qK5SvIKE vbuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=h/dSKzsr7e4qjANjzkcAwqJZfLboQpgin37C3JpddNE=; b=eSgG4C8xvK5bwVV97T1jKIQqPtDIUUO0F6onPwx54H6CAieas9N8kSt7LcMMXth3NI hgIEnPl9aTVWmlCcl2i2WOMAABYociGTYVhajx8Ek6KLOA089pxf2PG57At2v4paTbNm Ilr06wFAo0kXDjYPUUO0Hl+el6TReg56rD0JCEs5DkVorVbZ50RG173TAXAAaLm4vQ9P W0cWIJmDXv11rEFmc+RZ8LoDeXzw8puUPKL9YnfCu5wv3V0Z/eypWNqnWomHKlhebMfx zcyRg1qUsr+OUXUaf3DMU3ntWf/oSoE4o3routqtbNx1fk52U6Ta7b2mhS/rA/1bUmEW 7vsw== X-Gm-Message-State: APjAAAXadmQxtk0+0cOAiGYALno9jo9RMRtxE0fcsDTNvSO4VxhQ3ae2 NvuQ6wqnlSYioH2pkHEkX8Ha+Kg3qZY= X-Received: by 2002:a62:d44f:: with SMTP id u15mr27325815pfl.33.1560749090403; Sun, 16 Jun 2019 22:24:50 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::3c7b]) by smtp.gmail.com with ESMTPSA id c124sm10156911pfa.115.2019.06.16.22.24.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 16 Jun 2019 22:24:49 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 16 Jun 2019 22:24:40 -0700 Message-Id: <20190617052440.18958-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190617052440.18958-1-raj.khem@gmail.com> References: <20190617052440.18958-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 3/3] stressapptest: Use git SHA instead of git archive X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org git archives get regenerated randomly so lets use git fetcher instead Signed-off-by: Khem Raj --- .../stressapptest/stressapptest_1.0.9.bb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb index aa1bf1cd32..a2966e99dd 100644 --- a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb +++ b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb @@ -9,14 +9,13 @@ SECTION = "benchmark" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://COPYING;md5=55ea9d559f985fb4834317d8ed6b9e58" -SRC_URI = "https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz \ +SRCREV = "fb72e5e5f0879231f38e0e826a98a6ca2d1ca38e" + +SRC_URI = "git://github.com/stressapptest/stressapptest \ file://libcplusplus-compat.patch \ file://read_sysfs_for_cachesize.patch \ " -SRC_URI[md5sum] = "d3a526c174c049dd7a1068dc74a62be2" -SRC_URI[sha256sum] = "2ba470587ad4f6ae92057d427c3a2a2756e5f10bd25cd91e62eaef55a40b30a1" - -S = "${WORKDIR}/${PN}-${PV}" +S = "${WORKDIR}/git" inherit autotools