Re: configure --enable-dtrace (systemtap) on centos6.4 x86_32,/usr/bin/stap: invalid option -- 'C' - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: configure --enable-dtrace (systemtap) on centos6.4 x86_32,/usr/bin/stap: invalid option -- 'C'
Date
Msg-id 20130416155321.GJ8626@eldon.alvh.no-ip.org
Whole thread Raw
In response to =?gb18030?B?Y29uZmlndXJlIC0tZW5hYmxlLWR0cmFjZSCjqHN5?= =?gb18030?B?c3RlbXRhcKOpIG9uIGNlbnRvczYuNCB4ODZfMzI=?= =?gb18030?B?o6wvdXNyL2Jpbi9zdGFwOiBpbnZhbGlkIG9wdGlv?= =?gb18030?B?biAtLSAnQycg?=  ("wk" <304702903@qq.com>)
Responses Re: configure --enable-dtrace (systemtap) on centos6.4 x86_32,/usr/bin/stap: invalid option -- 'C'
List pgsql-general
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


pgsql-general by date:

Previous
From: "wk"
Date:
Subject: =?gb18030?B?Y29uZmlndXJlIC0tZW5hYmxlLWR0cmFjZSCjqHN5?= =?gb18030?B?c3RlbXRhcKOpIG9uIGNlbnRvczYuNCB4ODZfMzI=?= =?gb18030?B?o6wvdXNyL2Jpbi9zdGFwOiBpbnZhbGlkIG9wdGlv?= =?gb18030?B?biAtLSAnQycg?=
Next
From: Tom Lane
Date:
Subject: Re: configure --enable-dtrace (systemtap) on centos6.4 x86_32,/usr/bin/stap: invalid option -- 'C'