pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: digoal@126.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8531: systemtap probe mark(checkpoint__done) error when i read the parameters
Date: Wed, 16 Oct 2013 07:25:48 +0000
Message-ID: <E1VWLUK-0006Sa-Cg@wrigleys.postgresql.org> (raw )
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 8531
Logged by: digoal
Email address: digoal@126.com
PostgreSQL version: 9.3.1
Operating system: CentOS 6.4 x64
Description:
kernel:
[root@db-172-16-3-150 ~]# rpm -qa|grep debug
kernel-debuginfo-2.6.32-358.el6.x86_64
kernel-debuginfo-common-x86_64-2.6.32-358.el6.x86_64
[root@db-172-16-3-150 ~]# uname -r
2.6.32-358.el6.x86_64
Stap Ver: 2.4
[root@db-172-16-3-150 ~]# stap -V
Systemtap translator/driver (version 2.4/0.152, commit
release-2.3-133-g335e342 + changes)
Copyright (C) 2005-2013 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: LIBSQLITE3 BOOST_SHARED_PTR TR1_UNORDERED_MAP NLS JAVA
PostgreSQL : 9.3.1
When i probe checkpoint__done, and read the parameters , it's error:
[root@db-172-16-3-150 ~]# stap --vp 20000 -e 'probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $arg1)}'
Searched for library macro files:
"/opt/systemtap/share/systemtap/tapset/linux/*.stpm", found: 2, processed:
2
Searched for library macro files:
"/opt/systemtap/share/systemtap/tapset/*.stpm", found: 2, processed: 2
Searched: "/opt/systemtap/share/systemtap/tapset/linux/x86_64/*.stp", found:
3, processed: 3
Searched: "/opt/systemtap/share/systemtap/tapset/linux/*.stp", found: 67,
processed: 67
Searched: "/opt/systemtap/share/systemtap/tapset/x86_64/*.stp", found: 1,
processed: 1
Searched: "/opt/systemtap/share/systemtap/tapset/*.stp", found: 21,
processed: 21
Pass 1: parsed user script and 96 library script(s) using
152024virt/25252res/2128shr/23932data kb, in 230usr/20sys/253real ms.
WARNING: Can't parse SDT_V3 operand 'CheckpointStats+40(%rip)': identifier
'$arg1' at <input>:1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $arg1)}
^
semantic error: unable to find local 'arg1', [man error::dwarf] dieoffset
0xd00f5 in /home/pg93/pgsql9.3.1/bin/postgres, near pc 0x4b9789 in
CreateCheckPoint xlog.c (alternatives: $flags $shutdown $checkPoint $recptr
$Insert $rdata $freespace $_logSegNo $vxids $nvxids $__func__): identifier
'$arg1' at :1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $arg1)}
^
semantic error: SDT asm not understood, requires debuginfo: identifier
'$arg1' at :1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $arg1)}
^
Pass 2: analysis failed. [man error::pass2]
Read $$vars also ERROR:
[root@db-172-16-3-150 ~]# stap --vp 20000 -e 'probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $$vars)}'
Searched for library macro files:
"/opt/systemtap/share/systemtap/tapset/linux/*.stpm", found: 2, processed:
2
Searched for library macro files:
"/opt/systemtap/share/systemtap/tapset/*.stpm", found: 2, processed: 2
Searched: "/opt/systemtap/share/systemtap/tapset/linux/x86_64/*.stp", found:
3, processed: 3
Searched: "/opt/systemtap/share/systemtap/tapset/linux/*.stp", found: 67,
processed: 67
Searched: "/opt/systemtap/share/systemtap/tapset/x86_64/*.stp", found: 1,
processed: 1
Searched: "/opt/systemtap/share/systemtap/tapset/*.stp", found: 21,
processed: 21
Pass 1: parsed user script and 96 library script(s) using
152020virt/25252res/2128shr/23928data kb, in 230usr/10sys/253real ms.
WARNING: Can't parse SDT_V3 operand 'CheckpointStats+40(%rip)': identifier
'$$vars' at <input>:1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $$vars)}
^
WARNING: Can't parse SDT_V3 operand 'NBuffers(%rip)': identifier '$$vars' at
:1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $$vars)}
^
WARNING: Can't parse SDT_V3 operand 'CheckpointStats+44(%rip)': identifier
'$$vars' at :1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $$vars)}
^
WARNING: Can't parse SDT_V3 operand 'CheckpointStats+48(%rip)': identifier
'$$vars' at :1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $$vars)}
^
WARNING: Can't parse SDT_V3 operand 'CheckpointStats+52(%rip)': identifier
'$$vars' at :1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $$vars)}
^
semantic error: unable to find local 'arg1', [man error::dwarf] dieoffset
0xd00f5 in /home/pg93/pgsql9.3.1/bin/postgres, near pc 0x4b9789 in
CreateCheckPoint xlog.c (alternatives: $flags $shutdown $checkPoint $recptr
$Insert $rdata $freespace $_logSegNo $vxids $nvxids $__func__): identifier
'$$vars' at :1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $$vars)}
^
semantic error: SDT asm not understood, requires debuginfo: identifier
'$$vars' at :1:94
source: probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{printf("%d\n", $$vars)}
^
Pass 2: analysis failed. [man error::pass2]
But, it's correct when not read the parameter.
[root@db-172-16-3-150 ~]# stap --vp 20000 -e 'probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__done")
{println("Hello")}'
Searched for library macro files:
"/opt/systemtap/share/systemtap/tapset/linux/*.stpm", found: 2, processed:
2
Searched for library macro files:
"/opt/systemtap/share/systemtap/tapset/*.stpm", found: 2, processed: 2
Searched: "/opt/systemtap/share/systemtap/tapset/linux/x86_64/*.stp", found:
3, processed: 3
Searched: "/opt/systemtap/share/systemtap/tapset/linux/*.stp", found: 67,
processed: 67
Searched: "/opt/systemtap/share/systemtap/tapset/x86_64/*.stp", found: 1,
processed: 1
Searched: "/opt/systemtap/share/systemtap/tapset/*.stp", found: 21,
processed: 21
Pass 1: parsed user script and 96 library script(s) using
152020virt/25248res/2128shr/23928data kb, in 240usr/10sys/254real ms.
Hello
Hello
And , other probes is ok:
[root@db-172-16-3-150 ~]# stap --vp 20000 -e 'probe
process("/home/pg93/pgsql9.3.1/bin/postgres").mark("checkpoint__start")
{println($arg1)}'
Searched for library macro files:
"/opt/systemtap/share/systemtap/tapset/linux/*.stpm", found: 2, processed:
2
Searched for library macro files:
"/opt/systemtap/share/systemtap/tapset/*.stpm", found: 2, processed: 2
Searched: "/opt/systemtap/share/systemtap/tapset/linux/x86_64/*.stp", found:
3, processed: 3
Searched: "/opt/systemtap/share/systemtap/tapset/linux/*.stp", found: 67,
processed: 67
Searched: "/opt/systemtap/share/systemtap/tapset/x86_64/*.stp", found: 1,
processed: 1
Searched: "/opt/systemtap/share/systemtap/tapset/*.stp", found: 21,
processed: 21
Pass 1: parsed user script and 96 library script(s) using
152020virt/25256res/2128shr/23928data kb, in 240usr/10sys/253real ms.
28
24
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
view thread (7+ messages) latest in thread
Message-ID: <E1VWLUK-0006Sa-Cg@wrigleys.postgresql.org>
Permalink: ../E1VWLUK-0006Sa-Cg@wrigleys.postgresql.org/
Also on: postgresql.org/message-id/E1VWLUK-0006Sa-Cg@wrigleys.postgresql.org
copy link · copy postgr.es
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-bugs@postgresql.org
Cc: digoal@126.com
Subject: Re: BUG #8531: systemtap probe mark(checkpoint__done) error when i read the parameters
In-Reply-To: <E1VWLUK-0006Sa-Cg@wrigleys.postgresql.org>
References: <E1VWLUK-0006Sa-Cg@wrigleys.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