Re: Per container uptime?

2017-04-13 Thread valdis . kletnieks
On Thu, 13 Apr 2017 16:34:17 +0200, Fran?ois said: > Do you think it makes sense at all? The bigger question is whether there's stuff that runs in a container that wants the system uptime, which would break under this API change. > Any hint on how to get started on that? It's trivial - note the

Per container uptime?

2017-04-13 Thread François
Hi, after reading that post [1] on serverfault, I was wondering whether it would make sense to implement a per container uptime. Do you think it makes sense at all? Any hint on how to get started on that? Thanks François [1] http://serverfault.com/questions/830643/uptime-command-gives-weird-r

Re: How to browse the code

2017-04-13 Thread valdis . kletnieks
On Thu, 13 Apr 2017 08:41:18 -0300, "Daniel." said: > The Makefile has targets for indexing the kernel.. Sometimes "find -exec > grep" helps... I will take a look in opengrok find |xargs grep. Will run a lot faster because it runs one grep for several hundred files, rather than one per file. F

Re: How to browse the code

2017-04-13 Thread Quentin Lambert
Something else you could look at is Coccinelle. http://coccinelle.lip6.fr/ The tool can be used to find very specific pattern in the code. For instance specific structure field that are used without initialization. It takes some learning but the tool is very powerful. You can also check here for

Re: How to browse the code

2017-04-13 Thread Daniel.
ctags + cscope + vim The Makefile has targets for indexing the kernel.. Sometimes "find -exec grep" helps... I will take a look in opengrok Em 13/04/2017 7:40 AM, "manty kuma" escreveu: > Here you can see where sk_buff structure is delared. > http://androidxref.com/kernel_3.18/xref/include/linu

Re: How to browse the code

2017-04-13 Thread manty kuma
Here you can see where sk_buff structure is delared. http://androidxref.com/kernel_3.18/xref/include/linux/skbuff.h#506 May be you want to get familiar on how to use opengroks interface by seeing some youtube video or some online documents... Whatever you want to do wrt to source code browsing, t

Re: USB shutdown issue

2017-04-13 Thread manty kuma
Thanks Valdis. That explanation helps. Could you help me with the location of code that detects the electrical noise and shuts down ths USB? Let me explain my situation more clarly. 1. The Edison based board has only 1 USB port. But since we are having multiple USB devices that needs to be conne