HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
H5FDlog.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright by The HDF Group. *
3  * Copyright by the Board of Trustees of the University of Illinois. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF5. The full HDF5 copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the files COPYING and Copyright.html. COPYING can be found at the root *
9  * of the source code distribution tree; Copyright.html can be found at the *
10  * root level of an installed copy of the electronic HDF5 document set and *
11  * is linked from the top-level documents page. It can also be found at *
12  * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
13  * access to either file, you may request a copy from help@hdfgroup.org. *
14  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /*
17  * Programmer: Quincey Koziol <koziol@ncsa.uiuc.edu>
18  * Monday, April 17, 2000
19  *
20  * Purpose: The public header file for the log driver.
21  */
22 #ifndef H5FDlog_H
23 #define H5FDlog_H
24 
25 #include "H5Ipublic.h"
26 
27 #define H5FD_LOG (H5FD_log_init())
28 
29 /* Flags for H5Pset_fapl_log() */
30 /* Flags for tracking where reads/writes/seeks occur */
31 #define H5FD_LOG_LOC_READ 0x00000001
32 #define H5FD_LOG_LOC_WRITE 0x00000002
33 #define H5FD_LOG_LOC_SEEK 0x00000004
34 #define H5FD_LOG_LOC_IO (H5FD_LOG_LOC_READ|H5FD_LOG_LOC_WRITE|H5FD_LOG_LOC_SEEK)
35 /* Flags for tracking number of times each byte is read/written */
36 #define H5FD_LOG_FILE_READ 0x00000008
37 #define H5FD_LOG_FILE_WRITE 0x00000010
38 #define H5FD_LOG_FILE_IO (H5FD_LOG_FILE_READ|H5FD_LOG_FILE_WRITE)
39 /* Flag for tracking "flavor" (type) of information stored at each byte */
40 #define H5FD_LOG_FLAVOR 0x00000020
41 /* Flags for tracking total number of reads/writes/seeks/truncates */
42 #define H5FD_LOG_NUM_READ 0x00000040
43 #define H5FD_LOG_NUM_WRITE 0x00000080
44 #define H5FD_LOG_NUM_SEEK 0x00000100
45 #define H5FD_LOG_NUM_TRUNCATE 0x00000200
46 #define H5FD_LOG_NUM_IO (H5FD_LOG_NUM_READ|H5FD_LOG_NUM_WRITE|H5FD_LOG_NUM_SEEK|H5FD_LOG_NUM_TRUNCATE)
47 /* Flags for tracking time spent in open/stat/read/write/seek/close */
48 #define H5FD_LOG_TIME_OPEN 0x00000400
49 #define H5FD_LOG_TIME_STAT 0x00000800
50 #define H5FD_LOG_TIME_READ 0x00001000
51 #define H5FD_LOG_TIME_WRITE 0x00002000
52 #define H5FD_LOG_TIME_SEEK 0x00004000
53 #define H5FD_LOG_TIME_CLOSE 0x00008000
54 #define H5FD_LOG_TIME_IO (H5FD_LOG_TIME_OPEN|H5FD_LOG_TIME_STAT|H5FD_LOG_TIME_READ|H5FD_LOG_TIME_WRITE|H5FD_LOG_TIME_SEEK|H5FD_LOG_TIME_CLOSE)
55 /* Flag for tracking allocation of space in file */
56 #define H5FD_LOG_ALLOC 0x00010000
57 #define H5FD_LOG_ALL (H5FD_LOG_ALLOC|H5FD_LOG_TIME_IO|H5FD_LOG_NUM_IO|H5FD_LOG_FLAVOR|H5FD_LOG_FILE_IO|H5FD_LOG_LOC_IO)
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
64 H5_DLL void H5FD_log_term(void);
65 H5_DLL herr_t H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned long long flags, size_t buf_size);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif
72 
H5_DLL hid_t H5FD_log_init(void)
#define H5_DLL
Definition: H5api_adpt.h:406
int herr_t
Definition: H5public.h:107
GLbitfield flags
Definition: glcorearb.h:1595
int hid_t
Definition: H5Ipublic.h:56
H5_DLL herr_t H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned long long flags, size_t buf_size)
H5_DLL void H5FD_log_term(void)