From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30613 invoked by alias); 22 Dec 2010 20:54:57 -0000 Received: (qmail 30605 invoked by uid 22791); 22 Dec 2010 20:54:56 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Dec 2010 20:54:53 +0000 From: "dsmith at redhat dot com" To: systemtap@sources.redhat.com Subject: [Bug runtime/12341] New: deref()/store_deref() variations between arches X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime 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 sources dot redhat.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 22 Dec 2010 20:54:00 -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 X-SW-Source: 2010-q4/txt/msg00352.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12341 Summary: deref()/store_deref() variations between arches Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: runtime AssignedTo: systemtap@sources.redhat.com ReportedBy: dsmith@redhat.com There is a different deref()/store_deref() macro in runtime/loc2c-runtime.h for each arch. For i386/x86_64, deref() calls the kernel's __get_user_asm(). store_deref() calls the kernel's __put_user_asm(). For ia64, deref() calls the kernel's __get_user_size(). store_deref() calls the kernel's __put_user_size(). For powerpc, deref() calls __stp_get_user_asm(), which is custom powerpc assembly code (that looks almost identical to the kernel's __get_user_asm()). store_deref() calls __stp_put_user_asm(), which is custom powerpc assembly code. For s390, deref() calls __stp_get_user_asm(), which is custom s390 assembly. store_deref() calls __stp_put_user_asm(), which is custom s390 assembly. It might be possible for all arches to use the kernel's own routines, instead of having custom (powerpc/s390) assembly code. The __get_user_size()/__put_user_size() routines might be the most attractive choice (as the ia64 uses), since they know how handle all the different size combinations. (If __get_user_size()/__put_user_size() works for the i386, that could eliminate the need for the i386 special version of kread/kwrite that can handle 64-bit values.) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.