linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ilya Leoshkevich <iii@linux.ibm.com>
To: Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@redhat.com>
Cc: linux-kernel@vger.kernel.org, Heiko Carstens <hca@linux.ibm.com>,
	Sven Schnelle <svens@linux.ibm.com>,
	Vasily Gorbik <gor@linux.ibm.com>,
	linux-s390@vger.kernel.org, Ilya Leoshkevich <iii@linux.ibm.com>
Subject: [PATCH 0/2] s390/ftrace: implement hotpatching
Date: Wed, 28 Jul 2021 23:25:44 +0200	[thread overview]
Message-ID: <20210728212546.128248-1-iii@linux.ibm.com> (raw)

Hello,

This series implements the stop_machine()-less ftrace code patching
for s390. It's trickier than that of e.g. Intel, because the only
on-the-fly code patching allowed by s390 is changing a mask of a
conditional branch instruction. Patch 1 contains a new common code hook
that we need for that, patch 2 contains the actual implementation as
well as explanation of all the small details.

We would like to take this series through the s390 tree, and we need a
review on the patch 1 for that. Could you please take a look?

Best regards,
Ilya

Ilya Leoshkevich (2):
  ftrace: Introduce ftrace_need_init_nop()
  s390/ftrace: implement hotpatching

 arch/s390/include/asm/ftrace.h     |  46 +------
 arch/s390/include/asm/ftrace.lds.h |  21 +++
 arch/s390/include/asm/module.h     |   8 ++
 arch/s390/kernel/ftrace.c          | 207 ++++++++++++++++++++++++++---
 arch/s390/kernel/ftrace.h          |  24 ++++
 arch/s390/kernel/module.c          |  45 +++++++
 arch/s390/kernel/vmlinux.lds.S     |   2 +
 include/linux/ftrace.h             |  16 +++
 kernel/trace/ftrace.c              |   4 +-
 9 files changed, 314 insertions(+), 59 deletions(-)
 create mode 100644 arch/s390/include/asm/ftrace.lds.h
 create mode 100644 arch/s390/kernel/ftrace.h

-- 
2.31.1


             reply	other threads:[~2021-07-28 21:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-28 21:25 Ilya Leoshkevich [this message]
2021-07-28 21:25 ` [PATCH 1/2] ftrace: Introduce ftrace_need_init_nop() Ilya Leoshkevich
2021-07-31  2:07   ` Steven Rostedt
2021-07-31  6:47     ` Heiko Carstens
2021-07-28 21:25 ` [PATCH 2/2] s390/ftrace: implement hotpatching Ilya Leoshkevich
2021-07-31  6:47 ` [PATCH 0/2] " Heiko Carstens

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=20210728212546.128248-1-iii@linux.ibm.com \
    --to=iii@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rostedt@goodmis.org \
    --cc=svens@linux.ibm.com \
    --subject='Re: [PATCH 0/2] s390/ftrace: implement hotpatching' \
    /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

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 NNTP newsgroup(s).