Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWn8L-0000Dl-1W for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Oct 2013 12:56:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VWn8K-0007fT-3q for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Oct 2013 12:56:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWLUd-0003K0-7T for pgsql-bugs@postgresql.org; Wed, 16 Oct 2013 07:26:07 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWLUT-0000I1-71 for pgsql-bugs@postgresql.org; Wed, 16 Oct 2013 07:26:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VWLUQ-0003rh-7P for pgsql-bugs@postgresql.org; Wed, 16 Oct 2013 07:25:56 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VWLUK-0006Sa-Cg for pgsql-bugs@postgresql.org; Wed, 16 Oct 2013 07:25:48 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8531: systemtap probe mark(checkpoint__done) error when i read the parameters To: pgsql-bugs@postgresql.org From: digoal@126.com Message-Id: Date: Wed, 16 Oct 2013 07:25:48 +0000 X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 :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 :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