From patchwork Tue Mar 21 18:33:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MAHESH BODAPATI X-Patchwork-Id: 66712 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 762303858C2D for ; Tue, 21 Mar 2023 18:34:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 762303858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679423681; bh=7EW+PdlQ0j1Hm86ELr9QugIZ3zRHLN2YFlfuq+3RK8g=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=PYoMsD4TDXvCpckyU3cHBntEoyCfyHO4Rq44tqzgTMXEK9jEMczpJlGatTMk0wu2U F/KmYnwcaQZ3goA5a8YSe7CgHCVtpwHw96JIrP/JWecH4MHqHVYrxGRMHrtJm5FsuT tiSDDZYnglzEUXju/0mkqlulEkvatFItiNbtLjHU= 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 CB8F13858D3C for ; Tue, 21 Mar 2023 18:34:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CB8F13858D3C Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32LH6jCb007506 for ; Tue, 21 Mar 2023 18:34:17 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pfccaj88v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 21 Mar 2023 18:34:17 +0000 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 32LHwoNX014657 for ; Tue, 21 Mar 2023 18:34:17 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pfccaj87a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Mar 2023 18:34:17 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32L3FfjI001777; Tue, 21 Mar 2023 18:34:14 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma06fra.de.ibm.com (PPS) with ESMTPS id 3pd4jfc6hd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Mar 2023 18:34:14 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32LIYCnS17236556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 Mar 2023 18:34:12 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 21B972004E; Tue, 21 Mar 2023 18:34:12 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2295120043; Tue, 21 Mar 2023 18:34:11 +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, 21 Mar 2023 18:34:10 +0000 (GMT) To: libc-alpha@sourceware.org Cc: rajis@linux.ibm.com, skissane@gmail.com, dj@redhat.com, Mahesh Bodapati Subject: [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables" Date: Tue, 21 Mar 2023 13:33:50 -0500 Message-Id: <20230321183350.2499793-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: T2zxRsSSlBHg7gOZoESeynbkBpdmtF4W X-Proofpoint-GUID: jv9JfD0waTiFJhiFBZRmSfLwJoOLk8s1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-21_11,2023-03-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1011 suspectscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 adultscore=0 phishscore=0 mlxlogscore=839 spamscore=0 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303150002 definitions=main-2303210147 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 | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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..934a2b230d 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 -tests = tst-sprofil tst-gmon tst-mcount-overflow tst-mcleanup +tests = tst-sprofil tst-gmon tst-mcleanup +ifeq ($(have-tunables),yes) +tests += tst-mcount-overflow +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: