13298bea7Sopenharmony_ci/* 23298bea7Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 33298bea7Sopenharmony_ci * SPDX-License-Identifier: GPL-2.0 43298bea7Sopenharmony_ci * 53298bea7Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 63298bea7Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 73298bea7Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 83298bea7Sopenharmony_ci * See the License for the specific language governing permissions and 93298bea7Sopenharmony_ci * limitations under the License. 103298bea7Sopenharmony_ci */ 113298bea7Sopenharmony_ci 123298bea7Sopenharmony_ci#include <trace/hooks/mm.h> 133298bea7Sopenharmony_ci#include <trace/hooks/emmc.h> 143298bea7Sopenharmony_ci#include <linux/module.h> 153298bea7Sopenharmony_ci#include <linux/init.h> 163298bea7Sopenharmony_ci#include <linux/kernel.h> 173298bea7Sopenharmony_ci 183298bea7Sopenharmony_cistatic int tracepoint_test_init_module(void) 193298bea7Sopenharmony_ci{ 203298bea7Sopenharmony_ci pr_info("tracepoint test module init\n"); 213298bea7Sopenharmony_ci trace_vendor_do_mmap(NULL, NULL); 223298bea7Sopenharmony_ci trace_vendor_do_mprotect_pkey(NULL, NULL); 233298bea7Sopenharmony_ci trace_vendor_aml_emmc_partition(NULL, NULL); 243298bea7Sopenharmony_ci trace_vendor_fake_boot_partition(NULL, NULL); 253298bea7Sopenharmony_ci return 0; 263298bea7Sopenharmony_ci} 273298bea7Sopenharmony_ci 283298bea7Sopenharmony_cistatic void tracepoint_test_exit_module(void) 293298bea7Sopenharmony_ci{ 303298bea7Sopenharmony_ci pr_info("tracepoint test module exit\n"); 313298bea7Sopenharmony_ci} 323298bea7Sopenharmony_ci 333298bea7Sopenharmony_ci/* module entry points */ 343298bea7Sopenharmony_cimodule_init(tracepoint_test_init_module); 353298bea7Sopenharmony_cimodule_exit(tracepoint_test_exit_module); 363298bea7Sopenharmony_ciMODULE_LICENSE("GPL v2"); 37