blob: 2ef14b8fb82658c3221efb0a7c53cf4f65eea903 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
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
22extern void (*tracing_record_cmdline_symbol)(struct task_struct *tsk);
23extern void met_cpu_frequency(unsigned int frequency, unsigned int cpu_id);
24extern void (*met_cpu_frequency_symbol)(unsigned int frequency, unsigned int cpu_id);
25extern void (*met_arch_setup_dma_ops_symbol)(struct device *dev);
26extern u64 (*met_perf_event_read_local_symbol)(struct perf_event *ev);
27extern struct task_struct *(*met_kthread_create_on_cpu_symbol)(int (*threadfn)(void *data),
28 void *data, unsigned int cpu,
29 const char *namefmt);
30extern int (*met_smp_call_function_single_symbol)(int cpu, smp_call_func_t func, void *info, int wait);
31
32extern void met_tracing_record_cmdline(struct task_struct *tsk);
33extern int met_reg_switch(void);
34extern int (*met_reg_switch_symbol)(void);
35extern void met_unreg_switch(void);
36extern void (*met_unreg_switch_symbol)(void);
37extern void met_arch_setup_dma_ops(struct device *dev);
38extern u64 met_perf_event_read_local(struct perf_event *ev);
39extern struct task_struct *met_kthread_create_on_cpu(int (*threadfn)(void *data),
40 void *data, unsigned int cpu,
41 const char *namefmt);
42extern int met_smp_call_function_single(int cpu, smp_call_func_t func, void *info, int wait);
43extern void met_arch_send_call_function_single_ipi(int cpu);
44#endif /* MET_KERNEL_SYMBOL */