1 | /* Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. |
2 | |
3 | This program is free software; you can redistribute it and/or modify |
4 | it under the terms of the GNU General Public License as published by |
5 | the Free Software Foundation; version 2 of the License. |
6 | |
7 | This program is distributed in the hope that it will be useful, |
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10 | GNU General Public License for more details. |
11 | |
12 | You should have received a copy of the GNU General Public License |
13 | along with this program; if not, write to the Free Software Foundation, |
14 | 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */ |
15 | |
16 | #ifndef PFS_H |
17 | #define PFS_H |
18 | |
19 | /** |
20 | @file storage/perfschema/pfs.h |
21 | Performance schema instrumentation (declarations). |
22 | */ |
23 | |
24 | #define HAVE_PSI_1 |
25 | |
26 | #include <my_pthread.h> |
27 | #include <mysql/psi/psi.h> |
28 | |
29 | /** |
30 | Entry point to the performance schema implementation. |
31 | This singleton is used to discover the performance schema services. |
32 | */ |
33 | extern struct PSI_bootstrap PFS_bootstrap; |
34 | /** Performance schema Thread Local Storage key. */ |
35 | extern pthread_key(PFS_thread*, THR_PFS); |
36 | /** True when @c THR_PFS is initialized. */ |
37 | extern bool THR_PFS_initialized; |
38 | |
39 | #endif |
40 | |
41 | |