From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105194 invoked by alias); 9 Jul 2015 09:39:41 -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 105164 invoked by uid 48); 9 Jul 2015 09:39:37 -0000 From: "mcermak at redhat dot com" To: systemtap@sourceware.org Subject: [Bug tapsets/18650] New: powerpc variant of longlong_arg() for uprobes swaps the byte order Date: Thu, 09 Jul 2015 09:39: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: mcermak 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: 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: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q3/txt/msg00021.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18650 Bug ID: 18650 Summary: powerpc variant of longlong_arg() for uprobes swaps the byte order Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: tapsets Assignee: systemtap at sourceware dot org Reporter: mcermak at redhat dot com Target Milestone: --- After some testing I came to a conclusion that following change should be done in tapsets: ======= $ git diff diff --git a/tapset/powerpc/registers.stp b/tapset/powerpc/registers.stp index 1daf5ba..3adcc73 100644 --- a/tapset/powerpc/registers.stp +++ b/tapset/powerpc/registers.stp @@ -186,8 +186,8 @@ function ulong_arg:long (argnum:long) { function longlong_arg:long (argnum:long) { if (probing_32bit_app()) { - lowbits = _stp_arg2(argnum, 0, 1, 0) - highbits = _stp_arg2(argnum+1, 0, 1, 0) + highbits = _stp_arg2(argnum, 0, 1, 0) + lowbits = _stp_arg2(argnum+1, 0, 1, 0) return ((highbits << 32) | lowbits) } else return _stp_arg2(argnum, 0, 0, 1) diff --git a/tapset/s390/registers.stp b/tapset/s390/registers.stp index 3fd2560..3e33baa 100644 --- a/tapset/s390/registers.stp +++ b/tapset/s390/registers.stp @@ -272,7 +272,6 @@ function ulong_arg:long (argnum:long) { function longlong_arg:long (argnum:long) { if (probing_32bit_app()) { - /* TODO verify if this is correct for 31bit apps */ highbits = _stp_arg2(argnum, 0, 1, 0) lowbits = _stp_arg2(argnum+1, 0, 1, 0) return ((highbits << 32) | lowbits) $ ======= Does this look about correct? -- You are receiving this mail because: You are the assignee for the bug.