PostgreSQL Source Code
git master
|
Go to the source code of this file.
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) |
bool | InjectionPointDetach (const char *name) |
void | InjectionPointLoad (const char *name) |
void | InjectionPointRun (const char *name) |
void | InjectionPointCached (const char *name) |
bool | IsInjectionPointAttached (const char *name) |
void InjectionPointAttach | ( | const char * | name, |
const char * | library, | ||
const char * | function, | ||
const void * | private_data, | ||
int | private_data_size | ||
) |
Definition at line 273 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 561 of file injection_point.c.
bool InjectionPointDetach | ( | const char * | name | ) |
Definition at line 361 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 544 of file injection_point.c.
void InjectionPointShmemInit | ( | void | ) |
Definition at line 249 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 233 of file injection_point.c.
References add_size().
Referenced by CalculateShmemSize().
bool IsInjectionPointAttached | ( | const char * | name | ) |
Definition at line 578 of file injection_point.c.