|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "storage/lmgr.h"#include "storage/lwlock.h"#include "storage/shmem.h"#include "storage/subsystems.h"#include "storage/spin.h"#include "utils/wait_event.h"#include "utils/pgstat_wait_event.c"
Go to the source code of this file.
Data Structures | |
| struct | WaitEventCustomEntryByInfo |
| struct | WaitEventCustomEntryByName |
| struct | WaitEventCustomCounterData |
Macros | |
| #define | WAIT_EVENT_CLASS_MASK 0xFF000000 |
| #define | WAIT_EVENT_ID_MASK 0x0000FFFF |
| #define | WAIT_EVENT_CUSTOM_HASH_SIZE 128 |
| #define | WAIT_EVENT_CUSTOM_INITIAL_ID 1 |
| #define WAIT_EVENT_CLASS_MASK 0xFF000000 |
Definition at line 44 of file wait_event.c.
| #define WAIT_EVENT_CUSTOM_HASH_SIZE 128 |
Definition at line 67 of file wait_event.c.
| #define WAIT_EVENT_CUSTOM_INITIAL_ID 1 |
Definition at line 94 of file wait_event.c.
| #define WAIT_EVENT_ID_MASK 0x0000FFFF |
Definition at line 45 of file wait_event.c.
Definition at line 262 of file wait_event.c.
References elog, ERROR, fb(), HASH_FIND, hash_search(), LW_SHARED, LWLockAcquire(), LWLockRelease(), PG_WAIT_EXTENSION, WaitEventCustomEntryByInfo::wait_event_name, and WaitEventCustomHashByInfo.
Referenced by pgstat_get_wait_event().
Definition at line 292 of file wait_event.c.
References fb(), hash_get_num_entries(), hash_seq_init(), hash_seq_search(), LW_SHARED, LWLockAcquire(), LWLockRelease(), palloc_array, pstrdup(), WAIT_EVENT_CLASS_MASK, and WaitEventCustomHashByName.
Referenced by pg_get_wait_events().
|
static |
Referenced by pgstat_get_wait_event().
|
static |
Referenced by pgstat_get_wait_event().
|
static |
Referenced by pgstat_get_wait_event().
Definition at line 417 of file wait_event.c.
References fb(), GetLockNameFromTagType(), GetLWLockIdentifier(), GetWaitEventCustomIdentifier(), PG_WAIT_ACTIVITY, PG_WAIT_BUFFER, PG_WAIT_CLIENT, PG_WAIT_EXTENSION, PG_WAIT_INJECTIONPOINT, PG_WAIT_IO, PG_WAIT_IPC, PG_WAIT_LOCK, PG_WAIT_LWLOCK, PG_WAIT_TIMEOUT, pgstat_get_wait_activity(), pgstat_get_wait_buffer(), pgstat_get_wait_client(), pgstat_get_wait_io(), pgstat_get_wait_ipc(), pgstat_get_wait_timeout(), WAIT_EVENT_CLASS_MASK, and WAIT_EVENT_ID_MASK.
Referenced by pg_stat_get_activity(), and pg_stat_get_backend_wait_event().
Definition at line 359 of file wait_event.c.
References fb(), PG_WAIT_ACTIVITY, PG_WAIT_BUFFER, PG_WAIT_CLIENT, PG_WAIT_EXTENSION, PG_WAIT_INJECTIONPOINT, PG_WAIT_IO, PG_WAIT_IPC, PG_WAIT_LOCK, PG_WAIT_LWLOCK, PG_WAIT_TIMEOUT, and WAIT_EVENT_CLASS_MASK.
Referenced by pg_isolation_test_session_is_blocked(), pg_stat_get_activity(), pg_stat_get_backend_wait_event_type(), and WaitEventCustomNew().
|
static |
Referenced by pgstat_get_wait_event().
|
static |
Referenced by pgstat_get_wait_event().
|
static |
Referenced by pgstat_get_wait_event().
Definition at line 347 of file wait_event.c.
References local_my_wait_event_info, and my_wait_event_info.
Referenced by AuxiliaryProcKill(), and ProcKill().
Definition at line 335 of file wait_event.c.
References my_wait_event_info.
Referenced by InitAuxiliaryProcess(), and InitProcess().
Definition at line 161 of file wait_event.c.
References Assert, elog, ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errmsg, ERROR, fb(), HASH_ENTER, HASH_FIND, hash_search(), LW_EXCLUSIVE, LW_SHARED, LWLockAcquire(), LWLockRelease(), WaitEventCustomCounterData::mutex, NAMEDATALEN, WaitEventCustomCounterData::nextId, pgstat_get_wait_event_type(), SpinLockAcquire(), SpinLockRelease(), strlcpy(), WAIT_EVENT_CLASS_MASK, WAIT_EVENT_CUSTOM_HASH_SIZE, WaitEventCustomCounter, WaitEventCustomHashByInfo, and WaitEventCustomHashByName.
Referenced by WaitEventExtensionNew(), and WaitEventInjectionPointNew().
Definition at line 135 of file wait_event.c.
References WaitEventCustomCounterData::mutex, WaitEventCustomCounterData::nextId, SpinLockInit(), WAIT_EVENT_CUSTOM_INITIAL_ID, and WaitEventCustomCounter.
Definition at line 111 of file wait_event.c.
References HASH_BLOBS, HASH_ELEM, HASH_STRINGS, HTAB::keysize, name, NAMEDATALEN, ShmemRequestHash, ShmemRequestStruct, WAIT_EVENT_CUSTOM_HASH_SIZE, WaitEventCustomCounter, WaitEventCustomHashByInfo, and WaitEventCustomHashByName.
Definition at line 149 of file wait_event.c.
References PG_WAIT_EXTENSION, and WaitEventCustomNew().
Referenced by connect_pg_server(), dblink_connect(), dblink_get_conn(), dblink_init(), GetConnection(), pgfdw_get_cleanup_result(), test_shm_mq_pipelined(), wait_for_workers_to_become_ready(), and worker_spi_main().
Definition at line 155 of file wait_event.c.
References PG_WAIT_INJECTIONPOINT, and WaitEventCustomNew().
Referenced by injection_wait(), and test_aio_shmem_init().
|
static |
Definition at line 41 of file wait_event.c.
Referenced by pgstat_reset_wait_event_storage().
| uint32* my_wait_event_info = &local_my_wait_event_info |
Definition at line 42 of file wait_event.c.
Referenced by pgstat_report_wait_end(), pgstat_report_wait_start(), pgstat_reset_wait_event_storage(), and pgstat_set_wait_event_storage().
|
static |
Definition at line 91 of file wait_event.c.
Referenced by WaitEventCustomNew(), WaitEventCustomShmemInit(), and WaitEventCustomShmemRequest().
|
static |
Definition at line 64 of file wait_event.c.
Referenced by GetWaitEventCustomIdentifier(), WaitEventCustomNew(), and WaitEventCustomShmemRequest().
|
static |
Definition at line 65 of file wait_event.c.
Referenced by GetWaitEventCustomNames(), WaitEventCustomNew(), and WaitEventCustomShmemRequest().
| const ShmemCallbacks WaitEventCustomShmemCallbacks |
Definition at line 102 of file wait_event.c.