login
Header Space

 
 

[PATCH 0/2]: Add sparc64 ftrace support.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <mingo@...>
Cc: <acme@...>, <srostedt@...>, <linux-kernel@...>
Date: Wednesday, May 14, 2008 - 1:06 am

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.

Signed-off-by: David S. Miller <davem@davemloft.net>
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2]: Add sparc64 ftrace support., David Miller, (Wed May 14, 1:06 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Steven Rostedt, (Wed May 14, 9:09 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Ingo Molnar, (Wed May 14, 2:30 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Sam Ravnborg, (Wed May 14, 2:51 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Ingo Molnar, (Wed May 14, 3:01 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., David Miller, (Wed May 14, 3:11 am)
[PATCH] ftrace: add have dynamic ftrace config for archs, Steven Rostedt, (Sat May 17, 12:01 am)
Re: [PATCH 0/2]: Add sparc64 ftrace support., Ingo Molnar, (Wed May 14, 3:18 am)
speck-geostationary