From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28137 invoked by alias); 16 Mar 2010 16:42:58 -0000 Received: (qmail 27981 invoked by uid 48); 16 Mar 2010 16:42:40 -0000 Date: Tue, 16 Mar 2010 16:42:00 -0000 From: "mjw at redhat dot com" To: systemtap@sources.redhat.com Message-ID: <20100316164239.11388.mjw@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug tapsets/11388] New: syscall.mmap* probes versus 2.6.33+ kernels X-Bugzilla-Reason: AssignedTo 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-q1/txt/msg00670.txt.bz2 Recent kernels saw some cleanups of the mmap implementation code. The systemtap syscall tapsets should be updated to match. The mmap syscalls are traditionally architecture specific because different architectures used different implementation strategies, so had different entry points. So look for the tapset aliases under tapset//syscall.stp. The main differences were because on some architectures not all arguments could be passed in registers, so the arguments were passed in as one argument to a struct. Some architectures even had both variants of the syscall. i386 for example has syscall number 90 mmap, which takes a struct, and syscall number 192 mmap2, which takes 6 arguments). On different architectures either variant might exist and mapped to different implementation function names. Recent cleanups (some only in recent git, not yet released) map them to more consistent names (sys_old_mmap and sys_mmap_pgoff) The relevant kernel commits are: unreleased kernel: commit a4679373cf4ee0e7792dc56205365732b725c2c1 Author: Christoph Hellwig Date: Wed Mar 10 15:21:15 2010 -0800 Add generic sys_old_mmap() Add a generic implementation of the old mmap() syscall, which expects its argument in a memory block and switch all architectures over to use it. 2.6.33 kernel: commit f8b7256096a20436f6d0926747e3ac3d64c81d24 Author: Al Viro Date: Mon Nov 30 17:37:04 2009 -0500 Unify sys_mmap* New helper - sys_mmap_pgoff(); switch syscalls to using it. Acked-by: David S. Miller Signed-off-by: Al Viro -- Summary: syscall.mmap* probes versus 2.6.33+ kernels Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: tapsets AssignedTo: systemtap at sources dot redhat dot com ReportedBy: mjw at redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=11388 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.