From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 262C6385C426; Sat, 18 Apr 2020 19:28:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 262C6385C426 From: "agentzh at gmail dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/25851] New: Fail to resolve file argument from kernel dwarf on Fedora 30 x86_64 Date: Sat, 18 Apr 2020 19:28:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: tapsets X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: agentzh at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Apr 2020 19:28:55 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25851 Bug ID: 25851 Summary: Fail to resolve file argument from kernel dwarf on Fedora 30 x86_64 Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tapsets Assignee: systemtap at sourceware dot org Reporter: agentzh at gmail dot com Target Milestone: --- I've noted that vfs.write no longer works on Fedora 30 x86_64. It works wel= l on Fedora 28 though. Below is the oneliner I used to reproduce the issue: ``` $ /opt/stap/bin/stap -v -e 'probe vfs.write { println("hit!", file) }' Pass 1: parsed user script and 486 library scripts using 378936virt/154140res/7972shr/146392data kb, in 1150usr/50sys/1211real ms. WARNING: Potential type mismatch in reassignment: identifier 'root_dentry' = at /opt/stap/share/systemtap/tapset/linux/dentry.stp:246:3 source: root_dentry =3D @cast(task, "task_struct")->fs->root->dentry ^ WARNING: Potential type mismatch in reassignment: identifier 'root_dentry' = at :242:3 source: root_dentry =3D & @cast(task, "task_struct")->fs->r= oot ^ semantic error: unresolved type : identifier 'file' at /opt/stap/share/systemtap/tapset/linux/vfs.stp:1050:2 source: file =3D $file ^ semantic error: failed to retrieve location attribute for 'file' [man error::dwarf]: identifier '$file' at :1050:9 dieoffset: 0x39f89ab from /usr/lib/debug/lib/modules/5.4.19-100.fc30.x86_64/vmlinux function: file_start_write at ./include/linux/fs.h:2887:7 inlined by vfs_write at fs/read_write.c:557:3 inlined by vfs_write at fs/read_write.c:542:9 source: file =3D $file ^ Pass 2: analyzed script: 2 probes, 1 function, 5 embeds, 0 globals using 619828virt/397116res/10168shr/387284data kb, in 2480usr/190sys/2691real ms. Pass 2: analysis failed. [man error::pass2] ``` I'm using the latest git master of stap: ``` $ /opt/stap/bin/stap -V Systemtap translator/driver (version 4.3/0.177, commit release-4.2-65-g6de9136a2794) Copyright (C) 2005-2019 Red Hat, Inc. and others This is free software; see the source for copying conditions. tested kernel versions: 2.6.32 ... 5.4-rc6 enabled features: BPF PYTHON3 LIBSQLITE3 NLS READLINE ``` I'm using the 5.4.19 kernel shipped by Fedora 30 itself: ``` $ uname -r 5.4.19-100.fc30.x86_64 ``` Seems like the `$file` function argument cannot be resolved from the kernel DWARF? --=20 You are receiving this mail because: You are the assignee for the bug.=