Getting undefined reference , how to link during module building ?

2010-06-27 Thread Ramesh Rajagopal
Hi Guys, I am trying to do the following but I am getting undefined reference error ? I have two modules lets say Module A & Module B. Module B defines a function called module_b_func() which got exported also. Then I compile module B and inserted into kernel using insmod. Then in module A I t

Re: Find PTE for a virtual address?

2010-06-27 Thread Venkatram Tummala
On Sun, Jun 27, 2010 at 10:05 PM, Mulyadi Santosa wrote: > On Mon, Jun 28, 2010 at 09:54, sam shepperd wrote: > > Kindly thanks - that helps. However the virtual address of the kernel > > symbol I am looking up in memory is not within current->mm. > I see. I think i know what you mean . Your s

Re: Find PTE for a virtual address?

2010-06-27 Thread Mulyadi Santosa
On Mon, Jun 28, 2010 at 09:54, sam shepperd wrote: > Kindly thanks - that helps.  However the virtual address of the kernel > symbol I am looking up in memory is not within current->mm. Are you sure? Theoritically, kernel address space is mapped throughout all the task structure (e.g current->mm

Re: BUG: soft lockup - CPU#0 stuck for 61s!

2010-06-27 Thread Michael Blizek
Hi! On 21:47 Sun 27 Jun , Harishkumar V wrote: > hi, > > oh is it, can u explain, how to find out it.which portion of the code. i > see only this, The point is that even tough the stack trace usually contains the right trace, this one does not. This is why I have suggested trfing to repr

Re: Find PTE for a virtual address?

2010-06-27 Thread sam shepperd
On Sun, Jun 27, 2010 at 9:20 PM, Venkatram Tummala wrote: > > > On Sun, Jun 27, 2010 at 9:18 AM, sam shepperd wrote: >> >> How can I found out the mm_struct or PTE for a given virtual address >> (0xCxxx)? >> >> I can use virt_to_page(virtual_address) to return a struct page, but then >> what

Re: doubt regarding partition table and bootloader

2010-06-27 Thread arshad hussain
On Mon, Jun 28, 2010 at 3:40 AM, raja roy wrote: > Hi All, >   I was trying to understand the booting steps, > >  BIOS loads the first sector (MBR) of a bootable device(considering disk > only) in RAM (:7c00)and then jumps to that addr to execute the primary > boot loader which in turn loa

doubt regarding partition table and bootloader

2010-06-27 Thread raja roy
Hi All, I was trying to understand the booting steps, BIOS loads the first sector (MBR) of a bootable device(considering disk only) in RAM (:7c00)and then jumps to that addr to execute the primary boot loader which in turn loads the secondary boot loader(grub) pointed to by an active pa

Re: Accessing kernel memory from multiple modules

2010-06-27 Thread Mulyadi Santosa
On Sun, Jun 27, 2010 at 22:36, Usman S. Ansari wrote: > Obviously memory is allocated in both cases. OK, that was something I was unaware. So, in module A which originally holds the struct, you already put a value in buf[0]? And you absolutely sure it's allocated there, right? > Question is, whe

[OOT] some sort of personal statement

2010-06-27 Thread Mulyadi Santosa
Dear everybody in kernelnewbies It has been around 7 years that I join this list. I started as complete (read: zero) newbie in kernel field and now, at least IMO, I know at least few things about Linux kernel and still learning the rest. For that, I thank everybody here for the support, discus

Re: BUG: soft lockup - CPU#0 stuck for 61s!

2010-06-27 Thread Harishkumar V
Hi, can u guide how to debug this and have an fix/workaround for this. i see softlockup_tick and many funtions in the trace message. how to pinpoint where it got struck. On Sun, Jun 27, 2010 at 9:47 PM, Harishkumar V wrote: > hi, > > oh is it, can u explain, how to find out it.which portion

Re: BUG: soft lockup - CPU#0 stuck for 61s!

2010-06-27 Thread Harishkumar V
hi, oh is it, can u explain, how to find out it.which portion of the code. i see only this, handle_IRQ_event+0x28/0x74 LR is at handle_level_irq+0x94/0xec pc : []lr : []psr: 48000113 sp : c7eede90 ip : c7eedeb0 fp : c7eedeac r10: 001d r9 : c0638ba8 r8 : r7 : 005c

Find PTE for a virtual address?

2010-06-27 Thread sam shepperd
How can I found out the mm_struct or PTE for a given virtual address (0xCxxx)? I can use virt_to_page(virtual_address) to return a struct page, but then what can I do with the struct page? I cannot use rmap's page_check_address() because I do not have a struct mm_struct. Kindly thanks, Sam

Re: Accessing kernel memory from multiple modules

2010-06-27 Thread Usman S. Ansari
--- On Sat, 6/26/10, Mulyadi Santosa wrote: > From: Mulyadi Santosa Usman S. Ansari > wrote: > > Don't understand what you are saying. > > You said by yourself that kmalloc fixed the situation, right? Actually > it's quite clear once you think deeper about it (unless I am really > fooled). Ob

a good explanation of hotplug, __init and __devinit?

2010-06-27 Thread Robert P. J. Day
i'm fairly sure i know how the above features work, but is there a decent online coverage of that? otherwise, i'll post what i think is happening here and others are free to correct me. thanks. rday -- Robert P. J. Da

Re: BUG: soft lockup - CPU#0 stuck for 61s!

2010-06-27 Thread Michael Blizek
Hi! On 14:09 Sun 27 Jun , Harishkumar V wrote: > MMU is available in ARM. > > if the same(cpu softlockup) exists on x86, how to handle this, u told in > earlier mail, > > "This is only the stack trace of the softlockup check, not the code which > got stuck", how to find out at which point, t

A gentle reminder

2010-06-27 Thread Sourabh Mantri

Re: BUG: soft lockup - CPU#0 stuck for 61s!

2010-06-27 Thread Harishkumar V
MMU is available in ARM. if the same(cpu softlockup) exists on x86, how to handle this, u told in earlier mail, "This is only the stack trace of the softlockup check, not the code which got stuck", how to find out at which point, the code got struck, in x86. On Sun, Jun 27, 2010 at 11:47 AM, Mic