Dtrace probes documentation

Lists: pgsql-hackers
From: Joshua Tolley <eggyknap(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Dtrace probes documentation
Date: 2009-05-28 22:07:39
Message-ID: 20090528220739.GA15201@eddie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

The dtrace probes documentation [1] spells each probe name with dashes
("transaction-start", "transaction-commit", etc.). Yet as far as I can see,
dtrace only works if you spell the probe names with double underscores
("transaction__start", "transaction__commit", etc.). Why the discrepancy?
Obvious patch attached, in case this needs to be changed.

- Josh / eggyknap

1: http://www.postgresql.org/docs/8.4/static/dynamic-trace.html

Attachment Content-Type Size
dtrace-probes text/plain 18.6 KB

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joshua Tolley <eggyknap(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Dtrace probes documentation
Date: 2009-05-28 22:28:14
Message-ID: 1856.1243549694@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Joshua Tolley <eggyknap(at)gmail(dot)com> writes:
> The dtrace probes documentation [1] spells each probe name with dashes
> ("transaction-start", "transaction-commit", etc.). Yet as far as I can see,
> dtrace only works if you spell the probe names with double underscores
> ("transaction__start", "transaction__commit", etc.). Why the discrepancy?

Read 26.4.3 and .4. I don't know why they have this bizarre set of
conventions, but the single-hyphen version is the spelling
most visible to end users.

regards, tom lane


From: Joshua Tolley <eggyknap(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Dtrace probes documentation
Date: 2009-05-28 23:20:39
Message-ID: 20090528232039.GD15201@eddie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, May 28, 2009 at 06:28:14PM -0400, Tom Lane wrote:
> Joshua Tolley <eggyknap(at)gmail(dot)com> writes:
> > The dtrace probes documentation [1] spells each probe name with dashes
> > ("transaction-start", "transaction-commit", etc.). Yet as far as I can see,
> > dtrace only works if you spell the probe names with double underscores
> > ("transaction__start", "transaction__commit", etc.). Why the discrepancy?
>
> Read 26.4.3 and .4. I don't know why they have this bizarre set of
> conventions, but the single-hyphen version is the spelling
> most visible to end users.

I thought it might be something like that. I've been playing with SystemTap,
and found that only the double-underscore version works for ... well, anything.
See http://blog.endpoint.com/2009/05/postgresql-with-systemtap.html for
details. Perhaps it's worth noting in the documentation that SystemTap users
will need to use the double-underscore version?

- Josh / eggyknap


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joshua Tolley <eggyknap(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Dtrace probes documentation
Date: 2009-05-31 20:07:40
Message-ID: 14260.1243800460@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Joshua Tolley <eggyknap(at)gmail(dot)com> writes:
> On Thu, May 28, 2009 at 06:28:14PM -0400, Tom Lane wrote:
>> Read 26.4.3 and .4. I don't know why they have this bizarre set of
>> conventions, but the single-hyphen version is the spelling
>> most visible to end users.

> I thought it might be something like that. I've been playing with SystemTap,
> and found that only the double-underscore version works for ... well, anything.
> See http://blog.endpoint.com/2009/05/postgresql-with-systemtap.html for
> details. Perhaps it's worth noting in the documentation that SystemTap users
> will need to use the double-underscore version?

I think a better solution is to persuade the Systemtap guys that they
ought to accept the single-hyphen spelling. I've put in a request for
that, we'll see what they think ...

regards, tom lane


From: fche(at)redhat(dot)com (Frank Ch(dot) Eigler)
To: pgsql-hackers(at)postgresql(dot)org, Joshua Tolley <eggyknap(at)gmail(dot)com>
Subject: Re: Dtrace probes documentation
Date: 2009-06-01 17:15:40
Message-ID: y0mws7v98oz.fsf@fche.csb
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> [...]
>> See http://blog.endpoint.com/2009/05/postgresql-with-systemtap.html for
>> details. Perhaps it's worth noting in the documentation that SystemTap users
>> will need to use the double-underscore version?
>
> I think a better solution is to persuade the Systemtap guys that they
> ought to accept the single-hyphen spelling. [...]

Will do: http://sourceware.org/PR10225.

- FChE