From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8215 invoked by alias); 30 Aug 2013 20:32:30 -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 8183 invoked by uid 48); 30 Aug 2013 20:32:26 -0000 From: "dsmith at redhat dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/15913] New: on s390x, nd_syscall.execve fails when accessing filename Date: Fri, 30 Aug 2013 20:32:00 -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: dsmith at redhat dot com X-Bugzilla-Status: NEW 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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q3/txt/msg00208.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15913 Bug ID: 15913 Summary: on s390x, nd_syscall.execve fails when accessing filename Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: tapsets Assignee: systemtap at sourceware dot org Reporter: dsmith at redhat dot com When using the 'filename' convenience variable from 'execve', the syscall.execve probe works correctly on s390x: ==== # stap -e 'probe syscall.execve { printf("%s\n", filename) }' -c "sleep 0.2" /usr/lib64/qt-3.3/bin/sleep /usr/local/sbin/sleep /usr/local/bin/sleep /usr/sbin/sleep /usr/bin/sleep ==== However, the nd_syscall.execve probe gets a copy fault: ==== # stap -e 'probe nd_syscall.execve { printf("%s\n", filename) }' -c "sleep 0.2" ERROR: user string copy fault -14 at 0000000028ef1648 near identifier 'user_string_n' at /usr/local/share/systemtap/tapset/uconversions.stp:120:10 WARNING: Number of errors: 1, skipped probes: 1 WARNING: /usr/local/bin/staprun exited with status: 1 Pass 5: run failed. [man error::pass5] ==== (I'm sure this has something to do with the odd s390x argument passing. Normally, if you are in a syscall, the 'orig_gpr2' register has the 1st argument, while in a regular kernel function the 'r2' register has the 1st argument.) -- You are receiving this mail because: You are the assignee for the bug.