All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Ingo Molnar <mingo@elte.hu>, Steven Rostedt <rostedt@goodmis.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>
Subject: [PATCH/RFC 0/4] Dynamic ftrace support for s390
Date: Tue, 02 Jun 2009 12:53:11 +0200	[thread overview]
Message-ID: <20090602105311.591592481@de.ibm.com> (raw)

This patch series adds dynamic ftrace support for s390.
The first three patches are actually just preparation and cleanup.
However the first patch touches common code, because I want to be able to
have an arch specific version of probe_kernel_write().
The reason for that is that s390 enables page write protection for the
kernel text segment in order to catch random (broken) writes to kernel
text. Since write proctection is enabled any probe_kernel_write() call
would fail.
Now to solve this, we could disable write protection before writing
to the segment and afterwards enable it again (like the x86 specific
ftrace code does). Alternatively we could use some s390 special
instructions in order to bypass virtual addresses and their protection
and directly access the physical page that belongs to the virtual address.
That's my preferred solution and why I'd like to be able an arch
specific version of probe_kernel_write().

If there are no objections, these patches should go upstream via git-s390
I would guess?

Thanks,
Heiko

             reply	other threads:[~2009-06-02 11:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-02 10:53 Heiko Carstens [this message]
2009-06-02 10:53 ` [PATCH/RFC 1/4] maccess: add weak attribute to probe_kernel_write Heiko Carstens
2009-06-02 10:53 ` [PATCH/RFC 2/4] arch specific probe_kernel_write() implementation Heiko Carstens
2009-06-02 10:53 ` [PATCH/RFC 3/4] kprobes: use probe_kernel_write Heiko Carstens
2009-06-02 10:53 ` [PATCH/RFC 4/4] add dynamic ftrace support Heiko Carstens
2009-06-02 15:28   ` 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=20090602105311.591592481@de.ibm.com \
    --to=heiko.carstens@de.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    --cc=schwidefsky@de.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.