public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Support dl-tunables.list in subdirectories
@ 2017-05-24 19:41 H.J. Lu
  2017-05-25  6:08 ` Siddhesh Poyarekar
  0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2017-05-24 19:41 UTC (permalink / raw)
  To: GNU C Library

We can put processor specific tunables in dl-tunables.list under
sysdeps instead of in elf/dl-tunables.list.

Any comments?

H.J.
---
	* Makeconfig ($(common-objpfx)dl-tunable-list.h): Also check
	dl-tunables.list in subdirectories.
---
 Makeconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makeconfig b/Makeconfig
index b494b82..e4eda4b 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -1127,7 +1127,9 @@ ifneq (no,$(have-tunables))
 before-compile += $(common-objpfx)dl-tunable-list.h
 
 $(common-objpfx)dl-tunable-list.h: $(..)scripts/gen-tunables.awk \
-				   $(..)elf/dl-tunables.list
+				   $(..)elf/dl-tunables.list \
+				   $(wildcard $(subdirs:%=$(..)%/dl-tunables.list)) \
+				   $(wildcard $(sysdirs:%=%/dl-tunables.list))
 	$(AWK) -f $^ > $@.tmp
 	mv $@.tmp $@
 endif
-- 
2.9.4

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

* Re: [PATCH] Support dl-tunables.list in subdirectories
  2017-05-24 19:41 [PATCH] Support dl-tunables.list in subdirectories H.J. Lu
@ 2017-05-25  6:08 ` Siddhesh Poyarekar
  2017-05-25 12:35   ` H.J. Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Siddhesh Poyarekar @ 2017-05-25  6:08 UTC (permalink / raw)
  To: H.J. Lu, GNU C Library

On Thursday 25 May 2017 01:11 AM, H.J. Lu wrote:
> We can put processor specific tunables in dl-tunables.list under
> sysdeps instead of in elf/dl-tunables.list.
> 
> Any comments?

That makes sense.  However, please avoid putting processor/arch
information in the tunable names.  That is, instead of glibc.x86_tune or
something like that, stick to glibc.tune[1].  That way if the tunable is
deemed to be applicable to other architectures in future, then we can
simply move it to the generic list.

Siddhesh

[1] Any processor/hardware feature tuning should go into the glibc.tune
namespace. I see you're looking to implement IFUNC overrides, so the
tunable I've proposed for that is glibc.tune.mcpu where the values
should map to those in gcc.

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

* Re: [PATCH] Support dl-tunables.list in subdirectories
  2017-05-25  6:08 ` Siddhesh Poyarekar
@ 2017-05-25 12:35   ` H.J. Lu
  0 siblings, 0 replies; 3+ messages in thread
From: H.J. Lu @ 2017-05-25 12:35 UTC (permalink / raw)
  To: Siddhesh Poyarekar; +Cc: GNU C Library

On Wed, May 24, 2017 at 11:06 PM, Siddhesh Poyarekar
<siddhesh@gotplt.org> wrote:
> On Thursday 25 May 2017 01:11 AM, H.J. Lu wrote:
>> We can put processor specific tunables in dl-tunables.list under
>> sysdeps instead of in elf/dl-tunables.list.
>>
>> Any comments?
>
> That makes sense.  However, please avoid putting processor/arch

I will check in my patch.

> information in the tunable names.  That is, instead of glibc.x86_tune or
> something like that, stick to glibc.tune[1].  That way if the tunable is
> deemed to be applicable to other architectures in future, then we can
> simply move it to the generic list.

Sure, we can discuss when I submit my patch.

Thanks.

> Siddhesh
>
> [1] Any processor/hardware feature tuning should go into the glibc.tune
> namespace. I see you're looking to implement IFUNC overrides, so the
> tunable I've proposed for that is glibc.tune.mcpu where the values
> should map to those in gcc.



-- 
H.J.

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

end of thread, other threads:[~2017-05-25 12:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24 19:41 [PATCH] Support dl-tunables.list in subdirectories H.J. Lu
2017-05-25  6:08 ` Siddhesh Poyarekar
2017-05-25 12:35   ` H.J. Lu

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).