mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
2e4f17d230
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>
16 lines
436 B
Makefile
16 lines
436 B
Makefile
obj-$(CONFIG_OPROFILE) += oprofile.o
|
|
|
|
CFLAGS_common.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
|
|
|
|
DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
|
|
oprof.o cpu_buffer.o buffer_sync.o \
|
|
event_buffer.o oprofile_files.o \
|
|
oprofilefs.o oprofile_stats.o \
|
|
timer_int.o )
|
|
|
|
ifeq ($(CONFIG_HW_PERF_EVENTS),y)
|
|
DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o)
|
|
endif
|
|
|
|
oprofile-y := $(DRIVER_OBJS) common.o backtrace.o
|