Re: an online kernel crash book, and wondering what's deprecated

2012-09-26 Thread Rohan Puri
On Wed, Sep 26, 2012 at 8:11 PM, Mulyadi Santosa wrote: > Hi Rob... > > On Wed, Sep 26, 2012 at 6:33 PM, Robert P. J. Day > wrote: > > along those lines, i'm just digging into ftrace and was wondering if > > it in any way obsoleted systemtap, but i've heard from more than one > > source that wh

Re: starting to patch kernel

2012-09-26 Thread Constantine Shulyupin
Most of work in drivers is very HW or application specific and unfortunately is not suitable for up-streaming . A few of my experience I've converted to LDT - Linux Driver Template: https://github.com/makelinux/ldt/blob/master/README.md I would be very glad to receive your feedback. BTW, the code p

Re: starting to patch kernel

2012-09-26 Thread Scott Lovenberg
On Wed, Sep 26, 2012 at 4:21 PM, Constantine Shulyupin wrote: > Hi > > I am experienced embedded Linux driver developer. I have some spare > time which I want to contribute to mainstream Linux kernel. > Unfortunately http://kernelnewbies.org/KernelJanitors/Todo is very old. > Can you please sugge

starting to patch kernel

2012-09-26 Thread Constantine Shulyupin
Hi I am experienced embedded Linux driver developer. I have some spare time which I want to contribute to mainstream Linux kernel. Unfortunately http://kernelnewbies.org/KernelJanitors/Todo is very old. Can you please suggest small tasks good for start? It can be code clean up, API updates. Than

Re: Missing __versions section on .ko

2012-09-26 Thread Pritam Bankar
On Mon, Sep 24, 2012 at 9:41 PM, Ramesh.P wrote: > Hi, > > Please see my comments inline. > > On Fri, Sep 21, 2012 at 2:39 PM, Pritam Bankar > wrote: >> Hi Ramesh thanks for great pdf. From whatever I understood after >> reading I fired command modinfo on my module and it gave output , >> >> verm

Re: getxattr field not initialized when trying to execute /init during boot

2012-09-26 Thread Peter Teoh
On Thu, Sep 13, 2012 at 5:08 PM, stl wrote: > > Hello all, > I am facing a problem when trying to boot linux 2.6.37 on a new architecture. > > At the end of the boot, it tries to launch /init by executing a sys_execve() > > Here is the what it does: > > sys_execve() > |-> do_execve() >

Re: I/O event notification mechanism - select() or epoll() ?

2012-09-26 Thread Peter Teoh
On Wed, Sep 26, 2012 at 7:49 PM, Rahul Bedarkar wrote: > Hi, > > I have to capture kernel udev events through libudev. One of API > provides asynchronous events by reading on file descriptor. I found > that there two ways to do that. > > 1) select call > I guessed when u called select() it will

Re: LDT - Linux Driver Template

2012-09-26 Thread Robert P. J. Day
you might extend the "clean:" target to *really* clean the generated artifacts in that directory. or perhaps introduce "distclean:". rday -- Robert P. J. Day Ottawa, Ontario, CANADA

Re: LDT - Linux Driver Template

2012-09-26 Thread Mulyadi Santosa
On Wed, Sep 26, 2012 at 10:21 PM, Constantine Shulyupin wrote: > I've made test script less noise. Please update sources. The driver > and the the test works with UART too. Hi... yup, less noise: sudo ./ldt-test stty: /dev/ttyS0: Input/output error No loopback on /dev/ttyS0 detected, running ld

Re: LDT - Linux Driver Template

2012-09-26 Thread Constantine Shulyupin
I've made test script less noise. Please update sources. The driver and the the test works with UART too. On Wed, Sep 26, 2012 at 5:04 PM, Robert P. J. Day wrote: > On Wed, 26 Sep 2012, Mulyadi Santosa wrote: > >> On Wed, Sep 26, 2012 at 6:03 PM, Constantine Shulyupin >> wrote: >> > Readme and s

Re: LDT - Linux Driver Template

2012-09-26 Thread Constantine Shulyupin
Yes, it is because you have no serial port. In this case LDT emulates loopback. On Wed, Sep 26, 2012 at 4:48 PM, Mulyadi Santosa wrote: > On Wed, Sep 26, 2012 at 6:03 PM, Constantine Shulyupin > wrote: >> Readme and sources: https://github.com/makelinux/ldt/blob/master/README.md >> >> To run dri

Re: LDT - Linux Driver Template

2012-09-26 Thread Robert P. J. Day
On Wed, 26 Sep 2012, Mulyadi Santosa wrote: > On Wed, Sep 26, 2012 at 6:03 PM, Constantine Shulyupin > wrote: > > Readme and sources: https://github.com/makelinux/ldt/blob/master/README.md > > > > To run driver with test script just run: > > git clone git://github.com/makelinux/ldt.git && cd ldt

Re: Why a locked page must be copied in COW?

2012-09-26 Thread Peter Teoh
Let me share my thoughts from what I have read elsewhere (same concepts below applies to many other OS like Solaris too, where a lot of the memory concepts comes from) - in general understanding the principles so that u will not get lost in the codes...which can be buggy as well: a.COW: the

Re: LDT - Linux Driver Template

2012-09-26 Thread Mulyadi Santosa
On Wed, Sep 26, 2012 at 6:03 PM, Constantine Shulyupin wrote: > Readme and sources: https://github.com/makelinux/ldt/blob/master/README.md > > To run driver with test script just run: > git clone git://github.com/makelinux/ldt.git && cd ldt && ./ldt-test > > You feedback, suggestions, discussions

Re: an online kernel crash book, and wondering what's deprecated

2012-09-26 Thread Mulyadi Santosa
Hi Rob... On Wed, Sep 26, 2012 at 6:33 PM, Robert P. J. Day wrote: > along those lines, i'm just digging into ftrace and was wondering if > it in any way obsoleted systemtap, but i've heard from more than one > source that while ftrace is allegedly more powerful, systemtap still > has its place

I/O event notification mechanism - select() or epoll() ?

2012-09-26 Thread Rahul Bedarkar
Hi, I have to capture kernel udev events through libudev. One of API provides asynchronous events by reading on file descriptor. I found that there two ways to do that. 1) select call 2) epoll I also found that epoll is smarter and meant to replace old select call. What are your thoughts on the

Re: an online kernel crash book, and wondering what's deprecated

2012-09-26 Thread Rohan Puri
On Wed, Sep 26, 2012 at 5:03 PM, Robert P. J. Day wrote: > > in my online travels yesterday, i ran across this gem, "Linux Kernel > Crash Book": > > http://www.dedoimedo.com/computers/crash-book.html > > and am now wondering about what would constitute a reasonable (and > minimal?) list of can

an online kernel crash book, and wondering what's deprecated

2012-09-26 Thread Robert P. J. Day
in my online travels yesterday, i ran across this gem, "Linux Kernel Crash Book": http://www.dedoimedo.com/computers/crash-book.html and am now wondering about what would constitute a reasonable (and minimal?) list of canonical kernel debugging tools. first, while the book above covers Li

LDT - Linux Driver Template

2012-09-26 Thread Constantine Shulyupin
Hi I develop template of Linux driver. It can be used as sample for Linux driver development beginners and starting point for development of new drivers. The driver uses following Linux facilities: module, platform driver, file operations (read/write, mmap, ioctl, blocking and non-blocking mode,