hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* 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 TRACE_INCLUDE_PATH
#define STORED_TRACE_INCLUDE_PATH TRACE_INCLUDE_PATH
#undef TRACE_INCLUDE_PATH
#endif