public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables"
@ 2023-03-21 18:33 MAHESH BODAPATI
  2023-03-21 21:48 ` DJ Delorie
  2023-03-22 11:29 ` Siddhesh Poyarekar
  0 siblings, 2 replies; 8+ messages in thread
From: MAHESH BODAPATI @ 2023-03-21 18:33 UTC (permalink / raw)
  To: libc-alpha; +Cc: rajis, skissane, dj, Mahesh Bodapati

From: Mahesh Bodapati <mahesh.bodapati@ibm.com>

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:
-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables"
  2023-03-21 18:33 [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables" MAHESH BODAPATI
@ 2023-03-21 21:48 ` DJ Delorie
  2023-03-23  6:04   ` MAHESH BODAPATI
  2023-03-22 11:29 ` Siddhesh Poyarekar
  1 sibling, 1 reply; 8+ messages in thread
From: DJ Delorie @ 2023-03-21 21:48 UTC (permalink / raw)
  To: MAHESH BODAPATI; +Cc: libc-alpha, rajis, skissane, mahesh.bodapati

MAHESH BODAPATI <bmahi496@linux.ibm.com> writes:
> +have-tunables = @have_tunables@

config.make.in already has one of these.

The rest looks OK, but did you test it with tunables disabled vs enabled?

> 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:


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables"
  2023-03-21 18:33 [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables" MAHESH BODAPATI
  2023-03-21 21:48 ` DJ Delorie
@ 2023-03-22 11:29 ` Siddhesh Poyarekar
  2023-03-22 12:56   ` Rajalakshmi Srinivasaraghavan
  2023-03-23  6:20   ` MAHESH BODAPATI
  1 sibling, 2 replies; 8+ messages in thread
From: Siddhesh Poyarekar @ 2023-03-22 11:29 UTC (permalink / raw)
  To: MAHESH BODAPATI, libc-alpha
  Cc: rajis, skissane, dj, Mahesh Bodapati, Adhemerval Zanella

On 2023-03-21 14:33, MAHESH BODAPATI via Libc-alpha wrote:
> From: Mahesh Bodapati <mahesh.bodapati@ibm.com>
> 
> Add a have_tunables check on the new tests added in recent commit
> - "gmon: improve mcount overflow handling [BZ# 27576]"
> commit ID  31be941e4367c001b2009308839db5c67bf9dcbc

Orthogonal question since you posted this patch to fix a 
--disable-tunables build: are you actually using this configuration or 
is it just part of your testing matrix?  We are considering removing the 
ability to disable tunables[1] so if the option is important to you, you 
should chime in there.

Thanks,
Sid

[1] https://sourceware.org/pipermail/libc-alpha/2023-March/146320.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables"
  2023-03-22 11:29 ` Siddhesh Poyarekar
@ 2023-03-22 12:56   ` Rajalakshmi Srinivasaraghavan
  2023-03-22 14:29     ` Siddhesh Poyarekar
  2023-03-23  6:20   ` MAHESH BODAPATI
  1 sibling, 1 reply; 8+ messages in thread
From: Rajalakshmi Srinivasaraghavan @ 2023-03-22 12:56 UTC (permalink / raw)
  To: Siddhesh Poyarekar, MAHESH BODAPATI, libc-alpha
  Cc: rajis, skissane, dj, Mahesh Bodapati, Adhemerval Zanella


On 3/22/23 6:29 AM, Siddhesh Poyarekar wrote:
> On 2023-03-21 14:33, MAHESH BODAPATI via Libc-alpha wrote:
>> From: Mahesh Bodapati <mahesh.bodapati@ibm.com>
>>
>> Add a have_tunables check on the new tests added in recent commit
>> - "gmon: improve mcount overflow handling [BZ# 27576]"
>> commit ID  31be941e4367c001b2009308839db5c67bf9dcbc
>
> Orthogonal question since you posted this patch to fix a 
> --disable-tunables build: are you actually using this configuration or 
> is it just part of your testing matrix?  We are considering removing 
> the ability to disable tunables[1] so if the option is important to 
> you, you should chime in there.

Mahesh submitted this patch a few days before Adhemerval submitted the 
patch removing the ability to disable tunables.  We have a power CI 
which tests disable-tunable option and that was the reason for fixing 
this. If we are going to remove that ability, I am fine with discarding 
this patch.

>
> Thanks,
> Sid
>
> [1] https://sourceware.org/pipermail/libc-alpha/2023-March/146320.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables"
  2023-03-22 12:56   ` Rajalakshmi Srinivasaraghavan
@ 2023-03-22 14:29     ` Siddhesh Poyarekar
  0 siblings, 0 replies; 8+ messages in thread
From: Siddhesh Poyarekar @ 2023-03-22 14:29 UTC (permalink / raw)
  To: Rajalakshmi Srinivasaraghavan, MAHESH BODAPATI, libc-alpha
  Cc: rajis, skissane, dj, Mahesh Bodapati, Adhemerval Zanella

On 2023-03-22 08:56, Rajalakshmi Srinivasaraghavan wrote:
> Mahesh submitted this patch a few days before Adhemerval submitted the 
> patch removing the ability to disable tunables.  We have a power CI 
> which tests disable-tunable option and that was the reason for fixing 
> this. If we are going to remove that ability, I am fine with discarding 
> this patch.
> 

OK that's great then, thanks for confirming.

Sid

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables"
  2023-03-21 21:48 ` DJ Delorie
@ 2023-03-23  6:04   ` MAHESH BODAPATI
  0 siblings, 0 replies; 8+ messages in thread
From: MAHESH BODAPATI @ 2023-03-23  6:04 UTC (permalink / raw)
  To: DJ Delorie; +Cc: libc-alpha, rajis, skissane, mahesh.bodapati


On 22/03/23 3:18 am, DJ Delorie wrote:
> MAHESH BODAPATI <bmahi496@linux.ibm.com> writes:
>> +have-tunables = @have_tunables@
> config.make.in already has one of these.
>
> The rest looks OK, but did you test it with tunables disabled vs enabled?

Yes,I tested the glibc with tunables enabled vs disabled.have_tunables 
can't be used in gmon/Makefile so have-tunables variable has been set in 
config.make.in

>
>> 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:

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables"
  2023-03-22 11:29 ` Siddhesh Poyarekar
  2023-03-22 12:56   ` Rajalakshmi Srinivasaraghavan
@ 2023-03-23  6:20   ` MAHESH BODAPATI
  2023-03-23 12:19     ` Siddhesh Poyarekar
  1 sibling, 1 reply; 8+ messages in thread
From: MAHESH BODAPATI @ 2023-03-23  6:20 UTC (permalink / raw)
  To: Siddhesh Poyarekar, libc-alpha
  Cc: rajis, skissane, dj, Mahesh Bodapati, Adhemerval Zanella


On 22/03/23 4:59 pm, Siddhesh Poyarekar wrote:
> On 2023-03-21 14:33, MAHESH BODAPATI via Libc-alpha wrote:
>> From: Mahesh Bodapati <mahesh.bodapati@ibm.com>
>>
>> Add a have_tunables check on the new tests added in recent commit
>> - "gmon: improve mcount overflow handling [BZ# 27576]"
>> commit ID  31be941e4367c001b2009308839db5c67bf9dcbc
>
> Orthogonal question since you posted this patch to fix a 
> --disable-tunables build: are you actually using this configuration or 
> is it just part of your testing matrix?  We are considering removing 
> the ability to disable tunables[1] so if the option is important to 
> you, you should chime in there.

Thanks Sid.It is part of our testing matrix.enable tunables is the 
default configure option now but we can disable tunable with configure 
option '--disable-tunables' .I understand that It will be removed and 
won't we have any configure option for disabling tunables?

Thanks,

Mahesh B

>
> Thanks,
> Sid
>
> [1] https://sourceware.org/pipermail/libc-alpha/2023-March/146320.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables"
  2023-03-23  6:20   ` MAHESH BODAPATI
@ 2023-03-23 12:19     ` Siddhesh Poyarekar
  0 siblings, 0 replies; 8+ messages in thread
From: Siddhesh Poyarekar @ 2023-03-23 12:19 UTC (permalink / raw)
  To: MAHESH BODAPATI, libc-alpha
  Cc: rajis, skissane, dj, Mahesh Bodapati, Adhemerval Zanella

On 2023-03-23 02:20, MAHESH BODAPATI wrote:
> Thanks Sid.It is part of our testing matrix.enable tunables is the 
> default configure option now but we can disable tunable with configure 
> option '--disable-tunables' .I understand that It will be removed and 
> won't we have any configure option for disabling tunables?

Yes, I'm working with Adhemerval to get his patch to drop the 
--disable-tunables into mainline.

Thanks,
Sid

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-23 12:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 18:33 [PATCH v2] Skip mcount overflow and tunables tests on "--disable-tunables" MAHESH BODAPATI
2023-03-21 21:48 ` DJ Delorie
2023-03-23  6:04   ` MAHESH BODAPATI
2023-03-22 11:29 ` Siddhesh Poyarekar
2023-03-22 12:56   ` Rajalakshmi Srinivasaraghavan
2023-03-22 14:29     ` Siddhesh Poyarekar
2023-03-23  6:20   ` MAHESH BODAPATI
2023-03-23 12:19     ` Siddhesh Poyarekar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).