Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755355Ab2BMMdK (ORCPT ); Mon, 13 Feb 2012 07:33:10 -0500 Received: from mail.free-electrons.com ([88.190.12.23]:37180 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754193Ab2BMMdI (ORCPT ); Mon, 13 Feb 2012 07:33:08 -0500 Message-ID: <4F3902F8.3090905@free-electrons.com> Date: Mon, 13 Feb 2012 13:32:56 +0100 From: Michael Opdenacker User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: ranjith kumar CC: linux-kernel@vger.kernel.org Subject: Re: how to know list of files accessed References: In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1155 Lines: 35 Hi Ranjith, On 02/13/2012 12:30 PM, ranjith kumar wrote: > Hi, > Suppose I downloaded linux kernel. > When I run "make", many of the .c files will be compiled. > I want to know which .c files are compiles and which .c files are not compiled. > Is there any way to know in linux? An easy way is to run your command with 'strace' to trap all the calls to 'open': strace make 2>&1 | grep open > > Access time of the files which are compiled is not getting modified > when I run "make" . why? That's correct. As long as you don't read these files, there's no reason to update their latest access time. Comparing access time with modified time is a useful way to know which files haven't been read after being modified. Cheers Michael. -- Michael Opdenacker, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com +33 484 253 396 -- 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/