Re: kernel debugging in 30 minutes or less

2009-07-09 Thread Raz
I was able to show how to analyze an oops as follows: prepare an oops in mydriver.ko boot a kernel with debug info. ( prepare it before course ) objdump -Sl mymod.ko | less you will be able to show the exact line of crash. I presented to a few of my colleagues. fast and simple. analyzing

Kernel Panic : Kernel BUG at rmap:479

2009-07-09 Thread अनुज
-- Forwarded message -- From: अनुज Date: 2009/7/9 Subject: Re: Kernel Panic : Kernel BUG at rmap:479 To: Mulyadi Santosa Cc: Aniket Agashe , deve...@cdac.in 2009/7/8 Mulyadi Santosa > 2009/7/8 अनुज : > > Hi All > > > > I am trying to map a buffer allocated with kmalloc to us

Re: sysfs entries for the character driver

2009-07-09 Thread Greg KH
On Thu, Jul 09, 2009 at 05:18:39PM +0530, arun c wrote: > Hi, > > I want to create sysfs entries for my character device > in order to manipulate (show, store) the device parameters. > > I am registering the character driver by > alloc_chrdev_region + cdev_init + cdev_add. > > what is the prefer

Re: kernel debugging in 30 minutes or less

2009-07-09 Thread Leandro Dorileo
Hi Robert On Thu, Jul 9, 2009 at 11:19 AM, Robert P. J. Day wrote: > On Thu, 9 Jul 2009, Mulyadi Santosa wrote: > >> I think one of the core skills one should have is how to "decode" >> oops message. >> >> Other options that quickly cross my mind: >> 1. systemtap. >> 2. ftrace > >  i might be able

Re: kernel debugging in 30 minutes or less

2009-07-09 Thread kachin2
I've found netdump, or diskdump to be useful and easy to setup, though this is only supported by Red Hat kernels. - Kent On Thu, Jul 9, 2009 at 5:55 AM, Robert P. J. Day wrote: > > i'm going to leech off of the collective intelligence of this list > for a few minutes. toward the end of a 1-day

Re: kernel debugging in 30 minutes or less

2009-07-09 Thread kachin2
I've found netdump, or diskdump to be useful and easy to setup, though this is only supported by Red Hat kernels. - Kent On Thu, Jul 9, 2009 at 5:55 AM, Robert P. J. Day wrote: > > i'm going to leech off of the collective intelligence of this list > for a few minutes. toward the end of a 1-day

Re: sysfs entries for the character driver

2009-07-09 Thread Daniel Baluta
Hi, I'm also working on a CAN device driver and very sooner i will have the same question as yours. :P On Thu, Jul 9, 2009 at 2:48 PM, arun c wrote: > Hi, > > I want to create sysfs entries for my character device > in order to manipulate (show, store) the device parameters. > > I am registering

Problem developing Linux kernel module

2009-07-09 Thread Alexey Mikhailov
Hello! I'm working on Linux kernel model and I experience crash with following OOPS message: == BUG: unable to handle kernel paging request at 3336 IP: [] :nf_conntrack:_ipfix_send_msg+0x4d/0x96 Oops: [#1] SMP Modules

RE: uid and gid ?

2009-07-09 Thread Adrian Cornish
Is there any inbuilt( ) c function which can validate if the passed uid/gid exist's on the machine or not? How about:- struct passwd *getpwuid(uid_t uid); Adrian

Re: uid and gid ?

2009-07-09 Thread Mulyadi Santosa
Hi On Thu, Jul 9, 2009 at 11:53 PM, SandeepKsinha wrote: > Hi, > > Is there any inbuilt( ) c function which can validate if the passed uid/gid > exist's on the machine or not? I think Linux PAM might lend a help here. Take a look on http://www.linuxjournal.com/article/5940 to find out on how to d

uid and gid ?

2009-07-09 Thread SandeepKsinha
Hi, Is there any inbuilt( ) c function which can validate if the passed uid/gid exist's on the machine or not? -- Regards, Sandeep. “To learn is to change. Education is a process that changes the learner.”

Re: kernel debugging in 30 minutes or less

2009-07-09 Thread Mohamed Thalib H
Hi, On Thu, Jul 9, 2009 at 6:25 PM, Robert P. J. Day wrote: > > i'm going to leech off of the collective intelligence of this list > for a few minutes. toward the end of a 1-day kernel course i'm > designing, i want to *very* briefly present some kernel debugging > techniques. given the limite

Re: kernel debugging in 30 minutes or less

2009-07-09 Thread Robert P. J. Day
On Thu, 9 Jul 2009, Mulyadi Santosa wrote: > I think one of the core skills one should have is how to "decode" > oops message. > > Other options that quickly cross my mind: > 1. systemtap. > 2. ftrace i might be able to throw in a few minutes on how to decode an oops, but i doubt i'd have time

Re: kernel debugging in 30 minutes or less

2009-07-09 Thread Mulyadi Santosa
On Thu, Jul 9, 2009 at 7:55 PM, Robert P. J. Day wrote: > >  i'm going to leech off of the collective intelligence of this list > for a few minutes.  toward the end of a 1-day kernel course i'm > designing, i want to *very* briefly present some kernel debugging > techniques.  given the limited time

kernel debugging in 30 minutes or less

2009-07-09 Thread Robert P. J. Day
i'm going to leech off of the collective intelligence of this list for a few minutes. toward the end of a 1-day kernel course i'm designing, i want to *very* briefly present some kernel debugging techniques. given the limited time i'm going to have, i can't see having more than about 20 or 30

sysfs entries for the character driver

2009-07-09 Thread arun c
Hi, I want to create sysfs entries for my character device in order to manipulate (show, store) the device parameters. I am registering the character driver by alloc_chrdev_region + cdev_init + cdev_add. what is the preferred method to create sysfs entries for the new character device? The hard

"404" error with latest kernel newbie column at linux.com

2009-07-09 Thread Robert P. J. Day
apparently, the publishing system at linux.com has a bit of a glitch in that, as soon as i make a change to the online content of one of my online articles, the editor "unpublishes" the article, which means you can't get to the latest one until one of the linux.com folks gets in this morning and

Re: get kernel version using git

2009-07-09 Thread Karel Zak
On Tue, Jul 07, 2009 at 01:39:34PM +0200, Belisko Marek wrote: > it's possible after kernel git-pulling get what actual kernel > version is updated? I can read it from Makefile but I'm curious > if exist another way. $ git describe v2.6.31-rc1-195-g5298976 Karel -- Karel Zak -- To un