Skip to content

: Add sparc64 ftrace support.

David Miller lkml 1 version Applied

Status from this message: applied, thanks David. Cool stuff! :-)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 11 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2: ftrace: Remove packed attribute on ftrace_page.kernel/trace/ftrace.c+2 -21 reply
2/2: sparc64: Add ftrace support.arch/sparc64/Kconfig arch/sparc64/Kconfig.debug arch/sparc64/kernel/Makefile +2 more+156 -54 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSteven Rostedt
1/2A-b
2/2A-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 [PATCH 0/2]: Add sparc64 ftrace support.

This was a lot more trivial than I expected, about a 20 minute hack. Most of the time was spent on test boots :)

The first patch removes the packed attribute from the ftrace_page blob of dynamic ftrace entries, because not only does it cause unaligned accesses on sparc64 it's also totally useless.

The second patch adds sparc64 ftrace support.

One thing I noticed is that sparc64 uses an mcount implementation already for a quick-and-dirty stack usage checker. I tried to make them live alongside eachother.

Next, I think the mcount symbol export needs some tweaking. On sparc, the symbol _mcount is what the compiler references (this seems to be a sparc sysv4'ism) whereas on x86 it appears that plain "mcount" is used. I provide both symbols and we already have a local export of "_mcount" to take care of this. I think architectures should deal with this symbol exporting since it is different on every system.