mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John David Anglin <dave.anglin@bell.net>
To: Nick Desaulniers <ndesaulniers@google.com>
Cc: deller@gmx.de, jejb@parisc-linux.org,
	Nathan Chancellor <natechancellor@gmail.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Pravin Shedge <pravin.shedge4linux@gmail.com>,
	Kate Stewart <kstewart@linuxfoundation.org>,
	Greg KH <gregkh@linuxfoundation.org>,
	linux-parisc@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] parisc: prefer _THIS_IP_ and _RET_IP_ statement expressions
Date: Fri, 3 Aug 2018 13:57:05 -0400	[thread overview]
Message-ID: <80743c1c-2a8c-7bce-2068-24c63790eba7@bell.net> (raw)
In-Reply-To: <CAKwvOdmwj76aESZNKhzfPmhfzGKvrfDut7oD5KAwA+VR-JukSg@mail.gmail.com>

On 2018-08-02 4:31 PM, Nick Desaulniers wrote:
> If I understand your point correctly, is it that you're saying that
> _THIS_IP_  should be implemented in terms of inline assembly (as in
> what current_text_addr() is currently)?  If that's what you mean and
> I'm understanding correctly, my point is that we should be preferring
> the generic C implementation as that's what's being used in most
> places currently, so if it was broken you'd likely already know about
> it.  Unless unwinding is truly broken by the additional label, I don't
> think we need an inline assembly implementation of current_text_addr()
> for parisc (or any arch for that matter).  If we do, then it can be
> localized to the parisc unwinding code, that way it can be
> consolidated everywhere else for every other arch.
The label breaks the unwind data, not the unwind code.  So, localizing 
the use of
current_text_addr() to the parisc unwind code doesn't help.

Personally, I prefer the implementation of current_text_addr() because:

1) The generated code is smaller, and
2) it doesn't introduce any unnecessary labels into the text.

As noted, these labels can cause issues with unwinding.

Dave

-- 
John David Anglin  dave.anglin@bell.net


  reply	other threads:[~2018-08-03 17:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-01 18:22 Nick Desaulniers
2018-08-01 20:10 ` John David Anglin
2018-08-01 20:52   ` Nick Desaulniers
2018-08-01 21:27     ` John David Anglin
2018-08-01 21:49       ` Nick Desaulniers
2018-08-01 22:12         ` John David Anglin
2018-08-01 22:18           ` Nick Desaulniers
2018-08-02  0:49             ` John David Anglin
2018-08-02 20:31               ` Nick Desaulniers
2018-08-03 17:57                 ` John David Anglin [this message]
2018-08-03 18:11                   ` Nick Desaulniers
2018-08-03 19:09                     ` John David Anglin
2018-08-03 20:33                       ` Nick Desaulniers
2018-08-03 22:34                         ` Helge Deller
2018-08-07 18:11                           ` Nick Desaulniers
2018-08-07 20:30                             ` Helge Deller
2018-08-07 21:29                               ` Nick Desaulniers

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=80743c1c-2a8c-7bce-2068-24c63790eba7@bell.net \
    --to=dave.anglin@bell.net \
    --cc=deller@gmx.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=jejb@parisc-linux.org \
    --cc=kstewart@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=natechancellor@gmail.com \
    --cc=ndesaulniers@google.com \
    --cc=pravin.shedge4linux@gmail.com \
    --cc=tglx@linutronix.de \
    /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

all inboxes | Powered by JetHome®