1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Include this file from a header declaring vendor hooks to preserve and later 4*4882a593Smuzhiyun * restore TRACE_INCLUDE_PATH value. Typical usage: 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * #ifdef PROTECT_TRACE_INCLUDE_PATH 7*4882a593Smuzhiyun * #undef PROTECT_TRACE_INCLUDE_PATH 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * #include <trace/hooks/save_incpath.h> 10*4882a593Smuzhiyun * #include <vendor hooks header> 11*4882a593Smuzhiyun * #include <trace/hooks/restore_incpath.h> 12*4882a593Smuzhiyun * 13*4882a593Smuzhiyun * #else 14*4882a593Smuzhiyun * 15*4882a593Smuzhiyun * <vendor hook definitions> 16*4882a593Smuzhiyun * 17*4882a593Smuzhiyun * #endif 18*4882a593Smuzhiyun * 19*4882a593Smuzhiyun * The header that includes vendor hooks header file should define 20*4882a593Smuzhiyun * PROTECT_TRACE_INCLUDE_PATH before including the vendor hook file like this: 21*4882a593Smuzhiyun * 22*4882a593Smuzhiyun * #define PROTECT_TRACE_INCLUDE_PATH 23*4882a593Smuzhiyun * #include <vendor hooks header> 24*4882a593Smuzhiyun */ 25*4882a593Smuzhiyun #ifdef TRACE_INCLUDE_PATH 26*4882a593Smuzhiyun #define STORED_TRACE_INCLUDE_PATH TRACE_INCLUDE_PATH 27*4882a593Smuzhiyun #undef TRACE_INCLUDE_PATH 28*4882a593Smuzhiyun #endif 29*4882a593Smuzhiyun 30