rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2018 MediaTek Inc. |
| 3 | * |
| 4 | * This program is free software: you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef MET_KERNEL_SYMBOL |
| 15 | #define MET_KERNEL_SYMBOL |
| 16 | |
| 17 | /*lookup symbol*/ |
| 18 | #include <linux/kallsyms.h> |
| 19 | #include <linux/perf_event.h> |
| 20 | #include <linux/kthread.h> |
| 21 | |
| 22 | extern void (*tracing_record_cmdline_symbol)(struct task_struct *tsk); |
| 23 | extern void met_cpu_frequency(unsigned int frequency, unsigned int cpu_id); |
| 24 | extern void (*met_cpu_frequency_symbol)(unsigned int frequency, unsigned int cpu_id); |
| 25 | extern void (*met_arch_setup_dma_ops_symbol)(struct device *dev); |
| 26 | extern u64 (*met_perf_event_read_local_symbol)(struct perf_event *ev); |
| 27 | extern struct task_struct *(*met_kthread_create_on_cpu_symbol)(int (*threadfn)(void *data), |
| 28 | void *data, unsigned int cpu, |
| 29 | const char *namefmt); |
| 30 | extern int (*met_smp_call_function_single_symbol)(int cpu, smp_call_func_t func, void *info, int wait); |
| 31 | |
| 32 | extern void met_tracing_record_cmdline(struct task_struct *tsk); |
| 33 | extern int met_reg_switch(void); |
| 34 | extern int (*met_reg_switch_symbol)(void); |
| 35 | extern void met_unreg_switch(void); |
| 36 | extern void (*met_unreg_switch_symbol)(void); |
| 37 | extern void met_arch_setup_dma_ops(struct device *dev); |
| 38 | extern u64 met_perf_event_read_local(struct perf_event *ev); |
| 39 | extern struct task_struct *met_kthread_create_on_cpu(int (*threadfn)(void *data), |
| 40 | void *data, unsigned int cpu, |
| 41 | const char *namefmt); |
| 42 | extern int met_smp_call_function_single(int cpu, smp_call_func_t func, void *info, int wait); |
| 43 | extern void met_arch_send_call_function_single_ipi(int cpu); |
| 44 | #endif /* MET_KERNEL_SYMBOL */ |