Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 19 Dec 2002 20:39:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 19 Dec 2002 20:39:15 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:36360 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Thu, 19 Dec 2002 20:39:14 -0500 Date: Thu, 19 Dec 2002 17:47:55 -0800 (PST) From: Linus Torvalds To: Daniel Jacobowitz cc: Jamie Lokier , "H. Peter Anvin" , Terje Eggestad , Ulrich Drepper , Matti Aarnio , Hugh Dickins , Dave Jones , Ingo Molnar , linux-kernel Subject: Re: Intel P6 vs P7 system call performance In-Reply-To: <20021220005333.GA20227@nevyn.them.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1270 Lines: 31 On Thu, 19 Dec 2002, Daniel Jacobowitz wrote: > > > > (ptrace also doesn't actually allow you to look at the instruction > > contents in high memory, so gdb won't see the instructions in the > > user-mode fast system call trampoline even when it can single-step > > them, and I don't think I'll bother to fix it up). > > This worries me. I'm no x86 guru, but I assume the trampoline's setting of > the TF bit will kick in right around the following 'ret'. So the > application will stop and GDB won't be able to read the instruction at > PC. I bet that makes it unhappy. It doesn't make gdb all that unhappy, everything seems to work fine despite the fact that gdb decides it just can't display the instructions. > Shouldn't be that hard to fix this up in ptrace, though. Or even in user space, since the high pages are all the same in all processes (so gdb doesn't even strictly need ptrace, it can just read it's _own_ codespace there). But yeah, we could make ptrace aware of the magic pages. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/