Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org, Daniel Jacobowitz <dan@codesourcery.com>
Subject: Re: [patch] STT_GNU_IFUNC support
Date: Wed, 17 Feb 2010 18:12:00 -0000	[thread overview]
Message-ID: <20100217181225.GA8632@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <201002171755.10132.pedro@codesourcery.com>

On Wed, 17 Feb 2010 18:55:10 +0100, Pedro Alves wrote:
> On Wednesday 17 February 2010 17:33:38, Jan Kratochvil wrote:
> > > > What about making this GNU-IFUNC inferior call scheduling follow the "step"
> > > > policy?  Maybe the whole inferior calls should follow the "step" policy?
> > > 
> > > Or "on", should be the same.
> > 
> > Not so.  I find "step" to be the reasonable default (and it has been so for
> > a long time before me in RHEL/Fedora) and I find GNU-IFUNC resolving with
> > locked scheduler also as a reasonable default.  I do not find
> > "scheduler-locking on" as a reasonable GDB default.
> 
> Oh, of course not.  I was answering the first question,
> about the specific infcall to resolve "strcmp" when the
> user did "p strcmp" or "b strcmp".  I assume you meant to
> sched-lock that call, which would be the same as "on",
> but maybe I misunderstood what you meant.

We agree on the significant part.  The other part is offtopic for IFUNC.


Thanks,
Jan

------------------------------------------------------------------------------

> A reply to
> the second question would be similar to
> the "That's another story." reply.  ;-)

The "That's another story." part:

To make it whole more clear I would suggesting creating:

set scheduler-locking-continue (on|off)
set scheduler-locking-step (on|off)

mapping current settings -> the new scheme as:

set scheduler-locking on   -> s-l-continue=on  s-l-step=on
set scheduler-locking step -> s-l-continue=off s-l-step=on
set scheduler-locking off  -> s-l-continue=off s-l-step=off

and introducing for infcall/gnu-ifunc new settings:

set scheduler-locking-infcall (on|off)
set scheduler-locking-gnu-ifunc (on|off)

Currently s-l-infcall behaves the same as s-l-continue.
IMO s-l-infcall should behave more the same as s-l-step.


      reply	other threads:[~2010-02-17 18:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-14 20:35 Jan Kratochvil
2010-02-14 21:43 ` Mark Kettenis
2010-02-14 21:59   ` Jan Kratochvil
2010-02-15 18:40 ` Daniel Jacobowitz
2010-02-15 18:49   ` Jan Kratochvil
2010-02-17 12:34   ` Pedro Alves
2010-02-17 14:19     ` Jan Kratochvil
2010-02-17 14:46       ` Daniel Jacobowitz
2010-02-17 17:45         ` Jan Kratochvil
2010-02-17 14:52       ` Pedro Alves
2010-02-17 17:33         ` Jan Kratochvil
2010-02-17 17:55           ` Pedro Alves
2010-02-17 18:12             ` Jan Kratochvil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100217181225.GA8632@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=dan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox