From patchwork Tue Mar 7 13:54:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MAHESH BODAPATI X-Patchwork-Id: 66081 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 13B86385B523 for ; Tue, 7 Mar 2023 13:56:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13B86385B523 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678197375; bh=ansVo42UZ/JTyXVgjAuo9l/PcvhQYWiuq8S8AyaHwNQ=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=P9TBV7TkYuN+uhb0sO9i46A4vVl9kFL7YM1aDmIeigVUudqxgY2qzYjFU/EIapsri WxoqCCsi0/89RjBV19mfjzGHBM8Hj1LCseN1oQr8QmUALWAnG4fzfSgoBY5y4guydv FABfc9bBq5jyFpiglzzBXt2oGUIJ7bs5xlbMfR/w= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 4D2D43858D3C for ; Tue, 7 Mar 2023 13:55:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D2D43858D3C Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 327Cg4Xa010334 for ; Tue, 7 Mar 2023 13:55:50 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3p65gf23kx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 07 Mar 2023 13:55:50 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 327CgU9u012051 for ; Tue, 7 Mar 2023 13:55:49 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3p65gf23k3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Mar 2023 13:55:49 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32735DLG030497; Tue, 7 Mar 2023 13:55:47 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma03ams.nl.ibm.com (PPS) with ESMTPS id 3p418cvar1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Mar 2023 13:55:47 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 327DtjPQ34734558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 Mar 2023 13:55:45 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0D49C20040; Tue, 7 Mar 2023 13:55:45 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0B1EA2004D; Tue, 7 Mar 2023 13:55:44 +0000 (GMT) Received: from ltcden2-lp1.aus.stglabs.ibm.com (unknown [9.3.90.43]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 7 Mar 2023 13:55:43 +0000 (GMT) To: libc-alpha@sourceware.org Cc: rajis@linux.ibm.com, skissane@gmail.com, dj@redhat.com, Mahesh Bodapati Subject: [PATCH] Skip mcount overflow and tunables tests on "--disable-tunables" Date: Tue, 7 Mar 2023 07:54:59 -0600 Message-Id: <20230307135459.1702324-1-bmahi496@linux.ibm.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Dq14zzfxxkDJarvrsUL8tnmbbpXnGwh8 X-Proofpoint-GUID: gYf8pMsmKu_R8pYCS-TQ5btMI7GkUGlm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-07_08,2023-03-07_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 phishscore=0 mlxlogscore=856 malwarescore=0 bulkscore=0 suspectscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303070122 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: MAHESH BODAPATI via Libc-alpha From: MAHESH BODAPATI Reply-To: MAHESH BODAPATI Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" From: Mahesh Bodapati Add a have_tunables check on the new tests added in recent commit - "gmon: improve mcount overflow handling [BZ# 27576]" commit ID 31be941e4367c001b2009308839db5c67bf9dcbc --- config.make.in | 1 + gmon/Makefile | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/config.make.in b/config.make.in index d7c416cbea..ab2b7649f1 100644 --- a/config.make.in +++ b/config.make.in @@ -65,6 +65,7 @@ have-ssp = @libc_cv_ssp@ stack-protector = @stack_protector@ no-stack-protector = @no_stack_protector@ have-selinux = @have_selinux@ +have-tunables = @have_tunables@ have-libaudit = @have_libaudit@ have-libcap = @have_libcap@ have-cc-with-libunwind = @libc_cv_cc_with_libunwind@ diff --git a/gmon/Makefile b/gmon/Makefile index 213622a7ad..69119421ca 100644 --- a/gmon/Makefile +++ b/gmon/Makefile @@ -26,7 +26,11 @@ include ../Makeconfig headers := sys/gmon.h sys/gmon_out.h sys/profil.h routines := gmon mcount profil sprofil prof-freq +ifeq ($(have-tunables),yes) tests = tst-sprofil tst-gmon tst-mcount-overflow tst-mcleanup +else +tests = tst-sprofil tst-gmon tst-mcleanup +endif ifeq ($(build-profile),yes) tests += tst-profile-static tests-static += tst-profile-static @@ -57,6 +61,7 @@ ifeq ($(run-built-tests),yes) tests-special += $(objpfx)tst-gmon-gprof.out endif +ifeq ($(have-tunables),yes) CFLAGS-tst-mcount-overflow.c := -fno-omit-frame-pointer -pg tst-mcount-overflow-no-pie = yes CRT-tst-mcount-overflow := $(csu-objpfx)g$(start-installed-name) @@ -68,6 +73,7 @@ tst-mcount-overflow-ARGS := 2>&1 1>/dev/null | cat ifeq ($(run-built-tests),yes) tests-special += $(objpfx)tst-mcount-overflow-check.out endif +endif CFLAGS-tst-mcleanup.c := -fno-omit-frame-pointer -pg tst-mcleanup-no-pie = yes @@ -124,6 +130,7 @@ $(objpfx)tst-gmon.out: clean-tst-gmon-data clean-tst-gmon-data: rm -f $(objpfx)tst-gmon.data.* +ifeq ($(have-tunables),yes) $(objpfx)tst-mcount-overflow.o: clean-tst-mcount-overflow-data clean-tst-mcount-overflow-data: rm -f $(objpfx)tst-mcount-overflow.data.* @@ -131,6 +138,7 @@ clean-tst-mcount-overflow-data: $(objpfx)tst-mcount-overflow-check.out: tst-mcount-overflow-check.sh $(objpfx)tst-mcount-overflow.out $(SHELL) $< $(objpfx)tst-mcount-overflow > $@; \ $(evaluate-test) +endif $(objpfx)tst-mcleanup.out: clean-tst-mcleanup-data clean-tst-mcleanup-data: