pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: When trace_lwlocks is used, identify individual lwlocks by name.
Date: Fri, 11 Sep 2015 18:02:06 +0000
Message-ID: <E1ZaSeE-0007Pa-MV@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

When trace_lwlocks is used, identify individual lwlocks by name.

Naming the individual lwlocks seems like something that may be useful
for other types of debugging, monitoring, or instrumentation output,
but this commit just implements it for the specific case of
trace_lwlocks.

Patch by me, reviewed by Amit Kapila and Kyotaro Horiguchi

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/aa65de042f5828968f2f6cd65f45c543a40cc3e6

Modified Files
--------------
src/backend/Makefile                             |   14 ++++-
src/backend/storage/lmgr/.gitignore              |    2 +
src/backend/storage/lmgr/Makefile                |   11 +++-
src/backend/storage/lmgr/generate-lwlocknames.pl |   67 ++++++++++++++++++++++
src/backend/storage/lmgr/lwlock.c                |   60 +++++++++++++------
src/backend/storage/lmgr/lwlocknames.txt         |   47 +++++++++++++++
src/include/storage/.gitignore                   |    1 +
src/include/storage/lwlock.h                     |   52 +----------------
src/tools/msvc/Solution.pm                       |   16 ++++++
9 files changed, 201 insertions(+), 69 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1ZaSeE-0007Pa-MV@gemulon.postgresql.org>
Permalink:  ../E1ZaSeE-0007Pa-MV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZaSeE-0007Pa-MV@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: When trace_lwlocks is used, identify individual lwlocks by name.
  In-Reply-To: <E1ZaSeE-0007Pa-MV@gemulon.postgresql.org>
  References: <E1ZaSeE-0007Pa-MV@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox