Skip to content

RFC kmemtrace RFC (resend 2, fixed wrong Cc)

Eduard - Gabriel Munteanu linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kmemtrace: Core implementation.Documentation/ABI/testing/debugfs-kmemtrace Documentation/kernel-parameters.txt Documentation/vm/kmemtrace.txt +6 more+585 -15 replies
2/4kmemtrace: SLAB hooks.include/linux/slab_def.h mm/slab.c+123 -161 reply
3/4kmemtrace: SLUB hooks.include/linux/slub_def.h mm/slub.c+110 -91 reply
4/4kmemtrace: SLOB hooks.include/linux/slob_def.h mm/slob.c+36 -103 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchPekka Enberg
1/4R-b
2/4
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/4] kmemtrace RFC (resend 2, fixed wrong Cc)

Hi everyone,

I hopefully fixed all your previous objections. I have also set up a git tree for anyone who'd like to try kmemtrace (gitweb URL):

http://repo.or.cz/w/linux-2.6/kmemtrace.git

Comment on the patchset and please try running kmemtrace if possible. Check the docs for information on how to get the userspace tool and set it up.

Important: the kmemtrace-user repo went stable and I'll not alter the revision history anymore. BTW, don't be scared if you see many errors being reported by kmemtrace-report, this is a known issue (I could use some advice on this if you know what's going on).

Changes since last submission:
1. fixed allocator tracing
2. wrote more documentation
3. reworked the ABI and documented it in Documentation/ABI; we don't include kernel headers in userspace anymore
4. added support for disabling kmemtrace at boot-time
5. added provisions for disabling kmemtrace at runtime
6. changed slab allocators to use __always_inline instead of plain inline, so that we're sure the return address is valid
7. removed some useless cast, as pointed out by Pekka Enberg

Since the changes were quite extensive, I chose not to preserve any tags such as "Reviewed-by".

I'm waiting for your input on this.

Thanks,
Eduard

P.S.: Pekka, I followed your advice on adding a field containing the struct size (managed to make room for it without adding to the current struct size). This allows us to do crazy stuff in the future, like exporting the whole stack trace on every allocation. Not sure how useful this is right now, but let's keep the ABI extensible.

Eduard - Gabriel Munteanu (4):
kmemtrace: Core implementation.
kmemtrace: SLAB hooks.
kmemtrace: SLUB hooks.
kmemtrace: SLOB hooks.

 Documentation/ABI/testing/debugfs-kmemtrace |   58 +++++++
 Documentation/kernel-parameters.txt         |   10 +
 Documentation/vm/kmemtrace.txt              |  126 ++++++++++++++
 MAINTAINERS                                 |    6 +
 include/linux/kmemtrace.h                   |  110 ++++++++++++
 include/linux/slab_def.h                    |   68 +++++++-
 include/linux/slob_def.h                    |    9 +-
 include/linux/slub_def.h                    |   53 ++++++-
 init/main.c                                 |    2 +
 lib/Kconfig.debug                           |   28 +++
 mm/Makefile                                 |    2 +-
 mm/kmemtrace.c                              |  244 +++++++++++++++++++++++++++
 mm/slab.c                                   |   71 +++++++-
 mm/slob.c                                   |   37 ++++-
 mm/slub.c                                   |   66 +++++++-
 15 files changed, 854 insertions(+), 36 deletions(-)
 create mode 100644 Documentation/ABI/testing/debugfs-kmemtrace
 create mode 100644 Documentation/vm/kmemtrace.txt
 create mode 100644 include/linux/kmemtrace.h
 create mode 100644 mm/kmemtrace.c

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>