diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-12 14:46:25 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-27 03:51:33 -0400 |
commit | 2e4f17d230d84579fef07836fb5f69bf1a0a47ad (patch) | |
tree | 552b861fccfd34c7664f097293ce10014cf6134d /arch/sh/oprofile/Makefile | |
parent | 667b279baa529a1b5bd120d4ce3df643a5749263 (diff) |
sh: oprofile: Fix up and extend op_name_from_perf_id().
op_name_from_perf_id() currently returns a local variable, which isn't
terribly productive. As we only handle a single PMU case for now, simply
allocate and free the string from the arch init/exit context and have
op_name_from_perf_id() hand back the cached string.
This also takes UTS_MACHINE in to account, given that we build for
multiple architectures.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/oprofile/Makefile')
-rw-r--r-- | arch/sh/oprofile/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/oprofile/Makefile b/arch/sh/oprofile/Makefile index e85aae73e3dc..ce3b119021e7 100644 --- a/arch/sh/oprofile/Makefile +++ b/arch/sh/oprofile/Makefile | |||
@@ -1,5 +1,7 @@ | |||
1 | obj-$(CONFIG_OPROFILE) += oprofile.o | 1 | obj-$(CONFIG_OPROFILE) += oprofile.o |
2 | 2 | ||
3 | CFLAGS_common.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' | ||
4 | |||
3 | DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \ | 5 | DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \ |
4 | oprof.o cpu_buffer.o buffer_sync.o \ | 6 | oprof.o cpu_buffer.o buffer_sync.o \ |
5 | event_buffer.o oprofile_files.o \ | 7 | event_buffer.o oprofile_files.o \ |