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