From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1GtzE4-0001zE-Ih for user-mode-linux-devel@lists.sourceforge.net; Mon, 11 Dec 2006 20:26:44 -0800 Received: from mail128.messagelabs.com ([216.82.250.131]) by mail.sourceforge.net with smtp (Exim 4.44) id 1GtzE3-0005rx-9o for user-mode-linux-devel@lists.sourceforge.net; Mon, 11 Dec 2006 20:26:44 -0800 Received: from az33exr02.mot.com (az33exr02.mot.com [10.64.251.232]) by motgate5.mot.com (8.12.11/Motorola) with ESMTP id kBC4Qak7018621 for ; Mon, 11 Dec 2006 21:26:36 -0700 (MST) Received: from ZMY16EXM67.ds.mot.com (zmy16exm67.ap.mot.com [10.179.4.27]) by az33exr02.mot.com (8.13.1/8.13.0) with ESMTP id kBC4QYmr008816 for ; Mon, 11 Dec 2006 22:26:35 -0600 (CST) Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 12 Dec 2006 12:26:30 +0800 Message-ID: <0A01463223B8164194908CAC85B66A12012D2AB8@ZMY16EXM67.ds.mot.com> From: "Krishnappa Abhijith-A21204" Subject: [uml-devel] Regarding getpid List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1434332997==" Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: user-mode-linux-devel@lists.sourceforge.net This is a multi-part message in MIME format. --===============1434332997== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C71DA5.B2DDB138" This is a multi-part message in MIME format. ------_=_NextPart_001_01C71DA5.B2DDB138 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi , "Process system calls must be nullified in the host, and this is done by converting them into getpid. " How is system calls are nullified by converting them to getpid() ? =20 Pls let me know. =20 Regards, Abhi ------_=_NextPart_001_01C71DA5.B2DDB138 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable
Hi=20 ,
       &nbs= p;   =20 "Process system calls = must be=20 nullified in the host, and this is done by converting them into=20 getpid. "
How is system calls  are = nullified by=20 converting them to getpid() ?
 
Pls let me=20 know.
 
Regards,
Abhi
------_=_NextPart_001_01C71DA5.B2DDB138-- --===============1434332997== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============1434332997== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel --===============1434332997==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1Gu4GU-0006cM-LK for user-mode-linux-devel@lists.sourceforge.net; Tue, 12 Dec 2006 01:49:34 -0800 Received: from [80.88.33.193] (helo=vervifontaine.sonycom.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1Gu4GT-00022G-9E for user-mode-linux-devel@lists.sourceforge.net; Tue, 12 Dec 2006 01:49:34 -0800 Date: Tue, 12 Dec 2006 10:49:20 +0100 (CET) From: Geert Uytterhoeven In-Reply-To: <0A01463223B8164194908CAC85B66A12012D2AB8@ZMY16EXM67.ds.mot.com> Message-ID: References: <0A01463223B8164194908CAC85B66A12012D2AB8@ZMY16EXM67.ds.mot.com> MIME-Version: 1.0 Subject: Re: [uml-devel] Regarding getpid List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Krishnappa Abhijith-A21204 Cc: User-mode Linux Kernel Development On Tue, 12 Dec 2006, Krishnappa Abhijith-A21204 wrote: > "Process system calls must be nullified in the host, and > this is done by converting them into getpid. " > How is system calls are nullified by converting them to getpid() ? Instead of calling the actual system call, it just calls getpid(). I.e. the actual system call is not executed, and getpid() is more or less a NOP. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1Gu53E-0003E7-K3 for user-mode-linux-devel@lists.sourceforge.net; Tue, 12 Dec 2006 02:39:56 -0800 Received: from [80.88.33.193] (helo=vervifontaine.sonycom.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1Gu53C-0003Dz-W3 for user-mode-linux-devel@lists.sourceforge.net; Tue, 12 Dec 2006 02:39:56 -0800 Received: from pademelon.sonytel.be (piraat.sonytel.be [43.221.60.197]) by vervifontaine.sonycom.com (Postfix) with ESMTP id BE49658ABD for ; Tue, 12 Dec 2006 11:39:51 +0100 (MET) Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 12 Dec 2006 18:12:24 +0800 Message-ID: <0A01463223B8164194908CAC85B66A1201324F53@ZMY16EXM67.ds.mot.com> In-Reply-To: From: "Krishnappa Abhijith-A21204" Resent-To: User-mode Linux Kernel Development ReSent-Message-ID: Subject: Re: [uml-devel] Regarding getpid List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Geert Uytterhoeven Ok Thanks. So actually getpid() doesn't cause mode switch. But is it mandatory to execute getpid()? If yes why Regards, Abhi -----Original Message----- From: geert@sonytel.be [mailto:geert@sonytel.be] On Behalf Of Geert Uytterhoeven Sent: Tuesday, December 12, 2006 3:19 PM To: Krishnappa Abhijith-A21204 Cc: User-mode Linux Kernel Development Subject: Re: [uml-devel] Regarding getpid On Tue, 12 Dec 2006, Krishnappa Abhijith-A21204 wrote: > "Process system calls must be nullified in the host, and > this is done by converting them into getpid. " > How is system calls are nullified by converting them to getpid() ? Instead of calling the actual system call, it just calls getpid(). I.e. the actual system call is not executed, and getpid() is more or less a NOP. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1Gu8yL-000497-14 for user-mode-linux-devel@lists.sourceforge.net; Tue, 12 Dec 2006 06:51:09 -0800 Received: from [198.99.130.12] (helo=saraswathi.solana.com) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1Gu8yJ-0002z6-KO for user-mode-linux-devel@lists.sourceforge.net; Tue, 12 Dec 2006 06:51:09 -0800 Date: Tue, 12 Dec 2006 09:46:48 -0500 From: Jeff Dike Message-ID: <20061212144648.GA4093@ccure.user-mode-linux.org> References: <0A01463223B8164194908CAC85B66A1201324F53@ZMY16EXM67.ds.mot.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <0A01463223B8164194908CAC85B66A1201324F53@ZMY16EXM67.ds.mot.com> Subject: Re: [uml-devel] Regarding getpid List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Krishnappa Abhijith-A21204 Cc: Geert Uytterhoeven , user-mode-linux-devel@lists.sourceforge.net On Tue, Dec 12, 2006 at 06:12:24PM +0800, Krishnappa Abhijith-A21204 wrote: > Ok Thanks. So actually getpid() doesn't cause mode switch. Sure it does. Any system call does. > But is it mandatory to execute getpid()? If yes why That's the way ptrace traditionally works. PTRACE_SYSEMU, which came later avoids the need to invoke some system call. It just nullifies the system call in the expectation that the tracer will emulate it. Jeff -- Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel