• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-only
2 /* vendor_hooks.c
3  *
4  * Vendor Hook Support
5  *
6  * Copyright (C) 2020 Google, Inc.
7  * Copyright (C) 2022 Huawei Technologies Co., Ltd.
8  */
9 
10 #define CREATE_TRACE_POINTS
11 #include <trace/hooks/vendor_hooks.h>
12 #include <trace/hooks/mm.h>
13 
14 /*
15  * Export tracepoints that act as a bare tracehook(ie: have no trace event
16  * associated with them) to allow external modules to probe them.
17  *
18  * For example:
19  *   EXPORT_TRACEPOINT_SYMBOL_GPL(vendor_foo);
20  */
21 
22 EXPORT_TRACEPOINT_SYMBOL_GPL(vendor_do_mmap);
23 EXPORT_TRACEPOINT_SYMBOL_GPL(vendor_do_mprotect_pkey);
24