58 lines · 2.0 KB · Makefile
RawDownload
 # Do not instrument the tracer itself: ifdef CONFIG_FUNCTION_TRACERORIG_CFLAGS := $(KBUILD_CFLAGS)KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) # selftest needs instrumentationCFLAGS_trace_selftest_dynamic.o = -pgobj-y += trace_selftest_dynamic.oendif # If unlikely tracing is enabled, do not trace these filesifdef CONFIG_TRACING_BRANCHESKBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILINGendif ## Make the trace clocks available generally: it's infrastructure# relied on by ptrace for example:#obj-y += trace_clock.o obj-$(CONFIG_FUNCTION_TRACER) += libftrace.oobj-$(CONFIG_RING_BUFFER) += ring_buffer.oobj-$(CONFIG_RING_BUFFER_BENCHMARK) += ring_buffer_benchmark.o obj-$(CONFIG_TRACING) += trace.oobj-$(CONFIG_TRACING) += trace_output.oobj-$(CONFIG_TRACING) += trace_stat.oobj-$(CONFIG_TRACING) += trace_printk.oobj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.oobj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.oobj-$(CONFIG_FUNCTION_TRACER) += trace_functions.oobj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.oobj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.oobj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.oobj-$(CONFIG_NOP_TRACER) += trace_nop.oobj-$(CONFIG_STACK_TRACER) += trace_stack.oobj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.oobj-$(CONFIG_BOOT_TRACER) += trace_boot.oobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += trace_functions_graph.oobj-$(CONFIG_TRACE_BRANCH_PROFILING) += trace_branch.oobj-$(CONFIG_HW_BRANCH_TRACER) += trace_hw_branches.oobj-$(CONFIG_POWER_TRACER) += trace_power.oobj-$(CONFIG_KMEMTRACE) += kmemtrace.oobj-$(CONFIG_WORKQUEUE_TRACER) += trace_workqueue.oobj-$(CONFIG_BLK_DEV_IO_TRACE) += blktrace.oifeq ($(CONFIG_BLOCK),y)obj-$(CONFIG_EVENT_TRACING) += blktrace.oendifobj-$(CONFIG_EVENT_TRACING) += trace_events.oobj-$(CONFIG_EVENT_TRACING) += trace_export.oobj-$(CONFIG_FTRACE_SYSCALLS) += trace_syscalls.oobj-$(CONFIG_EVENT_PROFILE) += trace_event_profile.oobj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o libftrace-y := ftrace.o