2006-01-29 10:34:14 +08:00
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2007-02-07 22:56:24 +08:00
|
|
|
|
* Copyright by The HDF Group. *
|
2006-01-29 10:34:14 +08:00
|
|
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
|
|
|
* All rights reserved. *
|
|
|
|
|
* *
|
|
|
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
|
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
|
|
|
* the files COPYING and Copyright.html. COPYING can be found at the root *
|
|
|
|
|
* of the source code distribution tree; Copyright.html can be found at the *
|
|
|
|
|
* root level of an installed copy of the electronic HDF5 document set and *
|
|
|
|
|
* is linked from the top-level documents page. It can also be found at *
|
2007-02-07 22:56:24 +08:00
|
|
|
|
* http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
|
|
|
|
|
* access to either file, you may request a copy from help@hdfgroup.org. *
|
2006-01-29 10:34:14 +08:00
|
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
|
|
|
|
|
/* Programmer: John Mainzer
|
|
|
|
|
* 10/27/05
|
|
|
|
|
*
|
|
|
|
|
* This file contains common #defines, type definitions, and
|
|
|
|
|
* externs for tests of the cache implemented in H5C.c
|
|
|
|
|
*/
|
[svn-r16587] Description:
Add infrastructure & tests for "flush dependencies" in metadata cache,
which allow relationships that specify which order to flush metadata entries in.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-18 01:08:12 +08:00
|
|
|
|
#ifndef _CACHE_COMMON_H
|
|
|
|
|
#define _CACHE_COMMON_H
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2015-09-14 11:58:59 +08:00
|
|
|
|
#define H5C_FRIEND /*suppress error about including H5Cpkg */
|
|
|
|
|
#define H5F_FRIEND /*suppress error about including H5Fpkg */
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
[svn-r16587] Description:
Add infrastructure & tests for "flush dependencies" in metadata cache,
which allow relationships that specify which order to flush metadata entries in.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-18 01:08:12 +08:00
|
|
|
|
/* Include library header files */
|
|
|
|
|
#include "H5ACprivate.h"
|
2006-01-29 10:34:14 +08:00
|
|
|
|
#include "H5Cpkg.h"
|
[svn-r16587] Description:
Add infrastructure & tests for "flush dependencies" in metadata cache,
which allow relationships that specify which order to flush metadata entries in.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-18 01:08:12 +08:00
|
|
|
|
#include "H5Fpkg.h"
|
|
|
|
|
#include "H5Iprivate.h"
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
[svn-r16587] Description:
Add infrastructure & tests for "flush dependencies" in metadata cache,
which allow relationships that specify which order to flush metadata entries in.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-18 01:08:12 +08:00
|
|
|
|
/* Include test header files */
|
|
|
|
|
#include "h5test.h"
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
[svn-r16587] Description:
Add infrastructure & tests for "flush dependencies" in metadata cache,
which allow relationships that specify which order to flush metadata entries in.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-18 01:08:12 +08:00
|
|
|
|
/* Macro to make error reporting easier */
|
[svn-r16618] Description:
Modify metadata cache flush dependency feature to allow it to work
with entries that are pinned through the cache API calls.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-27 02:16:54 +08:00
|
|
|
|
#define CACHE_ERROR(s) {failure_mssg = "Line #" H5_TOSTRING(__LINE__) ": " s ; pass = FALSE; goto done;}
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
[svn-r18702] Description:
Bring r18672 from metadata journaling "merging" branch to trunk:
Mostly changes to move to only using one 'user data' parameter for
calls to H5AC_protect(), along with some minor reformatting code cleanups.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-05 21:39:56 +08:00
|
|
|
|
#define NO_CHANGE -1
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
|
|
|
|
/* with apologies for the abuse of terminology... */
|
|
|
|
|
|
|
|
|
|
#define PICO_ENTRY_TYPE 0
|
|
|
|
|
#define NANO_ENTRY_TYPE 1
|
|
|
|
|
#define MICRO_ENTRY_TYPE 2
|
|
|
|
|
#define TINY_ENTRY_TYPE 3
|
|
|
|
|
#define SMALL_ENTRY_TYPE 4
|
|
|
|
|
#define MEDIUM_ENTRY_TYPE 5
|
|
|
|
|
#define LARGE_ENTRY_TYPE 6
|
|
|
|
|
#define HUGE_ENTRY_TYPE 7
|
|
|
|
|
#define MONSTER_ENTRY_TYPE 8
|
2006-10-18 18:51:26 +08:00
|
|
|
|
#define VARIABLE_ENTRY_TYPE 9
|
[svn-r16874] Description:
Add test for cache client 'notify' callback.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-04-29 03:30:05 +08:00
|
|
|
|
#define NOTIFY_ENTRY_TYPE 10
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
[svn-r16874] Description:
Add test for cache client 'notify' callback.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-04-29 03:30:05 +08:00
|
|
|
|
#define NUMBER_OF_ENTRY_TYPES 11
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
|
|
|
|
#define PICO_ENTRY_SIZE (size_t)1
|
|
|
|
|
#define NANO_ENTRY_SIZE (size_t)4
|
|
|
|
|
#define MICRO_ENTRY_SIZE (size_t)16
|
|
|
|
|
#define TINY_ENTRY_SIZE (size_t)64
|
|
|
|
|
#define SMALL_ENTRY_SIZE (size_t)256
|
|
|
|
|
#define MEDIUM_ENTRY_SIZE (size_t)1024
|
|
|
|
|
#define LARGE_ENTRY_SIZE (size_t)(4 * 1024)
|
|
|
|
|
#define HUGE_ENTRY_SIZE (size_t)(16 * 1024)
|
|
|
|
|
#define MONSTER_ENTRY_SIZE (size_t)(64 * 1024)
|
2006-10-18 18:51:26 +08:00
|
|
|
|
#define VARIABLE_ENTRY_SIZE (size_t)(10 * 1024)
|
[svn-r16874] Description:
Add test for cache client 'notify' callback.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-04-29 03:30:05 +08:00
|
|
|
|
#define NOTIFY_ENTRY_SIZE (size_t)1
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
|
|
|
|
#define NUM_PICO_ENTRIES (10 * 1024)
|
|
|
|
|
#define NUM_NANO_ENTRIES (10 * 1024)
|
|
|
|
|
#define NUM_MICRO_ENTRIES (10 * 1024)
|
|
|
|
|
#define NUM_TINY_ENTRIES (10 * 1024)
|
|
|
|
|
#define NUM_SMALL_ENTRIES (10 * 1024)
|
|
|
|
|
#define NUM_MEDIUM_ENTRIES (10 * 1024)
|
|
|
|
|
#define NUM_LARGE_ENTRIES (10 * 1024)
|
|
|
|
|
#define NUM_HUGE_ENTRIES (10 * 1024)
|
|
|
|
|
#define NUM_MONSTER_ENTRIES (10 * 1024)
|
2006-10-18 18:51:26 +08:00
|
|
|
|
#define NUM_VARIABLE_ENTRIES (10 * 1024)
|
[svn-r16874] Description:
Add test for cache client 'notify' callback.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-04-29 03:30:05 +08:00
|
|
|
|
#define NUM_NOTIFY_ENTRIES (10 * 1024)
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
|
|
|
|
#define MAX_ENTRIES (10 * 1024)
|
|
|
|
|
|
[svn-r18702] Description:
Bring r18672 from metadata journaling "merging" branch to trunk:
Mostly changes to move to only using one 'user data' parameter for
calls to H5AC_protect(), along with some minor reformatting code cleanups.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-05 21:39:56 +08:00
|
|
|
|
|
2010-01-30 12:29:13 +08:00
|
|
|
|
/* The choice of the BASE_ADDR below is arbitrary -- it just has to be
|
[svn-r18171] Description:
Bring r18169 from 'merge_metadata_journaling' branch back to trunk:
Converge changes on metadata_journaling branch and trunk:
- Remove H5F_t* parameter from H5HL_unprotect()
- Remove H5F_t* parameter from H5HL_dirty()
- Remove H5F_t* parameter from H5O_unprotect()
- Bring changes to metadata caching routines back:
- H5AC_pin_protected_entry()
- H5AC_resize_pinned_entry()
- H5AC_unpin_entry()
- H5AC_mark_pinned_entry_dirty()
- H5AC_mark_pinned_or_protected_entry_dirty()
- Revise internal H5C routines to drop H5F_t* and/or H5C_t* as
parameter where possible
- Revise tests to follow internal routine changes
Also, drop file/cache pointer parameter from create/destroy flush
dependency internal cache calls.
Also, other minor changes to speedup the 'cache' test.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.2 (amazon) in debug mode
Mac OS X/32 10.6.2 (amazon) w/C++ & FORTRAN, w/threadsafe,
2010-01-27 23:07:42 +08:00
|
|
|
|
* larger than the superblock.
|
|
|
|
|
*/
|
2010-01-30 12:29:13 +08:00
|
|
|
|
#define BASE_ADDR (haddr_t)1024
|
[svn-r18171] Description:
Bring r18169 from 'merge_metadata_journaling' branch back to trunk:
Converge changes on metadata_journaling branch and trunk:
- Remove H5F_t* parameter from H5HL_unprotect()
- Remove H5F_t* parameter from H5HL_dirty()
- Remove H5F_t* parameter from H5O_unprotect()
- Bring changes to metadata caching routines back:
- H5AC_pin_protected_entry()
- H5AC_resize_pinned_entry()
- H5AC_unpin_entry()
- H5AC_mark_pinned_entry_dirty()
- H5AC_mark_pinned_or_protected_entry_dirty()
- Revise internal H5C routines to drop H5F_t* and/or H5C_t* as
parameter where possible
- Revise tests to follow internal routine changes
Also, drop file/cache pointer parameter from create/destroy flush
dependency internal cache calls.
Also, other minor changes to speedup the 'cache' test.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.2 (amazon) in debug mode
Mac OS X/32 10.6.2 (amazon) w/C++ & FORTRAN, w/threadsafe,
2010-01-27 23:07:42 +08:00
|
|
|
|
#define PICO_BASE_ADDR BASE_ADDR
|
2006-01-29 10:34:14 +08:00
|
|
|
|
#define NANO_BASE_ADDR (haddr_t)(PICO_BASE_ADDR + \
|
|
|
|
|
(PICO_ENTRY_SIZE * NUM_PICO_ENTRIES))
|
|
|
|
|
#define MICRO_BASE_ADDR (haddr_t)(NANO_BASE_ADDR + \
|
|
|
|
|
(NANO_ENTRY_SIZE * NUM_NANO_ENTRIES))
|
|
|
|
|
#define TINY_BASE_ADDR (haddr_t)(MICRO_BASE_ADDR + \
|
|
|
|
|
(MICRO_ENTRY_SIZE * NUM_MICRO_ENTRIES))
|
|
|
|
|
#define SMALL_BASE_ADDR (haddr_t)(TINY_BASE_ADDR + \
|
|
|
|
|
(TINY_ENTRY_SIZE * NUM_TINY_ENTRIES))
|
|
|
|
|
#define MEDIUM_BASE_ADDR (haddr_t)(SMALL_BASE_ADDR + \
|
|
|
|
|
(SMALL_ENTRY_SIZE * NUM_SMALL_ENTRIES))
|
|
|
|
|
#define LARGE_BASE_ADDR (haddr_t)(MEDIUM_BASE_ADDR + \
|
|
|
|
|
(MEDIUM_ENTRY_SIZE * NUM_MEDIUM_ENTRIES))
|
|
|
|
|
#define HUGE_BASE_ADDR (haddr_t)(LARGE_BASE_ADDR + \
|
|
|
|
|
(LARGE_ENTRY_SIZE * NUM_LARGE_ENTRIES))
|
|
|
|
|
#define MONSTER_BASE_ADDR (haddr_t)(HUGE_BASE_ADDR + \
|
|
|
|
|
(HUGE_ENTRY_SIZE * NUM_HUGE_ENTRIES))
|
2006-10-18 18:51:26 +08:00
|
|
|
|
#define VARIABLE_BASE_ADDR (haddr_t)(MONSTER_BASE_ADDR + \
|
2006-01-29 10:34:14 +08:00
|
|
|
|
(MONSTER_ENTRY_SIZE * NUM_MONSTER_ENTRIES))
|
[svn-r16874] Description:
Add test for cache client 'notify' callback.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-04-29 03:30:05 +08:00
|
|
|
|
#define NOTIFY_BASE_ADDR (haddr_t)(VARIABLE_BASE_ADDR + \
|
|
|
|
|
(VARIABLE_ENTRY_SIZE * NUM_VARIABLE_ENTRIES))
|
2006-10-18 18:51:26 +08:00
|
|
|
|
|
[svn-r16874] Description:
Add test for cache client 'notify' callback.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-04-29 03:30:05 +08:00
|
|
|
|
#define PICO_ALT_BASE_ADDR (haddr_t)(NOTIFY_BASE_ADDR + \
|
|
|
|
|
(NOTIFY_ENTRY_SIZE * NUM_NOTIFY_ENTRIES))
|
2006-01-29 10:34:14 +08:00
|
|
|
|
#define NANO_ALT_BASE_ADDR (haddr_t)(PICO_ALT_BASE_ADDR + \
|
|
|
|
|
(PICO_ENTRY_SIZE * NUM_PICO_ENTRIES))
|
|
|
|
|
#define MICRO_ALT_BASE_ADDR (haddr_t)(NANO_ALT_BASE_ADDR + \
|
|
|
|
|
(NANO_ENTRY_SIZE * NUM_NANO_ENTRIES))
|
|
|
|
|
#define TINY_ALT_BASE_ADDR (haddr_t)(MICRO_ALT_BASE_ADDR + \
|
|
|
|
|
(MICRO_ENTRY_SIZE * NUM_MICRO_ENTRIES))
|
|
|
|
|
#define SMALL_ALT_BASE_ADDR (haddr_t)(TINY_ALT_BASE_ADDR + \
|
|
|
|
|
(TINY_ENTRY_SIZE * NUM_TINY_ENTRIES))
|
|
|
|
|
#define MEDIUM_ALT_BASE_ADDR (haddr_t)(SMALL_ALT_BASE_ADDR + \
|
|
|
|
|
(SMALL_ENTRY_SIZE * NUM_SMALL_ENTRIES))
|
|
|
|
|
#define LARGE_ALT_BASE_ADDR (haddr_t)(MEDIUM_ALT_BASE_ADDR + \
|
|
|
|
|
(MEDIUM_ENTRY_SIZE * NUM_MEDIUM_ENTRIES))
|
|
|
|
|
#define HUGE_ALT_BASE_ADDR (haddr_t)(LARGE_ALT_BASE_ADDR + \
|
|
|
|
|
(LARGE_ENTRY_SIZE * NUM_LARGE_ENTRIES))
|
|
|
|
|
#define MONSTER_ALT_BASE_ADDR (haddr_t)(HUGE_ALT_BASE_ADDR + \
|
|
|
|
|
(HUGE_ENTRY_SIZE * NUM_HUGE_ENTRIES))
|
2006-10-18 18:51:26 +08:00
|
|
|
|
#define VARIABLE_ALT_BASE_ADDR (haddr_t)(MONSTER_ALT_BASE_ADDR + \
|
|
|
|
|
(MONSTER_ENTRY_SIZE * NUM_MONSTER_ENTRIES))
|
[svn-r16874] Description:
Add test for cache client 'notify' callback.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-04-29 03:30:05 +08:00
|
|
|
|
#define NOTIFY_ALT_BASE_ADDR (haddr_t)(VARIABLE_ALT_BASE_ADDR + \
|
|
|
|
|
(VARIABLE_ENTRY_SIZE * NUM_VARIABLE_ENTRIES))
|
[svn-r18171] Description:
Bring r18169 from 'merge_metadata_journaling' branch back to trunk:
Converge changes on metadata_journaling branch and trunk:
- Remove H5F_t* parameter from H5HL_unprotect()
- Remove H5F_t* parameter from H5HL_dirty()
- Remove H5F_t* parameter from H5O_unprotect()
- Bring changes to metadata caching routines back:
- H5AC_pin_protected_entry()
- H5AC_resize_pinned_entry()
- H5AC_unpin_entry()
- H5AC_mark_pinned_entry_dirty()
- H5AC_mark_pinned_or_protected_entry_dirty()
- Revise internal H5C routines to drop H5F_t* and/or H5C_t* as
parameter where possible
- Revise tests to follow internal routine changes
Also, drop file/cache pointer parameter from create/destroy flush
dependency internal cache calls.
Also, other minor changes to speedup the 'cache' test.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.2 (amazon) in debug mode
Mac OS X/32 10.6.2 (amazon) w/C++ & FORTRAN, w/threadsafe,
2010-01-27 23:07:42 +08:00
|
|
|
|
#define MAX_ADDR (haddr_t)(NOTIFY_ALT_BASE_ADDR + \
|
|
|
|
|
(NOTIFY_ENTRY_SIZE * NUM_NOTIFY_ENTRIES))
|
|
|
|
|
#define ADDR_SPACE_SIZE (haddr_t)(MAX_ADDR - BASE_ADDR)
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2006-06-27 22:45:06 +08:00
|
|
|
|
#define MAX_PINS 8 /* Maximum number of entries that can be
|
2006-04-28 21:27:54 +08:00
|
|
|
|
* directly pinned by a single entry.
|
|
|
|
|
*/
|
2006-10-18 18:51:26 +08:00
|
|
|
|
|
2015-06-18 08:58:49 +08:00
|
|
|
|
#define FLUSH_OP__NO_OP 0
|
|
|
|
|
#define FLUSH_OP__DIRTY 1
|
|
|
|
|
#define FLUSH_OP__RESIZE 2
|
|
|
|
|
#define FLUSH_OP__MOVE 3
|
|
|
|
|
#define FLUSH_OP__ORDER 4
|
|
|
|
|
#define FLUSH_OP__EXPUNGE 5
|
|
|
|
|
#define FLUSH_OP__DEST_FLUSH_DEP 6
|
|
|
|
|
#define FLUSH_OP__MAX_OP 6
|
2006-10-18 18:51:26 +08:00
|
|
|
|
|
|
|
|
|
#define MAX_FLUSH_OPS 10 /* Maximum number of flush operations
|
2008-09-16 23:52:51 +08:00
|
|
|
|
* that can be associated with a
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* cache entry.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-06-29 05:39:09 +08:00
|
|
|
|
#define MAX_FLUSH_DEP_PARS 8 /* Maximum number of flush dependency
|
|
|
|
|
* parents in the test */
|
|
|
|
|
|
2006-10-18 18:51:26 +08:00
|
|
|
|
typedef struct flush_op
|
|
|
|
|
{
|
|
|
|
|
int op_code; /* integer op code indicating the
|
|
|
|
|
* operation to be performed. At
|
|
|
|
|
* present it must be one of:
|
|
|
|
|
*
|
|
|
|
|
* FLUSH_OP__NO_OP
|
|
|
|
|
* FLUSH_OP__DIRTY
|
|
|
|
|
* FLUSH_OP__RESIZE
|
[svn-r18725] Description:
Bring r18724 from metadata journaling 'merging' branch to trunk:
Rename H5[A]C_rename to H5[A]C_move_entry.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-06 23:00:43 +08:00
|
|
|
|
* FLUSH_OP__MOVE
|
[svn-r16600] Description:
Ensure that metadata cache entries with flush dependencies are written
to the file in the correct order (for serial I/O, at least).
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-25 01:52:17 +08:00
|
|
|
|
* FLUSH_OP__ORDER
|
2006-10-18 18:51:26 +08:00
|
|
|
|
*/
|
|
|
|
|
int type; /* type code of the cache entry that
|
|
|
|
|
* is the target of the operation.
|
|
|
|
|
* This value is passed into the
|
|
|
|
|
* function implementing the flush
|
|
|
|
|
* operation.
|
|
|
|
|
*/
|
|
|
|
|
int idx; /* index of the cache entry that
|
|
|
|
|
* is the target of the operation.
|
|
|
|
|
* This value is passed into the
|
|
|
|
|
* function implementing the flush
|
|
|
|
|
* operation.
|
|
|
|
|
*/
|
2008-09-16 23:52:51 +08:00
|
|
|
|
hbool_t flag; /* boolean flag passed into the
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* function implementing the flush
|
|
|
|
|
* operation. The meaning of the
|
|
|
|
|
* flag is dependant upon the flush
|
|
|
|
|
* operation:
|
|
|
|
|
*
|
2008-09-16 23:52:51 +08:00
|
|
|
|
* FLUSH_OP__DIRTY: TRUE iff the
|
|
|
|
|
* target is pinned, and is to
|
|
|
|
|
* be dirtied via the
|
[svn-r18721] Description:
Bring r18720 from metadata journaling merging branch to trunk:
Bring changes from metadata journaling branch to 'merging' branch:
Rename H5[A]C_mark_pinned_or_protected_entry_dirty() to
H5[A]C_mark_entry_dirty() and get rid of H5[A]C_mark_pinned_entry_dirty().
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-06 21:32:07 +08:00
|
|
|
|
* H5C_mark_entry_dirty()
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* call.
|
|
|
|
|
*
|
|
|
|
|
* FLUSH_OP__RESIZE: TRUE iff the
|
2008-09-16 23:52:51 +08:00
|
|
|
|
* target is pinned, and is to
|
|
|
|
|
* be resized via the
|
[svn-r18740] Description:
Bring r18738 from metadata journaling 'merging' branch to trunk:
Switch H5AC_resize_pinned_entry() to work on protected entries as well,
and rename to H5AC_resize_entry()
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-07 10:48:15 +08:00
|
|
|
|
* H5C_resize_entry()
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* call.
|
|
|
|
|
*
|
[svn-r18725] Description:
Bring r18724 from metadata journaling 'merging' branch to trunk:
Rename H5[A]C_rename to H5[A]C_move_entry.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-06 23:00:43 +08:00
|
|
|
|
* FLUSH_OP__MOVE: TRUE iff the
|
|
|
|
|
* target is to be moved to
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* its main address.
|
|
|
|
|
*/
|
2008-09-16 23:52:51 +08:00
|
|
|
|
size_t size; /* New target size in the
|
[svn-r18725] Description:
Bring r18724 from metadata journaling 'merging' branch to trunk:
Rename H5[A]C_rename to H5[A]C_move_entry.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-06 23:00:43 +08:00
|
|
|
|
* FLUSH_OP__MOVE operation.
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* Unused elsewhere.
|
|
|
|
|
*/
|
[svn-r16600] Description:
Ensure that metadata cache entries with flush dependencies are written
to the file in the correct order (for serial I/O, at least).
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-25 01:52:17 +08:00
|
|
|
|
unsigned * order_ptr; /* Pointer to outside counter for
|
|
|
|
|
* recording the order of entries
|
|
|
|
|
* flushed.
|
|
|
|
|
*/
|
2006-10-18 18:51:26 +08:00
|
|
|
|
} flush_op;
|
|
|
|
|
|
2016-11-13 06:01:30 +08:00
|
|
|
|
typedef enum test_entry_action_t {
|
|
|
|
|
TEST_ENTRY_ACTION_NUL = 0, /* No action on entry */
|
|
|
|
|
TEST_ENTRY_ACTION_MOVE /* Entry is beging moved */
|
|
|
|
|
} test_entry_action_t;
|
|
|
|
|
|
2006-01-29 10:34:14 +08:00
|
|
|
|
typedef struct test_entry_t
|
|
|
|
|
{
|
|
|
|
|
H5C_cache_entry_t header; /* entry data used by the cache
|
|
|
|
|
* -- must be first
|
|
|
|
|
*/
|
|
|
|
|
struct test_entry_t * self; /* pointer to this entry -- used for
|
|
|
|
|
* sanity checking.
|
|
|
|
|
*/
|
2016-11-13 06:01:30 +08:00
|
|
|
|
test_entry_action_t action; /* Action being performed on a test entry */
|
2015-06-18 08:58:49 +08:00
|
|
|
|
H5F_t * file_ptr; /* pointer to the file in which the
|
|
|
|
|
* entry resides, or NULL if the entry
|
|
|
|
|
* is not in a file.
|
|
|
|
|
*/
|
2006-06-27 22:45:06 +08:00
|
|
|
|
H5C_t * cache_ptr; /* pointer to the cache in which
|
2006-04-28 21:27:54 +08:00
|
|
|
|
* the entry resides, or NULL if the
|
|
|
|
|
* entry is not in cache.
|
|
|
|
|
*/
|
2015-06-18 08:58:49 +08:00
|
|
|
|
hbool_t written_to_main_addr;
|
|
|
|
|
/* Flag indicating whether an image
|
|
|
|
|
* of the entry has been written to
|
|
|
|
|
* its main address. Since we no
|
|
|
|
|
* longer have a flush callback, we
|
|
|
|
|
* set this field to true whenever the
|
|
|
|
|
* entry is serialized while at its
|
|
|
|
|
* main address.
|
|
|
|
|
*/
|
|
|
|
|
hbool_t written_to_alt_addr;
|
|
|
|
|
/* Flag indicating whether an image
|
|
|
|
|
* of the entry has been written to
|
|
|
|
|
* its alternate address. Since we no
|
|
|
|
|
* longer have a flush callback, we
|
|
|
|
|
* set this field to true whenever the
|
|
|
|
|
* entry is serialized while at its
|
|
|
|
|
* alternate address.
|
|
|
|
|
*/
|
2006-01-29 10:34:14 +08:00
|
|
|
|
haddr_t addr; /* where the cache thinks this entry
|
|
|
|
|
* is located
|
|
|
|
|
*/
|
|
|
|
|
hbool_t at_main_addr; /* boolean flag indicating whether
|
|
|
|
|
* the entry is supposed to be at
|
|
|
|
|
* either its main or alternate
|
|
|
|
|
* address.
|
|
|
|
|
*/
|
|
|
|
|
haddr_t main_addr; /* initial location of the entry
|
|
|
|
|
*/
|
|
|
|
|
haddr_t alt_addr; /* location to which the entry
|
[svn-r18725] Description:
Bring r18724 from metadata journaling 'merging' branch to trunk:
Rename H5[A]C_rename to H5[A]C_move_entry.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-06 23:00:43 +08:00
|
|
|
|
* can be relocated or "moved"
|
2006-01-29 10:34:14 +08:00
|
|
|
|
*/
|
|
|
|
|
size_t size; /* how big the cache thinks this
|
|
|
|
|
* entry is
|
|
|
|
|
*/
|
|
|
|
|
int32_t type; /* indicates which entry array this
|
|
|
|
|
* entry is in
|
|
|
|
|
*/
|
|
|
|
|
int32_t index; /* index in its entry array
|
|
|
|
|
*/
|
2015-06-18 08:58:49 +08:00
|
|
|
|
int32_t serializes; /* number of times this entry has
|
|
|
|
|
* been serialized.
|
2006-01-29 10:34:14 +08:00
|
|
|
|
*/
|
2015-06-18 08:58:49 +08:00
|
|
|
|
int32_t deserializes; /* number of times this entry has
|
|
|
|
|
* been deserialized
|
2006-01-29 10:34:14 +08:00
|
|
|
|
*/
|
|
|
|
|
hbool_t is_dirty; /* entry has been modified since
|
|
|
|
|
* last write
|
|
|
|
|
*/
|
|
|
|
|
hbool_t is_protected; /* entry should currently be on
|
|
|
|
|
* the cache's protected list.
|
|
|
|
|
*/
|
2008-09-16 23:52:51 +08:00
|
|
|
|
hbool_t is_read_only; /* TRUE iff the entry should be
|
2007-04-10 02:58:42 +08:00
|
|
|
|
* protected read only.
|
|
|
|
|
*/
|
|
|
|
|
int ro_ref_count; /* Number of outstanding read only
|
|
|
|
|
* protects on the entry.
|
|
|
|
|
*/
|
2006-04-28 21:27:54 +08:00
|
|
|
|
hbool_t is_pinned; /* entry is currently pinned in
|
|
|
|
|
* the cache.
|
|
|
|
|
*/
|
2016-06-14 01:49:39 +08:00
|
|
|
|
haddr_t tag; /* the base_addr as tag for corking entries */
|
|
|
|
|
hbool_t is_corked; /* entry is currently corked or not */
|
2006-06-27 22:45:06 +08:00
|
|
|
|
int pinning_ref_count; /* Number of entries that
|
2006-04-28 21:27:54 +08:00
|
|
|
|
* pin this entry in the cache.
|
|
|
|
|
* When this count drops to zero,
|
|
|
|
|
* this entry should be unpinned.
|
|
|
|
|
*/
|
|
|
|
|
int num_pins; /* Number of entries that this
|
|
|
|
|
* entry pins in the cache. This
|
|
|
|
|
* value must be in the range
|
|
|
|
|
* [0, MAX_PINS].
|
|
|
|
|
*/
|
|
|
|
|
int pin_type[MAX_PINS]; /* array of the types of entries
|
|
|
|
|
* pinned by this entry.
|
|
|
|
|
*/
|
2006-06-27 22:45:06 +08:00
|
|
|
|
int pin_idx[MAX_PINS]; /* array of the indicies of
|
2006-04-28 21:27:54 +08:00
|
|
|
|
* entries pinned by this entry.
|
|
|
|
|
*/
|
2006-10-18 18:51:26 +08:00
|
|
|
|
int num_flush_ops; /* integer field containing the
|
2008-09-16 23:52:51 +08:00
|
|
|
|
* number of flush operations to
|
|
|
|
|
* be executed when the entry is
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* flushed. This value must lie in
|
2008-09-16 23:52:51 +08:00
|
|
|
|
* the closed interval
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* [0, MAX_FLUSH_OPS].
|
|
|
|
|
*/
|
|
|
|
|
struct flush_op flush_ops[MAX_FLUSH_OPS]; /* Array of instances
|
2008-09-16 23:52:51 +08:00
|
|
|
|
* of struct flush_op detailing the
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* flush operations (if any) that
|
|
|
|
|
* are to be executed when the entry
|
|
|
|
|
* is flushed from the cache.
|
|
|
|
|
*
|
|
|
|
|
* num_flush_ops contains the number
|
|
|
|
|
* of valid entries in this array.
|
|
|
|
|
*/
|
2008-09-16 23:52:51 +08:00
|
|
|
|
hbool_t flush_op_self_resize_in_progress; /* Boolean flag
|
|
|
|
|
* that is set to TRUE iff this
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* entry is being flushed, it has
|
|
|
|
|
* been resized by a resize flush
|
|
|
|
|
* op, and the flush function has
|
|
|
|
|
* not yet returned, This field is
|
2008-09-16 23:52:51 +08:00
|
|
|
|
* used to turn off overactive santity
|
|
|
|
|
* checking code that would otherwise
|
2006-10-18 18:51:26 +08:00
|
|
|
|
* cause a false test failure.
|
|
|
|
|
*/
|
2015-06-18 08:58:49 +08:00
|
|
|
|
hbool_t deserialized; /* entry has been deserialized since
|
|
|
|
|
* the last time it was reset.
|
2006-01-29 10:34:14 +08:00
|
|
|
|
*/
|
2015-06-18 08:58:49 +08:00
|
|
|
|
hbool_t serialized; /* entry has been serialized since the
|
2006-01-29 10:34:14 +08:00
|
|
|
|
* last time it was reset.
|
|
|
|
|
*/
|
2015-06-18 08:58:49 +08:00
|
|
|
|
hbool_t destroyed; /* entry has been destroyed since the
|
2006-01-29 10:34:14 +08:00
|
|
|
|
* last time it was reset.
|
|
|
|
|
*/
|
2015-06-18 08:58:49 +08:00
|
|
|
|
hbool_t expunged; /* entry has been expunged since the
|
2006-01-29 10:34:14 +08:00
|
|
|
|
* last time it was reset.
|
|
|
|
|
*/
|
2016-06-29 05:39:09 +08:00
|
|
|
|
int flush_dep_par_type[MAX_FLUSH_DEP_PARS]; /* Entry types of flush dependency parents */
|
|
|
|
|
int flush_dep_par_idx[MAX_FLUSH_DEP_PARS]; /* Indices of flush dependency parents */
|
|
|
|
|
unsigned flush_dep_npar; /* Number of flush dependency parents */
|
|
|
|
|
unsigned flush_dep_nchd; /* Number of flush dependency children */
|
|
|
|
|
unsigned flush_dep_ndirty_chd; /* Number of dirty flush dependency children (including granchildren, etc.) */
|
2015-05-15 10:16:09 +08:00
|
|
|
|
hbool_t pinned_from_client; /* entry was pinned by client call */
|
|
|
|
|
hbool_t pinned_from_cache; /* entry was pinned by cache internally */
|
|
|
|
|
unsigned flush_order; /* Order that entry was flushed in */
|
[svn-r16874] Description:
Add test for cache client 'notify' callback.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-04-29 03:30:05 +08:00
|
|
|
|
|
2015-05-15 10:16:09 +08:00
|
|
|
|
unsigned notify_after_insert_count; /* Count of times that entry was inserted in cache */
|
|
|
|
|
unsigned notify_before_evict_count; /* Count of times that entry was removed in cache */
|
2016-11-20 20:24:57 +08:00
|
|
|
|
unsigned actual_len; /* Simulate the entry's actual size for a speculative load */
|
|
|
|
|
unsigned max_verify_ct; /* Maximum # of times to verify an entry's checksum */
|
|
|
|
|
unsigned verify_ct; /* Count the # of checksum verification for an entry */
|
2006-01-29 10:34:14 +08:00
|
|
|
|
} test_entry_t;
|
|
|
|
|
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
/* The following are cut down test versions of the hash table manipulation
|
|
|
|
|
* macros from H5Cpkg.h, which have been further modified to avoid references
|
2006-01-29 10:34:14 +08:00
|
|
|
|
* to the error reporting macros. Needless to say, these macros must be
|
|
|
|
|
* updated as necessary.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#define H5C__HASH_MASK ((size_t)(H5C__HASH_TABLE_LEN - 1) << 3)
|
|
|
|
|
|
2010-02-15 03:27:07 +08:00
|
|
|
|
#define H5C_TEST__PRE_HT_SEARCH_SC(cache_ptr, Addr) \
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
if ( ( (cache_ptr) == NULL ) || \
|
|
|
|
|
( (cache_ptr)->magic != H5C__H5C_T_MAGIC ) || \
|
|
|
|
|
( (cache_ptr)->index_size != \
|
2010-02-15 03:27:07 +08:00
|
|
|
|
((cache_ptr)->clean_index_size + (cache_ptr)->dirty_index_size) ) || \
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
( ! H5F_addr_defined(Addr) ) || \
|
|
|
|
|
( H5C__HASH_FCN(Addr) < 0 ) || \
|
|
|
|
|
( H5C__HASH_FCN(Addr) >= H5C__HASH_TABLE_LEN ) ) { \
|
|
|
|
|
HDfprintf(stdout, "Pre HT search SC failed.\n"); \
|
2006-01-29 10:34:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
2010-02-15 03:27:07 +08:00
|
|
|
|
#define H5C_TEST__POST_SUC_HT_SEARCH_SC(cache_ptr, entry_ptr, Addr, k) \
|
2006-01-29 10:34:14 +08:00
|
|
|
|
if ( ( (cache_ptr) == NULL ) || \
|
|
|
|
|
( (cache_ptr)->magic != H5C__H5C_T_MAGIC ) || \
|
|
|
|
|
( (cache_ptr)->index_len < 1 ) || \
|
|
|
|
|
( (entry_ptr) == NULL ) || \
|
|
|
|
|
( (cache_ptr)->index_size < (entry_ptr)->size ) || \
|
2010-02-15 03:27:07 +08:00
|
|
|
|
( (cache_ptr)->index_size != \
|
|
|
|
|
((cache_ptr)->clean_index_size + (cache_ptr)->dirty_index_size) ) || \
|
2006-01-29 10:34:14 +08:00
|
|
|
|
( H5F_addr_ne((entry_ptr)->addr, (Addr)) ) || \
|
|
|
|
|
( (entry_ptr)->size <= 0 ) || \
|
|
|
|
|
( ((cache_ptr)->index)[k] == NULL ) || \
|
|
|
|
|
( ( ((cache_ptr)->index)[k] != (entry_ptr) ) && \
|
|
|
|
|
( (entry_ptr)->ht_prev == NULL ) ) || \
|
|
|
|
|
( ( ((cache_ptr)->index)[k] == (entry_ptr) ) && \
|
|
|
|
|
( (entry_ptr)->ht_prev != NULL ) ) || \
|
|
|
|
|
( ( (entry_ptr)->ht_prev != NULL ) && \
|
|
|
|
|
( (entry_ptr)->ht_prev->ht_next != (entry_ptr) ) ) || \
|
|
|
|
|
( ( (entry_ptr)->ht_next != NULL ) && \
|
|
|
|
|
( (entry_ptr)->ht_next->ht_prev != (entry_ptr) ) ) ) { \
|
|
|
|
|
HDfprintf(stdout, "Post successful HT search SC failed.\n"); \
|
|
|
|
|
}
|
|
|
|
|
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
#define H5C_TEST__POST_HT_SHIFT_TO_FRONT(cache_ptr, entry_ptr, k) \
|
2010-02-15 03:27:07 +08:00
|
|
|
|
if ( ( (cache_ptr) == NULL ) || \
|
|
|
|
|
( ((cache_ptr)->index)[k] != (entry_ptr) ) || \
|
|
|
|
|
( (entry_ptr)->ht_prev != NULL ) ) { \
|
|
|
|
|
HDfprintf(stdout, "Post HT shift to front failed.\n"); \
|
|
|
|
|
}
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
#define H5C_TEST__SEARCH_INDEX(cache_ptr, Addr, entry_ptr) \
|
2006-01-29 10:34:14 +08:00
|
|
|
|
{ \
|
|
|
|
|
int k; \
|
|
|
|
|
int depth = 0; \
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
H5C_TEST__PRE_HT_SEARCH_SC(cache_ptr, Addr) \
|
2006-01-29 10:34:14 +08:00
|
|
|
|
k = H5C__HASH_FCN(Addr); \
|
|
|
|
|
entry_ptr = ((cache_ptr)->index)[k]; \
|
|
|
|
|
while ( ( entry_ptr ) && ( H5F_addr_ne(Addr, (entry_ptr)->addr) ) ) \
|
|
|
|
|
{ \
|
|
|
|
|
(entry_ptr) = (entry_ptr)->ht_next; \
|
|
|
|
|
(depth)++; \
|
|
|
|
|
} \
|
|
|
|
|
if ( entry_ptr ) \
|
|
|
|
|
{ \
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
H5C_TEST__POST_SUC_HT_SEARCH_SC(cache_ptr, entry_ptr, Addr, k) \
|
2006-01-29 10:34:14 +08:00
|
|
|
|
if ( entry_ptr != ((cache_ptr)->index)[k] ) \
|
|
|
|
|
{ \
|
|
|
|
|
if ( (entry_ptr)->ht_next ) \
|
|
|
|
|
{ \
|
|
|
|
|
(entry_ptr)->ht_next->ht_prev = (entry_ptr)->ht_prev; \
|
|
|
|
|
} \
|
|
|
|
|
HDassert( (entry_ptr)->ht_prev != NULL ); \
|
|
|
|
|
(entry_ptr)->ht_prev->ht_next = (entry_ptr)->ht_next; \
|
|
|
|
|
((cache_ptr)->index)[k]->ht_prev = (entry_ptr); \
|
|
|
|
|
(entry_ptr)->ht_next = ((cache_ptr)->index)[k]; \
|
|
|
|
|
(entry_ptr)->ht_prev = NULL; \
|
|
|
|
|
((cache_ptr)->index)[k] = (entry_ptr); \
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
H5C_TEST__POST_HT_SHIFT_TO_FRONT(cache_ptr, entry_ptr, k) \
|
2006-01-29 10:34:14 +08:00
|
|
|
|
} \
|
|
|
|
|
} \
|
|
|
|
|
}
|
|
|
|
|
|
2015-05-15 10:16:09 +08:00
|
|
|
|
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
/* Macros used in H5AC level tests */
|
|
|
|
|
|
[svn-r19096] Description:
Bring "round robin" metadata write strategy code from 'round_robin'
branch to the trunk.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-07-19 18:54:51 +08:00
|
|
|
|
#define CACHE_CONFIGS_EQUAL(a, b, cmp_set_init, cmp_init_size) \
|
|
|
|
|
( ( (a).version == (b).version ) && \
|
|
|
|
|
( (a).rpt_fcn_enabled == (b).rpt_fcn_enabled ) && \
|
|
|
|
|
( (a).open_trace_file == (b).open_trace_file ) && \
|
|
|
|
|
( (a).close_trace_file == (b).close_trace_file ) && \
|
|
|
|
|
( ( (a).open_trace_file == FALSE ) || \
|
|
|
|
|
( strcmp((a).trace_file_name, (b).trace_file_name) == 0 ) ) && \
|
|
|
|
|
( (a).evictions_enabled == (b).evictions_enabled ) && \
|
|
|
|
|
( ( ! cmp_set_init ) || \
|
|
|
|
|
( (a).set_initial_size == (b).set_initial_size ) ) && \
|
|
|
|
|
( ( ! cmp_init_size ) || \
|
|
|
|
|
( (a).initial_size == (b).initial_size ) ) && \
|
2015-06-16 00:07:38 +08:00
|
|
|
|
( H5_DBL_ABS_EQUAL((a).min_clean_fraction, (b).min_clean_fraction) ) && \
|
[svn-r19096] Description:
Bring "round robin" metadata write strategy code from 'round_robin'
branch to the trunk.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-07-19 18:54:51 +08:00
|
|
|
|
( (a).max_size == (b).max_size ) && \
|
|
|
|
|
( (a).min_size == (b).min_size ) && \
|
|
|
|
|
( (a).epoch_length == (b).epoch_length ) && \
|
|
|
|
|
( (a).incr_mode == (b).incr_mode ) && \
|
2015-06-16 00:07:38 +08:00
|
|
|
|
( H5_DBL_ABS_EQUAL((a).lower_hr_threshold, (b).lower_hr_threshold) ) && \
|
|
|
|
|
( H5_DBL_ABS_EQUAL((a).increment, (b).increment) ) && \
|
[svn-r19096] Description:
Bring "round robin" metadata write strategy code from 'round_robin'
branch to the trunk.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-07-19 18:54:51 +08:00
|
|
|
|
( (a).apply_max_increment == (b).apply_max_increment ) && \
|
|
|
|
|
( (a).max_increment == (b).max_increment ) && \
|
|
|
|
|
( (a).flash_incr_mode == (b).flash_incr_mode ) && \
|
2015-06-16 00:07:38 +08:00
|
|
|
|
( H5_DBL_ABS_EQUAL((a).flash_multiple, (b).flash_multiple) ) && \
|
|
|
|
|
( H5_DBL_ABS_EQUAL((a).flash_threshold, (b).flash_threshold) ) && \
|
[svn-r19096] Description:
Bring "round robin" metadata write strategy code from 'round_robin'
branch to the trunk.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-07-19 18:54:51 +08:00
|
|
|
|
( (a).decr_mode == (b).decr_mode ) && \
|
2015-06-16 00:07:38 +08:00
|
|
|
|
( H5_DBL_ABS_EQUAL((a).upper_hr_threshold, (b).upper_hr_threshold) ) && \
|
|
|
|
|
( H5_DBL_ABS_EQUAL((a).decrement, (b).decrement) ) && \
|
[svn-r19096] Description:
Bring "round robin" metadata write strategy code from 'round_robin'
branch to the trunk.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-07-19 18:54:51 +08:00
|
|
|
|
( (a).apply_max_decrement == (b).apply_max_decrement ) && \
|
|
|
|
|
( (a).max_decrement == (b).max_decrement ) && \
|
|
|
|
|
( (a).epochs_before_eviction == (b).epochs_before_eviction ) && \
|
|
|
|
|
( (a).apply_empty_reserve == (b).apply_empty_reserve ) && \
|
2015-06-16 00:07:38 +08:00
|
|
|
|
( H5_DBL_ABS_EQUAL((a).empty_reserve, (b).empty_reserve) ) && \
|
[svn-r19096] Description:
Bring "round robin" metadata write strategy code from 'round_robin'
branch to the trunk.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-07-19 18:54:51 +08:00
|
|
|
|
( (a).dirty_bytes_threshold == (b).dirty_bytes_threshold ) && \
|
|
|
|
|
( (a).metadata_write_strategy == (b).metadata_write_strategy ) )
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
|
|
|
|
|
#define XLATE_EXT_TO_INT_MDC_CONFIG(i, e) \
|
|
|
|
|
{ \
|
|
|
|
|
(i).version = H5C__CURR_AUTO_SIZE_CTL_VER; \
|
|
|
|
|
if ( (e).rpt_fcn_enabled ) \
|
|
|
|
|
(i).rpt_fcn = H5C_def_auto_resize_rpt_fcn; \
|
|
|
|
|
else \
|
|
|
|
|
(i).rpt_fcn = NULL; \
|
|
|
|
|
(i).set_initial_size = (e).set_initial_size; \
|
|
|
|
|
(i).initial_size = (e).initial_size; \
|
|
|
|
|
(i).min_clean_fraction = (e).min_clean_fraction; \
|
|
|
|
|
(i).max_size = (e).max_size; \
|
|
|
|
|
(i).min_size = (e).min_size; \
|
|
|
|
|
(i).epoch_length = (long int)((e).epoch_length); \
|
|
|
|
|
(i).incr_mode = (e).incr_mode; \
|
|
|
|
|
(i).lower_hr_threshold = (e).lower_hr_threshold; \
|
|
|
|
|
(i).increment = (e).increment; \
|
|
|
|
|
(i).apply_max_increment = (e).apply_max_increment; \
|
|
|
|
|
(i).max_increment = (e).max_increment; \
|
|
|
|
|
(i).flash_incr_mode = (e).flash_incr_mode; \
|
|
|
|
|
(i).flash_multiple = (e).flash_multiple; \
|
|
|
|
|
(i).flash_threshold = (e).flash_threshold; \
|
|
|
|
|
(i).decr_mode = (e).decr_mode; \
|
|
|
|
|
(i).upper_hr_threshold = (e).upper_hr_threshold; \
|
|
|
|
|
(i).decrement = (e).decrement; \
|
|
|
|
|
(i).apply_max_decrement = (e).apply_max_decrement; \
|
|
|
|
|
(i).max_decrement = (e).max_decrement; \
|
|
|
|
|
(i).epochs_before_eviction = (int)((e).epochs_before_eviction); \
|
|
|
|
|
(i).apply_empty_reserve = (e).apply_empty_reserve; \
|
|
|
|
|
(i).empty_reserve = (e).empty_reserve; \
|
|
|
|
|
}
|
|
|
|
|
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
|
|
|
|
/* misc type definitions */
|
|
|
|
|
|
2006-10-18 18:51:26 +08:00
|
|
|
|
struct expected_entry_status
|
|
|
|
|
{
|
|
|
|
|
int entry_type;
|
|
|
|
|
int entry_index;
|
|
|
|
|
size_t size;
|
2015-06-18 08:58:49 +08:00
|
|
|
|
hbool_t in_cache;
|
|
|
|
|
hbool_t at_main_addr;
|
|
|
|
|
hbool_t is_dirty;
|
|
|
|
|
hbool_t is_protected;
|
|
|
|
|
hbool_t is_pinned;
|
|
|
|
|
hbool_t deserialized;
|
|
|
|
|
hbool_t serialized;
|
|
|
|
|
hbool_t destroyed;
|
2016-06-29 05:39:09 +08:00
|
|
|
|
int flush_dep_par_type[MAX_FLUSH_DEP_PARS]; /* Entry types of flush dependency parents */
|
|
|
|
|
int flush_dep_par_idx[MAX_FLUSH_DEP_PARS]; /* Indices of flush dependency parents */
|
|
|
|
|
unsigned flush_dep_npar; /* Number of flush dependency parents */
|
|
|
|
|
unsigned flush_dep_nchd; /* Number of flush dependency children */
|
|
|
|
|
unsigned flush_dep_ndirty_chd; /* Number of dirty flush dependency children */
|
[svn-r16600] Description:
Ensure that metadata cache entries with flush dependencies are written
to the file in the correct order (for serial I/O, at least).
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-25 01:52:17 +08:00
|
|
|
|
int flush_order; /* flush order of entry */
|
2016-06-14 01:49:39 +08:00
|
|
|
|
unsigned char is_corked; /* cork status of entry */
|
2006-10-18 18:51:26 +08:00
|
|
|
|
};
|
|
|
|
|
|
2006-04-28 21:27:54 +08:00
|
|
|
|
|
|
|
|
|
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
|
|
|
|
/* global variable externs: */
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLLVAR H5C_t * saved_cache;
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLLVAR const char *FILENAME[];
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLLVAR haddr_t saved_actual_base_addr;
|
|
|
|
|
H5TEST_DLLVAR hbool_t write_permitted;
|
|
|
|
|
H5TEST_DLLVAR hbool_t pass; /* set to false on error */
|
|
|
|
|
H5TEST_DLLVAR const char *failure_mssg;
|
|
|
|
|
|
|
|
|
|
H5TEST_DLLVAR test_entry_t * entries[NUMBER_OF_ENTRY_TYPES];
|
|
|
|
|
H5TEST_DLLVAR const int32_t max_indices[NUMBER_OF_ENTRY_TYPES];
|
|
|
|
|
H5TEST_DLLVAR const size_t entry_sizes[NUMBER_OF_ENTRY_TYPES];
|
|
|
|
|
H5TEST_DLLVAR const haddr_t base_addrs[NUMBER_OF_ENTRY_TYPES];
|
|
|
|
|
H5TEST_DLLVAR const haddr_t alt_base_addrs[NUMBER_OF_ENTRY_TYPES];
|
|
|
|
|
H5TEST_DLLVAR const char * entry_type_names[NUMBER_OF_ENTRY_TYPES];
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
|
|
|
|
/* callback table extern */
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLLVAR const H5C_class_t types[NUMBER_OF_ENTRY_TYPES];
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2006-01-29 10:34:14 +08:00
|
|
|
|
/* function declarations: */
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void add_flush_op(int target_type,
|
2006-10-18 18:51:26 +08:00
|
|
|
|
int target_idx,
|
|
|
|
|
int op_code,
|
|
|
|
|
int type,
|
|
|
|
|
int idx,
|
|
|
|
|
hbool_t flag,
|
[svn-r16600] Description:
Ensure that metadata cache entries with flush dependencies are written
to the file in the correct order (for serial I/O, at least).
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-25 01:52:17 +08:00
|
|
|
|
size_t size,
|
|
|
|
|
unsigned * order);
|
2006-10-18 18:51:26 +08:00
|
|
|
|
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void addr_to_type_and_index(haddr_t addr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t * type_ptr,
|
|
|
|
|
int32_t * index_ptr);
|
|
|
|
|
|
|
|
|
|
#if 0 /* keep this for a while -- it may be useful */
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL haddr_t type_and_index_to_addr(int32_t type,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t idx);
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void dirty_entry(H5F_t * file_ptr,
|
2006-10-18 18:51:26 +08:00
|
|
|
|
int32_t type,
|
|
|
|
|
int32_t idx,
|
|
|
|
|
hbool_t dirty_pin);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void expunge_entry(H5F_t * file_ptr,
|
2006-07-14 01:59:39 +08:00
|
|
|
|
int32_t type,
|
|
|
|
|
int32_t idx);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void insert_entry(H5F_t * file_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t type,
|
|
|
|
|
int32_t idx,
|
|
|
|
|
unsigned int flags);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void mark_entry_dirty(int32_t type,
|
|
|
|
|
int32_t idx);
|
2006-05-24 15:36:28 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void move_entry(H5C_t * cache_ptr,
|
[svn-r18864] Description:
General cleanups to align metadata journaling branch and trunk
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-20 20:27:02 +08:00
|
|
|
|
int32_t type,
|
|
|
|
|
int32_t idx,
|
|
|
|
|
hbool_t main_addr);
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void protect_entry(H5F_t * file_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t type,
|
|
|
|
|
int32_t idx);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void protect_entry_ro(H5F_t * file_ptr,
|
2007-04-10 02:58:42 +08:00
|
|
|
|
int32_t type,
|
|
|
|
|
int32_t idx);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void pin_entry(int32_t type,
|
[svn-r16587] Description:
Add infrastructure & tests for "flush dependencies" in metadata cache,
which allow relationships that specify which order to flush metadata entries in.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-18 01:08:12 +08:00
|
|
|
|
int32_t idx);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL hbool_t entry_in_cache(H5C_t * cache_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t type,
|
|
|
|
|
int32_t idx);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void create_pinned_entry_dependency(H5F_t * file_ptr,
|
|
|
|
|
int pinning_type,
|
|
|
|
|
int pinning_idx,
|
|
|
|
|
int pinned_type,
|
|
|
|
|
int pinned_idx);
|
2006-04-28 21:27:54 +08:00
|
|
|
|
|
2016-06-02 01:02:30 +08:00
|
|
|
|
H5TEST_DLL herr_t create_entry_arrays(void);
|
|
|
|
|
|
|
|
|
|
H5TEST_DLL void free_entry_arrays(void);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void reset_entries(void);
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2016-06-14 01:49:39 +08:00
|
|
|
|
H5TEST_DLL void cork_entry_type(H5F_t * file_ptr, int32_t type);
|
|
|
|
|
|
|
|
|
|
H5TEST_DLL void uncork_entry_type(H5F_t * file_ptr, int32_t type);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void resize_entry(H5F_t * file_ptr,
|
[svn-r18864] Description:
General cleanups to align metadata journaling branch and trunk
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-20 20:27:02 +08:00
|
|
|
|
int32_t type,
|
|
|
|
|
int32_t idx,
|
|
|
|
|
size_t new_size,
|
|
|
|
|
hbool_t in_cache);
|
2006-10-18 18:51:26 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL H5F_t *setup_cache(size_t max_cache_size, size_t min_clean_size);
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void row_major_scan_forward(H5F_t * file_ptr,
|
2015-06-18 08:58:49 +08:00
|
|
|
|
int32_t max_index,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t lag,
|
|
|
|
|
hbool_t verbose,
|
|
|
|
|
hbool_t reset_stats,
|
|
|
|
|
hbool_t display_stats,
|
|
|
|
|
hbool_t display_detailed_stats,
|
|
|
|
|
hbool_t do_inserts,
|
[svn-r18725] Description:
Bring r18724 from metadata journaling 'merging' branch to trunk:
Rename H5[A]C_rename to H5[A]C_move_entry.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-06 23:00:43 +08:00
|
|
|
|
hbool_t do_moves,
|
|
|
|
|
hbool_t move_to_main_addr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
hbool_t do_destroys,
|
2007-04-10 02:58:42 +08:00
|
|
|
|
hbool_t do_mult_ro_protects,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int dirty_destroys,
|
|
|
|
|
int dirty_unprotects);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void hl_row_major_scan_forward(H5F_t * file_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t max_index,
|
|
|
|
|
hbool_t verbose,
|
|
|
|
|
hbool_t reset_stats,
|
|
|
|
|
hbool_t display_stats,
|
|
|
|
|
hbool_t display_detailed_stats,
|
[svn-r18837] Description:
Remove the size parameter from H5[A]C_unprotect() and the
H5[A]C__SIZE_CHANGED_FLAG, switching all clients & tests over to using
H5[A]C_resize_entry appropriately.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-18 20:14:44 +08:00
|
|
|
|
hbool_t do_inserts);
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void row_major_scan_backward(H5F_t * file_ptr,
|
2015-06-18 08:58:49 +08:00
|
|
|
|
int32_t max_index,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t lag,
|
|
|
|
|
hbool_t verbose,
|
|
|
|
|
hbool_t reset_stats,
|
|
|
|
|
hbool_t display_stats,
|
|
|
|
|
hbool_t display_detailed_stats,
|
|
|
|
|
hbool_t do_inserts,
|
[svn-r18725] Description:
Bring r18724 from metadata journaling 'merging' branch to trunk:
Rename H5[A]C_rename to H5[A]C_move_entry.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-06 23:00:43 +08:00
|
|
|
|
hbool_t do_moves,
|
|
|
|
|
hbool_t move_to_main_addr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
hbool_t do_destroys,
|
2007-04-10 02:58:42 +08:00
|
|
|
|
hbool_t do_mult_ro_protects,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int dirty_destroys,
|
|
|
|
|
int dirty_unprotects);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void hl_row_major_scan_backward(H5F_t * file_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t max_index,
|
|
|
|
|
hbool_t verbose,
|
|
|
|
|
hbool_t reset_stats,
|
|
|
|
|
hbool_t display_stats,
|
|
|
|
|
hbool_t display_detailed_stats,
|
[svn-r18837] Description:
Remove the size parameter from H5[A]C_unprotect() and the
H5[A]C__SIZE_CHANGED_FLAG, switching all clients & tests over to using
H5[A]C_resize_entry appropriately.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-18 20:14:44 +08:00
|
|
|
|
hbool_t do_inserts);
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void col_major_scan_forward(H5F_t * file_ptr,
|
2015-06-18 08:58:49 +08:00
|
|
|
|
int32_t max_index,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t lag,
|
|
|
|
|
hbool_t verbose,
|
|
|
|
|
hbool_t reset_stats,
|
|
|
|
|
hbool_t display_stats,
|
|
|
|
|
hbool_t display_detailed_stats,
|
|
|
|
|
hbool_t do_inserts,
|
|
|
|
|
int dirty_unprotects);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void hl_col_major_scan_forward(H5F_t * file_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t max_index,
|
|
|
|
|
hbool_t verbose,
|
|
|
|
|
hbool_t reset_stats,
|
|
|
|
|
hbool_t display_stats,
|
|
|
|
|
hbool_t display_detailed_stats,
|
|
|
|
|
hbool_t do_inserts,
|
|
|
|
|
int dirty_unprotects);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void col_major_scan_backward(H5F_t * file_ptr,
|
2015-06-18 08:58:49 +08:00
|
|
|
|
int32_t max_index,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t lag,
|
|
|
|
|
hbool_t verbose,
|
|
|
|
|
hbool_t reset_stats,
|
|
|
|
|
hbool_t display_stats,
|
|
|
|
|
hbool_t display_detailed_stats,
|
|
|
|
|
hbool_t do_inserts,
|
|
|
|
|
int dirty_unprotects);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void hl_col_major_scan_backward(H5F_t * file_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t max_index,
|
|
|
|
|
hbool_t verbose,
|
|
|
|
|
hbool_t reset_stats,
|
|
|
|
|
hbool_t display_stats,
|
|
|
|
|
hbool_t display_detailed_stats,
|
|
|
|
|
hbool_t do_inserts,
|
|
|
|
|
int dirty_unprotects);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void takedown_cache(H5F_t * file_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
hbool_t dump_stats,
|
|
|
|
|
hbool_t dump_detailed_stats);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void flush_cache(H5F_t * file_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
hbool_t destroy_entries,
|
|
|
|
|
hbool_t dump_stats,
|
|
|
|
|
hbool_t dump_detailed_stats);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void unpin_entry(int32_t type,
|
2006-04-28 21:27:54 +08:00
|
|
|
|
int32_t idx);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void unprotect_entry(H5F_t * file_ptr,
|
2006-01-29 10:34:14 +08:00
|
|
|
|
int32_t type,
|
|
|
|
|
int32_t idx,
|
|
|
|
|
unsigned int flags);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void verify_clean(void);
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void verify_entry_status(H5C_t * cache_ptr,
|
2016-06-06 10:30:16 +08:00
|
|
|
|
int tag,
|
2006-10-18 18:51:26 +08:00
|
|
|
|
int num_entries,
|
|
|
|
|
struct expected_entry_status expected[]);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void verify_unprotected(void);
|
2006-01-29 10:34:14 +08:00
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void create_flush_dependency(int32_t parent_type,
|
[svn-r16587] Description:
Add infrastructure & tests for "flush dependencies" in metadata cache,
which allow relationships that specify which order to flush metadata entries in.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-18 01:08:12 +08:00
|
|
|
|
int32_t parent_idx,
|
|
|
|
|
int32_t child_type,
|
|
|
|
|
int32_t child_idx);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void destroy_flush_dependency(int32_t parent_type,
|
[svn-r16587] Description:
Add infrastructure & tests for "flush dependencies" in metadata cache,
which allow relationships that specify which order to flush metadata entries in.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-18 01:08:12 +08:00
|
|
|
|
int32_t parent_idx,
|
|
|
|
|
int32_t child_type,
|
|
|
|
|
int32_t child_idx);
|
|
|
|
|
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
/*** H5AC level utility functions ***/
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL hbool_t resize_configs_are_equal(const H5C_auto_size_ctl_t *a,
|
2010-06-01 02:27:33 +08:00
|
|
|
|
const H5C_auto_size_ctl_t *b, hbool_t compare_init);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void check_and_validate_cache_hit_rate(hid_t file_id,
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
double * hit_rate_ptr,
|
|
|
|
|
hbool_t dump_data,
|
|
|
|
|
int64_t min_accesses,
|
|
|
|
|
double min_hit_rate);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void check_and_validate_cache_size(hid_t file_id,
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
size_t * max_size_ptr,
|
|
|
|
|
size_t * min_clean_size_ptr,
|
|
|
|
|
size_t * cur_size_ptr,
|
|
|
|
|
int32_t * cur_num_entries_ptr,
|
|
|
|
|
hbool_t dump_data);
|
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void validate_mdc_config(hid_t file_id,
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
H5AC_cache_config_t * ext_config_ptr,
|
|
|
|
|
hbool_t compare_init,
|
|
|
|
|
int test_num);
|
|
|
|
|
|
2015-06-18 08:58:49 +08:00
|
|
|
|
/** Debugging functions -- normally commented out ***/
|
|
|
|
|
#if 0
|
2016-05-05 00:29:52 +08:00
|
|
|
|
H5TEST_DLL void dump_LRU(H5F_t * file_ptr);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
2015-06-18 08:58:49 +08:00
|
|
|
|
|
[svn-r16587] Description:
Add infrastructure & tests for "flush dependencies" in metadata cache,
which allow relationships that specify which order to flush metadata entries in.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.6 (amazon) in debug mode
Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-03-18 01:08:12 +08:00
|
|
|
|
#endif /* _CACHE_COMMON_H */
|
|
|
|
|
|