From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7345 invoked by alias); 24 Jul 2014 08:16:31 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 7332 invoked by uid 89); 24 Jul 2014 08:16:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f50.google.com Received: from mail-pa0-f50.google.com (HELO mail-pa0-f50.google.com) (209.85.220.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 24 Jul 2014 08:16:28 +0000 Received: by mail-pa0-f50.google.com with SMTP id et14so3439718pad.37 for ; Thu, 24 Jul 2014 01:16:26 -0700 (PDT) X-Received: by 10.70.42.144 with SMTP id o16mr8174084pdl.83.1406189784704; Thu, 24 Jul 2014 01:16:24 -0700 (PDT) Received: from localhost ([203.114.244.88]) by mx.google.com with ESMTPSA id j6sm6341896pdn.23.2014.07.24.01.16.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 01:16:23 -0700 (PDT) Date: Thu, 24 Jul 2014 08:16:00 -0000 From: Real Name To: binutils@sourceware.org, user-mode-linux-devel@lists.sourceforge.net, user-mode-linux-user@lists.sourceforge.net Subject: gprof missing functions Message-ID: <20140724081618.GA1797@name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00186.txt.bz2 hi, When trace the UML linux kernel with gprof, it seems gprof missing some functions. There are new_thread_handler and fork_handler in "arch/um/kernel/process.c". gprof catchs the new_thread_handler function, but there is no sign about fork_handler. Because the two functions are in the same file, so it is not kernel configuration issue. I'm sure the two functions have been executed. And new_thread_handler call a few functions, such as, kernel_init and kthreadd. gprof catch kthreadd but missing kernel_init. I traced the UML kernel with gdb, so I'm sure kernel_init called by new_thread_handler. I search with google, but failed to get useful information about gprof missing function issue. Is there any clue/suggestion how to make gprof catch all functions? thanks