1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * SPDX-License-Identifier: GPL-2.0 4 * 5 * Unless required by applicable law or agreed to in writing, software 6 * distributed under the License is distributed on an "AS IS" BASIS, 7 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 8 * See the License for the specific language governing permissions and 9 * limitations under the License. 10 */ 11 12 #include <trace/hooks/mm.h> 13 #include <trace/hooks/emmc.h> 14 #include <linux/module.h> 15 #include <linux/init.h> 16 #include <linux/kernel.h> 17 tracepoint_test_init_module(void)18static int tracepoint_test_init_module(void) 19 { 20 pr_info("tracepoint test module init\n"); 21 trace_vendor_do_mmap(NULL, NULL); 22 trace_vendor_do_mprotect_pkey(NULL, NULL); 23 trace_vendor_aml_emmc_partition(NULL, NULL); 24 trace_vendor_fake_boot_partition(NULL, NULL); 25 return 0; 26 } 27 tracepoint_test_exit_module(void)28static void tracepoint_test_exit_module(void) 29 { 30 pr_info("tracepoint test module exit\n"); 31 } 32 33 /* module entry points */ 34 module_init(tracepoint_test_init_module); 35 module_exit(tracepoint_test_exit_module); 36 MODULE_LICENSE("GPL v2"); 37