PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | INJECTION_POINT_LOAD(name) ((void) name) |
#define | INJECTION_POINT(name) ((void) name) |
#define | INJECTION_POINT_CACHED(name) ((void) name) |
#define | IS_INJECTION_POINT_ATTACHED(name) (false) |
Typedefs | |
typedef void(* | InjectionPointCallback) (const char *name, const void *private_data) |
Functions | |
Size | InjectionPointShmemSize (void) |
void | InjectionPointShmemInit (void) |
void | InjectionPointAttach (const char *name, const char *library, const char *function, const void *private_data, int private_data_size) |
void | InjectionPointLoad (const char *name) |
void | InjectionPointRun (const char *name) |
void | InjectionPointCached (const char *name) |
bool | IsInjectionPointAttached (const char *name) |
bool | InjectionPointDetach (const char *name) |
Definition at line 24 of file injection_point.h.
Definition at line 25 of file injection_point.h.
Definition at line 23 of file injection_point.h.
Definition at line 26 of file injection_point.h.
typedef void(* InjectionPointCallback) (const char *name, const void *private_data) |
Definition at line 32 of file injection_point.h.
void InjectionPointAttach | ( | const char * | name, |
const char * | library, | ||
const char * | function, | ||
const void * | private_data, | ||
int | private_data_size | ||
) |
Definition at line 272 of file injection_point.c.
References Assert, elog, ERROR, idx(), INJ_NAME_MAXLEN, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), name, pg_atomic_read_u32(), pg_atomic_read_u64(), pg_atomic_write_u32(), pg_atomic_write_u64(), pg_write_barrier, and strlcpy().
Referenced by injection_points_attach().
void InjectionPointCached | ( | const char * | name | ) |
Definition at line 560 of file injection_point.c.
bool InjectionPointDetach | ( | const char * | name | ) |
Definition at line 360 of file injection_point.c.
References Assert, elog, ERROR, idx(), LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), name, pg_atomic_read_u32(), pg_atomic_read_u64(), pg_atomic_write_u32(), and pg_atomic_write_u64().
Referenced by injection_points_cleanup(), and injection_points_detach().
void InjectionPointLoad | ( | const char * | name | ) |
void InjectionPointRun | ( | const char * | name | ) |
Definition at line 543 of file injection_point.c.
void InjectionPointShmemInit | ( | void | ) |
Definition at line 248 of file injection_point.c.
References Assert, i, IsUnderPostmaster, pg_atomic_init_u32(), pg_atomic_init_u64(), and ShmemInitStruct().
Referenced by CreateOrAttachShmemStructs().
Size InjectionPointShmemSize | ( | void | ) |
Definition at line 232 of file injection_point.c.
References add_size().
Referenced by CalculateShmemSize().
bool IsInjectionPointAttached | ( | const char * | name | ) |
Definition at line 577 of file injection_point.c.