HDF5
1.12.0
hdf5-1.12.0
src
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
#define H5FD_LOG (H5FD_log_init())
24
25
/* Flags for H5Pset_fapl_log() */
26
/* Flags for tracking 'meta' operations (truncate) */
27
#define H5FD_LOG_TRUNCATE 0x00000001
28
#define H5FD_LOG_META_IO (H5FD_LOG_TRUNCATE)
29
/* Flags for tracking where reads/writes/seeks occur */
30
#define H5FD_LOG_LOC_READ 0x00000002
31
#define H5FD_LOG_LOC_WRITE 0x00000004
32
#define H5FD_LOG_LOC_SEEK 0x00000008
33
#define H5FD_LOG_LOC_IO (H5FD_LOG_LOC_READ|H5FD_LOG_LOC_WRITE|H5FD_LOG_LOC_SEEK)
34
/* Flags for tracking number of times each byte is read/written */
35
#define H5FD_LOG_FILE_READ 0x00000010
36
#define H5FD_LOG_FILE_WRITE 0x00000020
37
#define H5FD_LOG_FILE_IO (H5FD_LOG_FILE_READ|H5FD_LOG_FILE_WRITE)
38
/* Flag for tracking "flavor" (type) of information stored at each byte */
39
#define H5FD_LOG_FLAVOR 0x00000040
40
/* Flags for tracking total number of reads/writes/seeks/truncates */
41
#define H5FD_LOG_NUM_READ 0x00000080
42
#define H5FD_LOG_NUM_WRITE 0x00000100
43
#define H5FD_LOG_NUM_SEEK 0x00000200
44
#define H5FD_LOG_NUM_TRUNCATE 0x00000400
45
#define H5FD_LOG_NUM_IO (H5FD_LOG_NUM_READ|H5FD_LOG_NUM_WRITE|H5FD_LOG_NUM_SEEK|H5FD_LOG_NUM_TRUNCATE)
46
/* Flags for tracking time spent in open/stat/read/write/seek/truncate/close */
47
#define H5FD_LOG_TIME_OPEN 0x00000800
48
#define H5FD_LOG_TIME_STAT 0x00001000
49
#define H5FD_LOG_TIME_READ 0x00002000
50
#define H5FD_LOG_TIME_WRITE 0x00004000
51
#define H5FD_LOG_TIME_SEEK 0x00008000
52
#define H5FD_LOG_TIME_TRUNCATE 0x00010000
53
#define H5FD_LOG_TIME_CLOSE 0x00020000
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_TRUNCATE|H5FD_LOG_TIME_CLOSE)
55
/* Flags for tracking allocation/release of space in file */
56
#define H5FD_LOG_ALLOC 0x00040000
57
#define H5FD_LOG_FREE 0x00080000
58
#define H5FD_LOG_ALL (H5FD_LOG_FREE|H5FD_LOG_ALLOC|H5FD_LOG_TIME_IO|H5FD_LOG_NUM_IO|H5FD_LOG_FLAVOR|H5FD_LOG_FILE_IO|H5FD_LOG_LOC_IO|H5FD_LOG_META_IO)
59
60
#ifdef __cplusplus
61
extern
"C"
{
62
#endif
63
64
H5_DLL
hid_t
H5FD_log_init
(
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
H5Pset_fapl_log
H5_DLL herr_t H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned long long flags, size_t buf_size)
Definition:
H5FDlog.c:319
hid_t
int64_t hid_t
Definition:
H5Ipublic.h:55
H5_DLL
#define H5_DLL
Definition:
H5api_adpt.h:234
H5FD_log_init
H5_DLL hid_t H5FD_log_init(void)
Definition:
H5FDlog.c:264
herr_t
int herr_t
Definition:
H5public.h:128
Generated by
1.8.18