BUG #8531: systemtap probe mark(checkpoint__done) error when i read the parameters - Mailing list pgsql-bugs
From | digoal@126.com |
---|---|
Subject | BUG #8531: systemtap probe mark(checkpoint__done) error when i read the parameters |
Date | |
Msg-id | E1VWLUK-0006Sa-Cg@wrigleys.postgresql.org Whole thread Raw |
Responses |
Re: BUG #8531: systemtap probe mark(checkpoint__done) error
when i read the parameters
|
List | pgsql-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
pgsql-bugs by date: