Update to 3.4-final.
[linux-flexiantxendom0-3.2.10.git] / arch / x86 / include / mach-xen / asm / xenoprof.h
1 /******************************************************************************
2  * asm-i386/mach-xen/asm/xenoprof.h
3  *
4  * Copyright (c) 2006 Isaku Yamahata <yamahata at valinux co jp>
5  *                    VA Linux Systems Japan K.K.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21  */
22 #ifndef __ASM_XENOPROF_H__
23 #define __ASM_XENOPROF_H__
24 #ifdef CONFIG_XEN
25
26 struct super_block;
27 struct dentry;
28 int xenoprof_create_files(struct super_block * sb, struct dentry * root);
29 #define HAVE_XENOPROF_CREATE_FILES
30
31 struct xenoprof_init;
32 void xenoprof_arch_init_counter(struct xenoprof_init *init);
33 void xenoprof_arch_counter(void);
34 void xenoprof_arch_start(void);
35 void xenoprof_arch_stop(void);
36
37 struct xenoprof_arch_shared_buffer {
38         /* nothing */
39 };
40 struct xenoprof_shared_buffer;
41 void xenoprof_arch_unmap_shared_buffer(struct xenoprof_shared_buffer* sbuf);
42 struct xenoprof_get_buffer;
43 int xenoprof_arch_map_shared_buffer(struct xenoprof_get_buffer* get_buffer, struct xenoprof_shared_buffer* sbuf);
44 struct xenoprof_passive;
45 int xenoprof_arch_set_passive(struct xenoprof_passive* pdomain, struct xenoprof_shared_buffer* sbuf);
46
47 #endif /* CONFIG_XEN */
48 #endif /* __ASM_XENOPROF_H__ */