From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128428 invoked by alias); 29 Jun 2016 18:33:01 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 128354 invoked by uid 48); 29 Jun 2016 18:32:48 -0000 From: "dsmith at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/20307] tapset/linux/rpc.stp error Date: Wed, 29 Jun 2016 18:33:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dsmith at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2016-q2/txt/msg00314.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D20307 --- Comment #3 from David Smith --- This does appear to be a problem with 'private'. I've duplicated the proble= m on an x86_64 rawhide system with a small test case. I believe the rpc test did= n't fail on rawhide because of kernel differences (which mean that the internal array isn't needed).=20 =3D=3D=3D=3D # cat tapset/foo.stp private global __fdarray probe kernel.function("sys_read") { __fdarray[tid()] =3D $fd } probe kernel.function("sys_read").return { delete __fdarray[tid()] } probe foo_read =3D kernel.function("vfs_read") { fd =3D __fdarray[tid()] } # # cat test.stp=20 probe foo_read { printf("%d\n", fd) exit() } # # stap -v -I tapset test.stp Pass 1: parsed user script and 118 library scripts using 242712virt/39428res/7532shr/32124data kb, in 190usr/40sys/241real ms. semantic error: unresolved arity-1 global array __fdarray, missing global declaration?: identifier '__fdarray' at tapset/foo.stp:14:10 source: fd =3D __fdarray[tid()] ^ Pass 2: analyzed script: 3 probes, 181 functions, 3 embeds, 1 global using 287616virt/85752res/8828shr/77028data kb, in 1580usr/240sys/1830real ms. Pass 2: analysis failed. [man error::pass2] =3D=3D=3D=3D If you remove 'private', this small test works fine. Note that this problem was probably not noticed during 'private' development since on RHEL7 ppc64 there is another error in rpc.stp due to missing debuginfo. --=20 You are receiving this mail because: You are the assignee for the bug.