mirror of
https://github.com/postgres/postgres.git
synced 2025-12-01 12:18:01 +03:00
support DTrace in the future. Switch from using DTRACE_PROBEn macros to the dynamically generated macros. Use "dtrace -h" to create a header file that contains the dynamically generated macros to be used in the source code instead of the DTRACE_PROBEn macros. A dummy header file is generated for builds without DTrace support. Author: Robert Lor <Robert.Lor@sun.com>
17 lines
577 B
Sed
17 lines
577 B
Sed
#-------------------------------------------------------------------------
|
|
# sed script to create dummy probes.h file when dtrace is not available
|
|
#
|
|
# Copyright (c) 2008, PostgreSQL Global Development Group
|
|
#
|
|
# $PostgreSQL: pgsql/src/backend/utils/Gen_dummy_probes.sed,v 1.1 2008/03/17 19:44:41 petere Exp $
|
|
#-------------------------------------------------------------------------
|
|
|
|
/^probe /!d
|
|
s/^probe \([^(]*\)\(.*\);/\1\2/
|
|
s/__/_/g
|
|
y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
|
|
s/^/#define TRACE_POSTGRESQL_/
|
|
s/(INT, INT)/(INT1, INT2)/
|
|
P
|
|
s/(.*$/_ENABLED() (0)/
|