From patchwork Mon Jan 2 10:51:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 38084 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4106882wrt; Mon, 2 Jan 2023 02:53:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXv4xuaxLnunMnbb1zs0VgUeKX016Ho1PqJx1n0kTogz1GsUlLjL0vxSfKR9/ODOsJ3p2PqJ X-Received: by 2002:a17:907:8b11:b0:81b:fbff:a7cc with SMTP id sz17-20020a1709078b1100b0081bfbffa7ccmr34686751ejc.18.1672656828845; Mon, 02 Jan 2023 02:53:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672656828; cv=none; d=google.com; s=arc-20160816; b=zf7/Q5QTk6Yiwj+2p+eb61wTkdqlyRkelgNcjQ6wLLshhqVJM4/mF0fseRZyOUHppT M0M9diSFvk62u9hGYseMQmawutXmf3T/itCorFA4NIOgfTtgw6XDEL0Mnfvqaa445m2k DM3vFJLoe5UYSTTz5AI118Gku3hqOrsHUc8NJ48f5OTpEvi8NcDd9oNGL+gm287PKw6h moLVIkEJJY/7oyZG3IMqQhCarP6Sp+TPg2cnogeWCWhkdv4CBaMzS7BMTkQj5RtfnlUa L9ny1gaVYuN/TIcGxHhYDdxyUPhjsInauYJareqf6O5EGvBdI86o6WqIeEnntr6aXiO2 hWDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BIIiIarhrMjfZ53epwzctaykif7mltHYkilT75A5OPY=; b=A3YGYAgFHF9xhWIVyIs5aV92TB2ADQxqyWRHpULIHbQPfYnnzaZDHdjefPYaah21OE Zwnk9xPM/wXvG9FvymrSoesgCgXoey98svD3XuyyC5OWKA9YzA97ubU3Cq6PEtVxDu1Y GbqBZj6awSUeLaaby+DzZ8H6unAudwd6G5Vn1gAvWjQ/i7Lq397onXf28TYCgSx+ey14 C3XeKeq0j0IWD1EhcyaotEAFg/7XvKTdvROrQWezWhiXQmSiEtenklUwLrp0fLf8Iiyo GTunCXlsHk2n3h35sFUwQI1AqumId5N6v+cf85TPHviOcruJVCTMJH6XCdwV5zMXCR2e Y22g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=o8kl92Ae; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg7-20020a170907a40700b0078da42195c2si26118715ejc.547.2023.01.02.02.53.24; Mon, 02 Jan 2023 02:53:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=o8kl92Ae; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235956AbjABKwj (ORCPT + 99 others); Mon, 2 Jan 2023 05:52:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232568AbjABKwH (ORCPT ); Mon, 2 Jan 2023 05:52:07 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1177760F1; Mon, 2 Jan 2023 02:52:06 -0800 (PST) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3028X8kX024950; Mon, 2 Jan 2023 10:51:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=BIIiIarhrMjfZ53epwzctaykif7mltHYkilT75A5OPY=; b=o8kl92AeLFzyrZmYuQhK/lsvk6c/CEtIfJpBd8zPzzhyGrdHy47QS5gl7DOP5Q06s/uQ GLQShNfxbk/Aa9RxlGAiScd1rpnHswHnSR16QSQXonu4aKQOLPWAAU/jftpwQvfzSiYQ +9RYTNbpKt7p4t1n2KYrxAeI3otIQD17X7qFBpsf2aeDzWWAMz1ssc0rLaHPgk+orRSq 28QtvhMIX7hCbalquE41yhvfCIrU3S1YM30o8z62KaiMinxVOaIky/4oFzyDbcML0pFF kxeA306XRYmSEA+rnZgHxcPINHX6VBoR6FAXRsHdp9eM79f61/ik1cmS4muFHlblwYPi RA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mtxwr6txc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Jan 2023 10:51:36 +0000 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 302Ai70I012196; Mon, 2 Jan 2023 10:51:35 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3mtxwr6twp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Jan 2023 10:51:35 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 301NsPHv001030; Mon, 2 Jan 2023 10:51:33 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma06ams.nl.ibm.com (PPS) with ESMTPS id 3mtcbfaa5x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Jan 2023 10:51:33 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 302ApVDr51184098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 2 Jan 2023 10:51:31 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2C11C20043; Mon, 2 Jan 2023 10:51:31 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 181612004E; Mon, 2 Jan 2023 10:51:31 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTPS; Mon, 2 Jan 2023 10:51:31 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 55390) id 90D5BE095B; Mon, 2 Jan 2023 11:51:30 +0100 (CET) From: Sven Schnelle To: Willy Tarreau , "Paul E . McKenney" , Josh Triplett Cc: Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH v2 5/5] rcutorture: build initrd for rcutorture with nolibc Date: Mon, 2 Jan 2023 11:51:12 +0100 Message-Id: <20230102105112.1661651-6-svens@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230102105112.1661651-1-svens@linux.ibm.com> References: <20230102105112.1661651-1-svens@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: taqdwwMzuu-Bm8tIOuLH-ijhHv4fAxRk X-Proofpoint-ORIG-GUID: ETrvameOf56_uOZXMaJz-Pchzz4PuPMl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-02_06,2022-12-30_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 suspectscore=0 priorityscore=1501 phishscore=0 impostorscore=0 clxscore=1015 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301020096 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753907806982150237?= X-GMAIL-MSGID: =?utf-8?q?1753907806982150237?= This reduces the size of init from ~600KB to ~1KB. Signed-off-by: Sven Schnelle Acked-by: Heiko Carstens --- tools/testing/selftests/rcutorture/bin/mkinitrd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh index 70d62fd0d31d..71f0dfbb2a6d 100755 --- a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh +++ b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh @@ -64,7 +64,7 @@ ___EOF___ # build using nolibc on supported archs (smaller executable) and fall # back to regular glibc on other ones. if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \ - "||__ARM_EABI__||__aarch64__\nyes\n#endif" \ + "||__ARM_EABI__||__aarch64__||__s390x__\nyes\n#endif" \ | ${CROSS_COMPILE}gcc -E -nostdlib -xc - \ | grep -q '^yes'; then # architecture supported by nolibc