Обсуждение: static tracepoints in pgstat_report_wait_start/end

Поиск
Список
Период
Сортировка

static tracepoints in pgstat_report_wait_start/end

От
Jeremy Schneider
Дата:
has anyone here tried static tracepoints inside
pgstat_report_wait_start/end to enable tools like ebpf to do full
tracing of wait events?

-Jeremy


-- 
To know the thoughts and deeds that have marked man's progress is to
feel the great heart throbs of humanity through the centuries; and if
one does not feel in these pulsations a heavenward striving, one must
indeed be deaf to the harmonies of life.

Helen Keller, The Story Of My Life, 1902, 1903, 1905, introduction by
Ralph Barton Perry (Garden City, NY: Doubleday & Company, 1954), p90.




Re: static tracepoints in pgstat_report_wait_start/end

От
Frits Hoogland
Дата:
I found that the relevant functions that indicate the waits are optimized out when postgres is compiled.
And thus simply trying to use the functions that mark the start and end of a wait event cannot easily
be used.

But I am eager to see if anyone has come up with a solution to do this in a compiled and optimized 
postgres version.

Frits Hoogland




On 10 Jan 2026, at 05:22, Jeremy Schneider <schneider@ardentperf.com> wrote:

has anyone here tried static tracepoints inside
pgstat_report_wait_start/end to enable tools like ebpf to do full
tracing of wait events?

-Jeremy


--
To know the thoughts and deeds that have marked man's progress is to
feel the great heart throbs of humanity through the centuries; and if
one does not feel in these pulsations a heavenward striving, one must
indeed be deaf to the harmonies of life.

Helen Keller, The Story Of My Life, 1902, 1903, 1905, introduction by
Ralph Barton Perry (Garden City, NY: Doubleday & Company, 1954), p90.