99e8fdac68fa42e0f5494748c145d888d5906945
[kernel/swap-modules.git] / webprobe / webprobe_prof.h
1 #ifndef _WEBPROBE_PROF_H
2 #define _WEBPROBE_PROF_H
3
4 /**
5  * @file webprobe/webprobe_prof.h
6  * @author Anastasia Lyupa <a.lyupa@samsung.com>
7  *
8  * @section LICENSE
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, see <http://www.gnu.org/licenses/>.
21  *
22  * @section COPYRIGHT
23  * Copyright (C) Samsung Electronics, 2015
24  *
25  * @section DESCRIPTION
26  * Profiling for webprobe
27  */
28
29 enum web_prof_addr_t {
30         INSPSERVER_START = 1,
31         TICK_PROBE
32 };
33
34 enum web_prof_state_t {
35         PROF_OFF,
36         PROF_ON
37 };
38
39 int web_prof_init(void);
40 void web_prof_exit(void);
41 int web_prof_enable(void);
42 int web_prof_disable(void);
43 enum web_prof_state_t web_prof_enabled(void);
44 int web_func_inst_remove(enum web_prof_addr_t type);
45 u64 *web_prof_addr_ptr(enum web_prof_addr_t type);
46 unsigned long web_prof_addr(enum web_prof_addr_t type);
47 int web_prof_data_set(char *app_path, char *app_id);
48 struct dentry *web_prof_lib_dentry(void);
49
50 #endif /* _WEBPROBE_PROF_H */