1 //SPDX-License-Identifier: GPL-2.0-only 2 /*lite_hck_sample.h 3 * 4 *OpenHarmony Common Kernel Vendor Hook Smaple 5 * 6 */ 7 8 #ifndef LITE_HCK_SAMPLE_H 9 #define LITE_HCK_SAMPLE_H 10 11 #include <linux/hck/lite_vendor_hooks.h> 12 13 14 struct sample_hck_data { 15 int stat; 16 char* name; 17 }; 18 19 /* 20 * Follwing tracepoints are not exported in trace and provide a 21 * mechanism for vendor modules to hok and extend functionality 22 */ 23 #ifndef CONFIG_HCK 24 25 #define CALL_HCK_LITE_HOOK(name, args...) 26 #define REGISTER_HCK_LITE_HOOK(name, probe) 27 #define REGISTER_HCK_LITE_DATA_HOOK(name, probe, data) 28 29 #else 30 31 DECLARE_HCK_LITE_HOOK(get_boot_config_lhck, TP_PROTO(int* s), TP_ARGS(s)); 32 DECLARE_HCK_LITE_HOOK(set_boot_stat_lhck, TP_PROTO(int m), TP_ARGS(m)); 33 34 #endif 35 36 #endif /* LITE_HCK_SAMPLE_H */ 37