Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 17 Dec 2002 15:02:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 17 Dec 2002 15:02:57 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:50697 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 17 Dec 2002 15:02:56 -0500 Message-ID: <3DFF84BE.6010009@transmeta.com> Date: Tue, 17 Dec 2002 12:10:38 -0800 From: "H. Peter Anvin" Organization: Transmeta Corporation User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021119 X-Accept-Language: en, sv MIME-Version: 1.0 To: Matti Aarnio CC: Linus Torvalds , Linux Kernel Mailing List Subject: Re: Intel P6 vs P7 system call performance References: <3DFF7E7D.1080900@transmeta.com> <20021217200749.GB32122@mea-ext.zmailer.org> In-Reply-To: <20021217200749.GB32122@mea-ext.zmailer.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 997 Lines: 32 Matti Aarnio wrote: > (cutting down To:/Cc:) > > On Tue, Dec 17, 2002 at 11:43:57AM -0800, H. Peter Anvin wrote: > >>Linus Torvalds wrote: >> >>>The thing is, gettimeofday() isn't _that_ special. It's just not worth a >>>vsyscall of it's own, I feel. Where do you stop? Do we do getpid() too? >>>Just because we can? >> >>getpid() could be implemented in userspace, but not via vsyscalls >>(instead it could be passed in the ELF data area at process start.) > > > After fork() or clone() ? > If we had only spawn(), and some separate way to start threads... > fork() and clone() would have to return the self-pid as an auxilliary return value. This, of course, is getting rather fuggly. Anything that cares caches getpid() anyway. -hpa - 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/