wk wrote:
> hi:Linux centos6.4 2.6.32-358.el6.i686 #1 SMP Thu Feb 21 21:50:49 UTC 2013 i686 i686 i386 GNU/Linux
>
> stap -v
> A script must be specified.
> Systemtap translator/driver (version 1.8/0.152 non-git sources)
> Copyright (C) 2005-2012 Red Hat, Inc. and others
> my configure:
> ./configure --enable-debug --enable-dtrace --prefix=/home/tom/pg9.2.1/ DTRACE=/usr/bin/stap --without-zlib
> error is:
> make[3]: Entering directory `/home/tom/postgresql-9.2.1/src/backend/utils'
> /usr/bin/stap -C -h -s probes.d -o probes.h.tmp
> /usr/bin/stap: invalid option -- 'C'
Evidently our DTrace support hasn't been ported to the systemtap
emulation; or maybe you need some more config options. I think you will
need to hack the makefiles until it works, and we could use a patch.
I'm sure many will be happy to use SystemTap with our dtrace
tracepoints.
(I vaguely recall somebody saying this already worked, years ago; maybe
you should troll the pgsql-hackers archives.)
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services