kernel-brax3-ubuntu-touch/include/trace/hooks/restore_incpath.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

32 lines
867 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Include this file from a header declaring vendor hooks to preserve and later
* restore TRACE_INCLUDE_PATH value. Typical usage:
*
* #ifdef PROTECT_TRACE_INCLUDE_PATH
* #undef PROTECT_TRACE_INCLUDE_PATH
*
* #include <trace/hooks/save_incpath.h>
* #include <vendor hooks header>
* #include <trace/hooks/restore_incpath.h>
*
* #else
*
* <vendor hook definitions>
*
* #endif
*
* The header that includes vendor hooks header file should define
* PROTECT_TRACE_INCLUDE_PATH before including the vendor hook file like this:
*
* #define PROTECT_TRACE_INCLUDE_PATH
* #include <vendor hooks header>
*/
#ifdef STORED_TRACE_INCLUDE_PATH
# undef TRACE_INCLUDE_PATH
# define TRACE_INCLUDE_PATH STORED_TRACE_INCLUDE_PATH
# undef STORED_TRACE_INCLUDE_PATH
#else
# undef TRACE_INCLUDE_PATH
#endif