18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci# builds the trace events example kernel modules; 38c2ecf20Sopenharmony_ci# then to use one (as root): insmod <module_name.ko> 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci# If you include a trace header outside of include/trace/events 68c2ecf20Sopenharmony_ci# then the file that does the #define CREATE_TRACE_POINTS must 78c2ecf20Sopenharmony_ci# have that tracer file in its main search path. This is because 88c2ecf20Sopenharmony_ci# define_trace.h will include it, and must be able to find it from 98c2ecf20Sopenharmony_ci# the include/trace directory. 108c2ecf20Sopenharmony_ci# 118c2ecf20Sopenharmony_ci# Here trace-events-sample.c does the CREATE_TRACE_POINTS. 128c2ecf20Sopenharmony_ci# 138c2ecf20Sopenharmony_ciCFLAGS_trace-events-sample.o := -I$(src) 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciobj-$(CONFIG_SAMPLE_TRACE_EVENTS) += trace-events-sample.o 16