mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 04:32:03 +00:00
3d90a00763
Move the perf-events backend from arch/arm/oprofile into drivers/oprofile so that the code can be shared between architectures. This allows each architecture to maintain only a single copy of the PMU accessor functions instead of one for both perf and OProfile. It also becomes possible for other architectures to delete much of their OProfile code in favour of the common code now available in drivers/oprofile/oprofile_perf.c. Signed-off-by: Matt Fleming <matt@console-pimps.org> Tested-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Robert Richter <robert.richter@amd.com>
14 lines
374 B
Makefile
14 lines
374 B
Makefile
obj-$(CONFIG_OPROFILE) += oprofile.o
|
|
|
|
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
|