Re: how to look for source code in kernel

2012-12-29 Thread Borislav Petkov
On Fri, Dec 28, 2012 at 11:03:40PM +0100, Geert Uytterhoeven wrote: > That's the first run. Now everything is in the buffer cache (assumed > you have enough RAM), and try again... Right, until you do something else on the box requiring just the right amount of memory to overflow the buffer cache w

Re: how to look for source code in kernel

2012-12-28 Thread Jesper Juhl
On Fri, 28 Dec 2012, Guennadi Liakhovetski wrote: > On Fri, 28 Dec 2012, Borislav Petkov wrote: > > > On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: > > > git-ls-files | xargs fgrep 'struct f2fs_inode' > > > > > > That returns instantly and tells me where to look. If you can

Re: how to look for source code in kernel

2012-12-28 Thread Guennadi Liakhovetski
On Fri, 28 Dec 2012, Borislav Petkov wrote: > On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: > > git-ls-files | xargs fgrep 'struct f2fs_inode' > > > > That returns instantly and tells me where to look. If you can do an > > instant brute force search what is the point of an i

Re: how to look for source code in kernel

2012-12-28 Thread Geert Uytterhoeven
On Fri, Dec 28, 2012 at 2:07 PM, Borislav Petkov wrote: > On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: >> git-ls-files | xargs fgrep 'struct f2fs_inode' >> >> That returns instantly and tells me where to look. If you can do an >> instant brute force search what is the point

Re: how to look for source code in kernel

2012-12-28 Thread Joe Perches
On Fri, 2012-12-28 at 16:09 +, Al Viro wrote: > On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: > > But then I am probably peculiar keeping an index of the source code in > > my head. When I need to look for something and I don't know where to > > find it I do. > > > > git-

Re: how to look for source code in kernel

2012-12-28 Thread Jonathan Neuschäfer
On Fri, Dec 28, 2012 at 11:49:53AM -0800, Eric W. Biederman wrote: > Al Viro writes: > > > On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: > >> But then I am probably peculiar keeping an index of the source code in > >> my head. When I need to look for something and I don't kn

Re: how to look for source code in kernel

2012-12-28 Thread Eric W. Biederman
Al Viro writes: > On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: >> But then I am probably peculiar keeping an index of the source code in >> my head. When I need to look for something and I don't know where to >> find it I do. >> >> git-ls-files | xargs fgrep 'struct f2fs_i

Re: how to look for source code in kernel

2012-12-28 Thread Al Viro
On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: > But then I am probably peculiar keeping an index of the source code in > my head. When I need to look for something and I don't know where to > find it I do. > > git-ls-files | xargs fgrep 'struct f2fs_inode' What's wrong with

Re: how to look for source code in kernel

2012-12-28 Thread Borislav Petkov
On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: > git-ls-files | xargs fgrep 'struct f2fs_inode' > > That returns instantly and tells me where to look. If you can do an > instant brute force search what is the point of an index? Not if you're using a lame-ass laptop with a rot

Re: how to look for source code in kernel

2012-12-27 Thread Eric W. Biederman
anish singh writes: > On Fri, Dec 28, 2012 at 10:42 AM, amit mehta wrote: > On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: > > can anybody tell me how to look into source code, as most are hidden in > > kernel. > > You can find the Linux source code at http://

Re: how to look for source code in kernel

2012-12-27 Thread Alex Belits
On Fri, 28 Dec 2012, anish singh wrote: have source insight.We can use wine in linux but that sucks. Funny you say that! Never heard of cscope, ctags ? It is not as convenient as source insight or is it? There is also LXR. If it's not good enough for you, then don't look at it. -- To unsubs

Re: how to look for source code in kernel

2012-12-27 Thread Chen Gang F T
于 2012年12月28日 13:12, amit mehta 写道: On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: > can anybody tell me how to look into source code, as most are hidden in > kernel. You can find the Linux source code at http://kernel.org/ . >> for browsing the code unfortunately

Re: how to look for source code in kernel

2012-12-27 Thread Chen Gang F T
于 2012年12月28日 13:12, amit mehta 写道: On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: > can anybody tell me how to look into source code, as most are hidden in > kernel. You can find the Linux source code at http://kernel.org/ . >> for browsing the code unfortunately

Re: how to look for source code in kernel

2012-12-27 Thread anish singh
On Fri, Dec 28, 2012 at 10:42 AM, amit mehta wrote: On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: > can anybody tell me how to look into source code, as most are hidden in > kernel. You can find the Linux source code at http://kernel.org/ . >> for browsing

Re: how to look for source code in kernel

2012-12-27 Thread amit mehta
>>> On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: >>> > can anybody tell me how to look into source code, as most are hidden in >>> > kernel. >>> >>> You can find the Linux source code at http://kernel.org/ . > for browsing the code unfortunately there is no good tool as in windows

Re: how to look for source code in kernel

2012-12-27 Thread anish singh
On Fri, Dec 28, 2012 at 1:23 AM, Henrique Rodrigues wrote: > http://lxr.linux.no/ is a really good linux cross referencing website for > code reference. > > On Thu, Dec 27, 2012 at 10:40 AM, Jonathan Neuschäfer > wrote: >> >> On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: >> > can