Skip to content

Dynamic FTRACE for PA-RISC

Sven Schnelle linux-parisc 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 0 repliesNew
  2. v26 patches 2 repliesSuperseded
  3. v16 patches 7 repliesSuperseded

Changes to v2 from the cover letter

- use offset_in_page() instead of open-coded version

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6parisc: add support for patching multiple wordsarch/parisc/include/asm/patch.h arch/parisc/kernel/patch.c+62 -170 replies
2/6parisc: add spinlock to patch functionarch/parisc/kernel/patch.c+19 -60 replies
3/6parisc: add WARN_ON() to clear_fixmaparch/parisc/mm/fixmap.c+3 -00 replies
4/6parisc: use pr_debug() in kernel/module.carch/parisc/kernel/module.c+19 -250 replies
5/6compiler.h: add CC_USING_PATCHABLE_FUNCTION_ENTRYinclude/linux/compiler_types.h+2 -00 replies
6/6parisc: add dynamic ftracearch/parisc/Kconfig arch/parisc/Makefile arch/parisc/include/asm/ftrace.h +8 more+259 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/6] Dynamic FTRACE for PA-RISC

Hi List,

this series adds support for dynamic ftrace. See the commit message of the patch for a explanation how it works. For testing, you need a patched version of gcc because the current version has a bug which misplaces the function label. John David Anglin can provide a patch which fixes this issue. This issue is tracked here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90751

Changes to v2:

- use offset_in_page() instead of open-coded version

Changes to v1:

- replace a few hardcoded size by sizeof()
- change len parameter of patch_text_multiple() to unsigned
- add link to gcc bugtracker

Sven Schnelle (6):
parisc: add support for patching multiple words
parisc: add spinlock to patch function
parisc: add WARN_ON() to clear_fixmap
parisc: use pr_debug() in kernel/module.c compiler.h: add CC_USING_PATCHABLE_FUNCTION_ENTRY
parisc: add dynamic ftrace

 arch/parisc/Kconfig               |   2 +
 arch/parisc/Makefile              |  18 +++++
 arch/parisc/include/asm/ftrace.h  |  15 +++-
 arch/parisc/include/asm/patch.h   |   4 +-
 arch/parisc/kernel/Makefile       |   9 ++-
 arch/parisc/kernel/entry.S        |  64 +++++++++++++++
 arch/parisc/kernel/ftrace.c       | 129 +++++++++++++++++++++++++++---
 arch/parisc/kernel/module.c       |  64 +++++++++------
 arch/parisc/kernel/module.lds     |   7 ++
 arch/parisc/kernel/patch.c        |  88 ++++++++++++++++----
 arch/parisc/kernel/vmlinux.lds.S  |   2 +
 arch/parisc/mm/fixmap.c           |   7 +-
 include/asm-generic/vmlinux.lds.h |   7 ++
 include/linux/compiler_types.h    |   2 +
 14 files changed, 358 insertions(+), 60 deletions(-)
 create mode 100644 arch/parisc/kernel/module.lds
Signature · 1 line
2.20.1