PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
probes.d
Go to the documentation of this file.
1/* ----------
2 * DTrace probes for PostgreSQL backend
3 *
4 * Copyright (c) 2006-2025, PostgreSQL Global Development Group
5 *
6 * src/backend/utils/probes.d
7 * ----------
8 */
9
10
11/*
12 * Typedefs used in PostgreSQL probes.
13 *
14 * NOTE: Do not use system-provided typedefs (e.g. uintptr_t, uint32_t, etc)
15 * in probe definitions, as they cause compilation errors on macOS.
16 */
17#define LocalTransactionId unsigned int
18#define LWLockMode int
19#define LOCKMODE int
20#define BlockNumber unsigned int
21#define Oid unsigned int
22#define ForkNumber int
23#define bool unsigned char
24
26
27 probe transaction__start(LocalTransactionId);
30
31 probe lwlock__acquire(const char *, LWLockMode);
32 probe lwlock__release(const char *);
33 probe lwlock__wait__start(const char *, LWLockMode);
34 probe lwlock__wait__done(const char *, LWLockMode);
35 probe lwlock__condacquire(const char *, LWLockMode);
39
40 probe lock__wait__start(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, LOCKMODE);
41 probe lock__wait__done(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, LOCKMODE);
42
43 probe query__parse__start(const char *);
44 probe query__parse__done(const char *);
45 probe query__rewrite__start(const char *);
46 probe query__rewrite__done(const char *);
51 probe query__start(const char *);
52 probe query__done(const char *);
53 probe statement__status(const char *);
54
55 probe sort__start(int, bool, int, int, bool, int);
56 probe sort__done(bool, long);
57
62 probe buffer__extend__start(ForkNumber, Oid, Oid, Oid, int, unsigned int);
63 probe buffer__extend__done(ForkNumber, Oid, Oid, Oid, int, unsigned int, BlockNumber);
64
68 probe buffer__sync__start(int, int);
70 probe buffer__sync__done(int, int, int);
71
73
75 probe checkpoint__done(int, int, int, int, int);
84
89
90 probe wal__insert(unsigned char, unsigned char);
91 probe wal__switch();
94};
uint32 BlockNumber
Definition: block.h:31
uint32 LocalTransactionId
Definition: c.h:611
static JitProviderCallbacks provider
Definition: jit.c:43
int LOCKMODE
Definition: lockdefs.h:26
LWLockMode
Definition: lwlock.h:113
unsigned int Oid
Definition: postgres_ext.h:32
probe sort__done(bool, long)
probe query__rewrite__done(const char *)
probe query__rewrite__start(const char *)
probe wal__buffer__write__dirty__done()
probe checkpoint__done(int, int, int, int, int)
probe wal__switch()
probe lwlock__acquire__or__wait(const char *, LWLockMode)
probe statement__status(const char *)
probe transaction__commit(LocalTransactionId)
probe sort__start(int, bool, int, int, bool, int)
probe buffer__flush__done(ForkNumber, BlockNumber, Oid, Oid, Oid)
probe smgr__md__write__done(ForkNumber, BlockNumber, Oid, Oid, Oid, int, int, int)
probe lwlock__acquire(const char *, LWLockMode)
probe buffer__flush__start(ForkNumber, BlockNumber, Oid, Oid, Oid)
probe buffer__read__start(ForkNumber, BlockNumber, Oid, Oid, Oid, int)
probe buffer__checkpoint__sync__start()
probe buffer__sync__done(int, int, int)
probe subtrans__checkpoint__start(bool)
probe lwlock__condacquire__fail(const char *, LWLockMode)
probe lock__wait__start(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, LOCKMODE)
probe clog__checkpoint__done(bool)
probe lwlock__wait__start(const char *, LWLockMode)
probe twophase__checkpoint__done()
probe query__execute__start()
probe deadlock__found()
probe clog__checkpoint__start(bool)
probe buffer__read__done(ForkNumber, BlockNumber, Oid, Oid, Oid, int, bool)
probe query__execute__done()
probe buffer__sync__start(int, int)
provider postgresql
Definition: probes.d:25
probe wal__insert(unsigned char, unsigned char)
probe multixact__checkpoint__done(bool)
probe query__parse__start(const char *)
probe transaction__abort(LocalTransactionId)
probe lwlock__wait__done(const char *, LWLockMode)
probe lock__wait__done(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, LOCKMODE)
probe query__plan__start()
probe buffer__checkpoint__start(int)
probe smgr__md__read__start(ForkNumber, BlockNumber, Oid, Oid, Oid, int)
probe lwlock__acquire__or__wait__fail(const char *, LWLockMode)
probe query__parse__done(const char *)
probe buffer__checkpoint__done()
probe buffer__extend__start(ForkNumber, Oid, Oid, Oid, int, unsigned int)
probe query__done(const char *)
probe multixact__checkpoint__start(bool)
probe buffer__sync__written(int)
probe subtrans__checkpoint__done(bool)
probe query__plan__done()
probe twophase__checkpoint__start()
probe checkpoint__start(int)
probe smgr__md__write__start(ForkNumber, BlockNumber, Oid, Oid, Oid, int)
probe buffer__extend__done(ForkNumber, Oid, Oid, Oid, int, unsigned int, BlockNumber)
probe lwlock__release(const char *)
probe wal__buffer__write__dirty__start()
probe lwlock__condacquire(const char *, LWLockMode)
probe smgr__md__read__done(ForkNumber, BlockNumber, Oid, Oid, Oid, int, int, int)
probe query__start(const char *)
ForkNumber
Definition: relpath.h:56