diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-13 15:31:39 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-02-23 00:48:55 +0100 |
commit | b54dcfe108b1b72c9d891dce1034aa5679c0d7db (patch) | |
tree | 6f0d272d80f7859b308e13b102a31e74ebeebde6 /arch/powerpc/lib | |
parent | powerpc32, ftrace: dynamic function graph tracer (diff) | |
download | linux-b54dcfe108b1b72c9d891dce1034aa5679c0d7db.tar.xz linux-b54dcfe108b1b72c9d891dce1034aa5679c0d7db.zip |
powerpc, ftrace: use unsigned int for instruction manipulation
The original port of ftrace to PowerPC kept a lot of the code used
by x86. Some of this code was to handle x86's 5 byte instruction.
This was handled by using character arrays to manipulate the
code.
PowerPC has a consistent 4 byte instruction. Using unsigned ints
makes the code more efficient as well as more readable.
By converting to use unsigned ints to represent instructions,
I was able to remove the side effects that were needed for
manipulating character strings.
i.e. memcpy and memcmp
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/lib')
0 files changed, 0 insertions, 0 deletions