From owner-freebsd-hackers Wed Dec 30 12:41:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA28986 for freebsd-hackers-outgoing; Wed, 30 Dec 1998 12:41:21 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bingsun2.cc.binghamton.edu (bingsun2.cc.binghamton.edu [128.226.1.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA28973 for ; Wed, 30 Dec 1998 12:41:12 -0800 (PST) (envelope-from bf20761@binghamton.edu) Received: from localhost (bf20761@localhost) by bingsun2.cc.binghamton.edu (8.8.7/8.6.9) with SMTP id PAA10467 for ; Wed, 30 Dec 1998 15:40:41 -0500 (EST) Date: Wed, 30 Dec 1998 15:40:41 -0500 (EST) From: zhihuizhang X-Sender: bf20761@bingsun2 Reply-To: zhihuizhang To: hackers Subject: Questions about mcount and GUPROF Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG After I notice a "call __mcount" in assembly format in file asmacros.h, I try to find where the routine __mcount is defined. In file mcount.c, we have: _MCOUNT_DECL(frompc, selfpc). According to file profile.h, if KERNEL is not defined, we have: #define _MCOUNT_DECL static __inline void _mcount This will give us _mcount() and we can call it with __mcount() (with one more preceding underscore). However, if KERNEL is defined, we have in profile.h: #define _MCOUNT_DECL void mcount This can not give us the same format we need to call it in assembly language. Can someone explain this for me? By the way, what does the option GUPROF mean? I can not find it in the FreeBSD handbook. Thanks a lot. -------------------------------------------------- | Zhihui Zhang, http://cs.binghamton.edu/~zzhang | | Dept. of Computer Science, SUNY at Binghamton | -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message