Skip to content

kprobes: notrace enhancements

Nadav Amit linux-arch linux-arm-kernel linux-ia64 linux-mm linux-um lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 8 repliesSuperseded

Changes in v2 from the cover letter

* Add find_bit to tracable libraries
* Improve the change log to explain the reasons for inline->notrace
* Switch the order of patch 2 and patch 3

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kprobes: Mark descendents of core_kernel_text as notracearch/arm/kernel/process.c arch/ia64/mm/init.c arch/x86/entry/vsyscall/vsyscall_64.c +4 more+11 -110 replies
2/3compiler: inline does not imply notraceinclude/linux/compiler_types.h+1 -14 replies
3/3lib: Allow traceing of usercopy, xarray, iov_iter, find_bitlib/Makefile+5 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] kprobes: notrace enhancements

From: Nadav Amit <[email protected]>

There are inconsistencies and some issues in marking functions as notrace. On one hand, all inline functions are marked as "notrace" and some libraries cannot be traced. As more users and tools try to make use of the tracing functionality, it is beneficial to allow their tracing as possible.

At the same time, some functions should not be traced but are not marked as notrace.

These patch address issues that I encountered during work on an automatic tracing tool.

---

v1->v2:
* Add find_bit to tracable libraries
* Improve the change log to explain the reasons for inline->notrace
* Switch the order of patch 2 and patch 3

Nadav Amit (3):
kprobes: Mark descendents of core_kernel_text as notrace
compiler: inline does not imply notrace
lib: Allow traceing of usercopy, xarray, iov_iter, find_bit

 arch/arm/kernel/process.c             | 2 +-
 arch/ia64/mm/init.c                   | 2 +-
 arch/x86/entry/vsyscall/vsyscall_64.c | 2 +-
 arch/x86/um/mem_32.c                  | 2 +-
 include/asm-generic/sections.h        | 6 +++---
 include/linux/compiler_types.h        | 2 +-
 include/linux/kallsyms.h              | 6 +++---
 include/linux/mm.h                    | 2 +-
 lib/Makefile                          | 5 +++++
 9 files changed, 17 insertions(+), 12 deletions(-)
Signature · 1 line
2.25.1