mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>, Jiri Kosina <jikos@kernel.org>,
	Miroslav Benes <mbenes@suse.cz>, Petr Mladek <pmladek@suse.com>,
	Joe Lawrence <joe.lawrence@redhat.com>,
	live-patching@vger.kernel.org, x86@kernel.org,
	Borislav Petkov <bp@alien8.de>
Subject: Re: [RFC][PATCH] ftrace/x86: Remove mcount support
Date: Thu, 9 May 2019 22:30:51 -0400	[thread overview]
Message-ID: <20190509223051.710a8f4e@gandalf.local.home> (raw)
In-Reply-To: <20190509201430.2eabpqjv2kw7dwnv@treble>

On Thu, 9 May 2019 15:14:30 -0500
Josh Poimboeuf <jpoimboe@redhat.com> wrote:

> > Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
> > ---
> >  arch/x86/include/asm/ftrace.h    |  8 +++----
> >  arch/x86/include/asm/livepatch.h |  3 ---
> >  arch/x86/kernel/ftrace_32.S      | 36 +++++---------------------------
> >  arch/x86/kernel/ftrace_64.S      | 28 +------------------------
> >  4 files changed, 9 insertions(+), 66 deletions(-)  
> 
> I was wondering why you didn't do s/mcount/fentry/ everywhere, but I
> guess it's because mcount is still used by other arches, so it still has
> a generic meaning tree-wide, right?

Yes, fentry works nicely when you have a single instruction that pushes
the return address on the stack and then jumps to another location.
It's much trickier to implement with link registers. There's a few
different implementations for other archs, but mcount happens to be the
one supported by most.

> 
> Anyway it's nice to finally see this cruft disappear.
> 
> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>

Thanks!

-- Steve

  reply	other threads:[~2019-05-10  2:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-09 19:49 Steven Rostedt
2019-05-09 19:59 ` Peter Zijlstra
2019-05-09 20:03 ` Jiri Kosina
2019-05-09 20:12 ` Linus Torvalds
2019-05-10  2:28   ` Steven Rostedt
2019-05-10  7:30     ` Jiri Kosina
2019-05-09 20:14 ` Josh Poimboeuf
2019-05-10  2:30   ` Steven Rostedt [this message]
2019-05-10  2:37 ` Steven Rostedt

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=20190509223051.710a8f4e@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=jikos@kernel.org \
    --cc=joe.lawrence@redhat.com \
    --cc=jpoimboe@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=live-patching@vger.kernel.org \
    --cc=mbenes@suse.cz \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=pmladek@suse.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@kernel.org \
    /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®