mirror of https://github.com/postgres/postgres
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>REL8_5_ALPHA1_BRANCH
parent
e7115a224a
commit
a7b7b07af3
@ -0,0 +1,16 @@ |
||||
#------------------------------------------------------------------------- |
||||
# 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)/ |
||||
Loading…
Reference in new issue