File tree Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -54,22 +54,15 @@ fmgr-stamp: Gen_fmgrtab.pl $(catalogdir)/Catalog.pm $(top_srcdir)/src/include/ca
5454errcodes.h : $(top_srcdir ) /src/backend/utils/errcodes.txt generate-errcodes.pl
5555 $(PERL ) $(srcdir ) /generate-errcodes.pl $< $@
5656
57- ifneq ($(enable_dtrace ) , yes)
58- probes.h : Gen_dummy_probes.sed
59- endif
60-
61- # We editorialize on dtrace's output to the extent of changing the macro
62- # names (from POSTGRESQL_foo to TRACE_POSTGRESQL_foo) and changing any
63- # "char *" arguments to "const char *".
64- probes.h : probes.d
6557ifeq ($(enable_dtrace ) , yes)
66- $(DTRACE) -C -h -s $< -o $@ .tmp
67- sed -e 's/POSTGRESQL_/TRACE_POSTGRESQL_/g' \
68- -e 's/( *char \*/(const char */g' \
69- -e 's/, *char \*/, const char */g' $@. tmp >$@
70- rm $@.tmp
58+ probes.h : postprocess_dtrace.sed probes.h .tmp
59+ sed -f $^ > $@
60+
61+ probes.h. tmp: probes.d
62+ $( DTRACE ) -C -h -s $< -o $@
7163else
72- sed -f $(srcdir)/Gen_dummy_probes.sed $< >$@
64+ probes.h : Gen_dummy_probes.sed probes.d
65+ sed -f $^ > $@
7366endif
7467
7568# These generated headers must be symlinked into builddir/src/include/,
Original file line number Diff line number Diff line change 1+ # -------------------------------------------------------------------------
2+ # sed script to postprocess dtrace output
3+ #
4+ # Copyright (c) 2008-2022, PostgreSQL Global Development Group
5+ #
6+ # src/backend/utils/postprocess_dtrace.sed
7+ # -------------------------------------------------------------------------
8+
9+ # We editorialize on dtrace's output to the extent of changing the macro
10+ # names (from POSTGRESQL_foo to TRACE_POSTGRESQL_foo) and changing any
11+ # "char *" arguments to "const char *".
12+
13+ s /POSTGRESQL_ /TRACE_POSTGRESQL_ /g
14+ s /( * char \* /(const char * /g
15+ s /, * char \* /, const char * /g
You can’t perform that action at this time.
0 commit comments