162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci# builds the trace events example kernel modules;
362306a36Sopenharmony_ci# then to use one (as root):  insmod <module_name.ko>
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci# If you include a trace header outside of include/trace/events
662306a36Sopenharmony_ci# then the file that does the #define CREATE_TRACE_POINTS must
762306a36Sopenharmony_ci# have that tracer file in its main search path. This is because
862306a36Sopenharmony_ci# define_trace.h will include it, and must be able to find it from
962306a36Sopenharmony_ci# the include/trace directory.
1062306a36Sopenharmony_ci#
1162306a36Sopenharmony_ci# Here trace-events-sample.c does the CREATE_TRACE_POINTS.
1262306a36Sopenharmony_ci#
1362306a36Sopenharmony_ciCFLAGS_trace-events-sample.o := -I$(src)
1462306a36Sopenharmony_ciCFLAGS_trace_custom_sched.o := -I$(src)
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciobj-$(CONFIG_SAMPLE_TRACE_EVENTS) += trace-events-sample.o
1762306a36Sopenharmony_ciobj-$(CONFIG_SAMPLE_TRACE_CUSTOM_EVENTS) += trace_custom_sched.o
18