1 # SPDX-License-Identifier: GPL-2.0
2 obj-$(CONFIG_OPROFILE) += oprofile.o
4 CFLAGS_common.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
6 DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
7 oprof.o cpu_buffer.o buffer_sync.o \
8 event_buffer.o oprofile_files.o \
9 oprofilefs.o oprofile_stats.o \
12 ifeq ($(CONFIG_HW_PERF_EVENTS),y)
13 DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o)
16 oprofile-y := $(DRIVER_OBJS) common.o backtrace.o