MISR Toolkit  1.5.1
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 COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /*
15  * Programmer: Quincey Koziol <koziol@ncsa.uiuc.edu>
16  * Monday, April 17, 2000
17  *
18  * Purpose: The public header file for the log driver.
19  */
20 #ifndef H5FDlog_H
21 #define H5FDlog_H
22 
23 #include "H5Ipublic.h"
24 
25 #define H5FD_LOG (H5FD_log_init())
26 
27 /* Flags for H5Pset_fapl_log() */
28 /* Flags for tracking where reads/writes/seeks occur */
29 #define H5FD_LOG_LOC_READ 0x00000001
30 #define H5FD_LOG_LOC_WRITE 0x00000002
31 #define H5FD_LOG_LOC_SEEK 0x00000004
32 #define H5FD_LOG_LOC_IO (H5FD_LOG_LOC_READ|H5FD_LOG_LOC_WRITE|H5FD_LOG_LOC_SEEK)
33 /* Flags for tracking number of times each byte is read/written */
34 #define H5FD_LOG_FILE_READ 0x00000008
35 #define H5FD_LOG_FILE_WRITE 0x00000010
36 #define H5FD_LOG_FILE_IO (H5FD_LOG_FILE_READ|H5FD_LOG_FILE_WRITE)
37 /* Flag for tracking "flavor" (type) of information stored at each byte */
38 #define H5FD_LOG_FLAVOR 0x00000020
39 /* Flags for tracking total number of reads/writes/seeks/truncates */
40 #define H5FD_LOG_NUM_READ 0x00000040
41 #define H5FD_LOG_NUM_WRITE 0x00000080
42 #define H5FD_LOG_NUM_SEEK 0x00000100
43 #define H5FD_LOG_NUM_TRUNCATE 0x00000200
44 #define H5FD_LOG_NUM_IO (H5FD_LOG_NUM_READ|H5FD_LOG_NUM_WRITE|H5FD_LOG_NUM_SEEK|H5FD_LOG_NUM_TRUNCATE)
45 /* Flags for tracking time spent in open/stat/read/write/seek/close */
46 #define H5FD_LOG_TIME_OPEN 0x00000400
47 #define H5FD_LOG_TIME_STAT 0x00000800
48 #define H5FD_LOG_TIME_READ 0x00001000
49 #define H5FD_LOG_TIME_WRITE 0x00002000
50 #define H5FD_LOG_TIME_SEEK 0x00004000
51 #define H5FD_LOG_TIME_CLOSE 0x00008000
52 #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)
53 /* Flag for tracking allocation of space in file */
54 #define H5FD_LOG_ALLOC 0x00010000
55 #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)
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
62 H5_DLL void H5FD_log_term(void);
63 H5_DLL herr_t H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned long long flags, size_t buf_size);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif
70 
H5_DLL hid_t H5FD_log_init(void)
#define H5_DLL
Definition: H5api_adpt.h:256
int herr_t
Definition: H5public.h:124
int hid_t
Definition: H5Ipublic.h:54
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)
HDFFCLIBAPI intf intf * flags

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52