Re: Requirement of Linux port

2011-03-31 Thread Michael Blizek
Hi! On 11:30 Fri 01 Apr , Jacky Lam wrote: > Hi All, > > Is there any document on web summarized the hardware (especially, > CPU) that a Linux depends on. For example, if a CPU doesn't support > misaligned access (no exception will be generated when misalignment > access), can Linux r

Re: Debug Kernel Crash

2011-03-31 Thread swathi suresh
Hi, does /var/crash or kdump target directory as mentioned in > /etc/kdump.conf exists? > One thing i forgot to mention is in my root there is not configuration file /etc/sysconfig/kdump or /etc/kdump.conf, is this anything to do with this and not even /var/crash, i got the latest kexec-tool sour

Requirement of Linux port

2011-03-31 Thread Jacky Lam
Hi All, Is there any document on web summarized the hardware (especially, CPU) that a Linux depends on. For example, if a CPU doesn't support misaligned access (no exception will be generated when misalignment access), can Linux run on that? Thanks. BR, Jacky ___

Re: Snooping on sockets/file descriptors

2011-03-31 Thread Mulyadi Santosa
On Fri, Apr 1, 2011 at 03:04, Vimal wrote: > Hi Daniel, > >> >> How about tcpdump? >> > > Thanks for the suggestion. > > tcpdump is good, but it doesn't solve all problems.  There are a few reasons: > > * TCP packets could arrive out of order > * The data needn't belong to a valid TCP connection >

Re: mapping address pointer to page structure

2011-03-31 Thread Dave Hylands
Hi, On Wed, Mar 30, 2011 at 9:09 PM, swathi suresh wrote: > > On Wed, Mar 30, 2011 at 10:42 PM, sk.syed2 wrote: >> >> > struct page *page = virt_to_page(skb->data); >> > int offset = (unsigned long) skb->data - (unsigned long) >> > page_address(page); >> > skb_add_rx_frag(master_skb, skb_shinfo(

Re: Snooping on sockets/file descriptors

2011-03-31 Thread Vimal
Hi Daniel, > > How about tcpdump? > Thanks for the suggestion. tcpdump is good, but it doesn't solve all problems. There are a few reasons: * TCP packets could arrive out of order * The data needn't belong to a valid TCP connection * The app could just discard data (close/flush/etc) In short,

Re: Snooping on sockets/file descriptors

2011-03-31 Thread Daniel Baluta
On Thu, Mar 31, 2011 at 10:29 PM, Vimal wrote: > Hi, > > Is it possible for an application (say "snoop", with sufficient > privileges) to monitor data on any socket/file descriptor in the > system? > > Here's an example:  suppose we have a browser and it creates a tcp > socket to connect to a URL.

Snooping on sockets/file descriptors

2011-03-31 Thread Vimal
Hi, Is it possible for an application (say "snoop", with sufficient privileges) to monitor data on any socket/file descriptor in the system? Here's an example:  suppose we have a browser and it creates a tcp socket to connect to a URL.  Whenever the browser issues a read() and data is pushed to u

Re: mapping address pointer to page structure

2011-03-31 Thread swathi suresh
On Wed, Mar 30, 2011 at 10:42 PM, sk.syed2 wrote: > > struct page *page = virt_to_page(skb->data); > > int offset = (unsigned long) skb->data - (unsigned long) > page_address(page); > > skb_add_rx_frag(master_skb, skb_shinfo(master_skb)->nr_frags, page, > offset, > > skb->len) > > . > > . > > is

Re: Debug Kernel Crash

2011-03-31 Thread Thayumanavar S
> kernel. following are the > commands am using. Can some one point, if there is any thing wrong with > this. > chkconfig kdump on > /etc/init.d/kdump start > kexec -l --append="`cat /proc/cmdline`" > --initrd=/boot/initrd.img-2.6.35.10-kdump /boot/vmlinuz-2.6.35.10-kdump > kexec -e > works fine an

Debug Kernel Crash

2011-03-31 Thread swathi suresh
Hello All, I wanted to know what is the best way to generate the kernel crash dump on kernel panic, after doing some searching, i came to know we can use kexec to load a new kernel on the kernel, i followed the instruction from the following links http://www.dedoimedo.com/computers/kdump.

Re: ARM : Kernel : Setting up of MMU in head.S

2011-03-31 Thread Prakash K.B.
Merci mate. :-) On Thu, Mar 31, 2011 at 3:59 AM, Dave Hylands wrote: > Hi Prakash, > > On Wed, Mar 30, 2011 at 2:35 PM, Dave Hylands wrote: > > Hi Prakash, > > > > On Wed, Mar 30, 2011 at 8:19 AM, Prakash K.B. > wrote: > >> Hello. > >> > >> Please do not hesitate to let me know if this must be

Re: ARM : Kernel : Setting up of MMU in head.S

2011-03-31 Thread Prakash K.B.
Hi Syed. On Thu, Mar 31, 2011 at 12:55 AM, sk.syed2 wrote: > > The 2 lines above > > 1: orrr3, r7, r5, lsl #20@ flags + kernel base ==> Correct > > strr3, [r4, r5, lsl #2]@ identity mapping ==> ?? > > > > create a section entry using index based on physical address.

Re: [virtual memory] page_table_lock & mmap_sem

2011-03-31 Thread Rik van Riel
On 03/29/2011 06:30 PM, Venkatram Tummala wrote: > Hi, > > Why do we need both page_table_lock & mmap_sem in the kernel. Why isn't > mmap_sem good enough for serialization. As far as i see it, all attempts > to change the page table hierarchy in the kernel is done after holding > the write lock on

Debug Kernel Crash

2011-03-31 Thread swathi suresh
Hello All, I wanted to know what is the best way to generate the kernel crash dump on kernel panic, after doing some searching, i came to know we can use kexec to load a new kernel on the kernel, i followed the instruction from the following links http://www.dedoimedo.com/computers/kdump.

Re: ARM : Kernel : Setting up of MMU in head.S

2011-03-31 Thread Dave Hylands
Hi Prakash, On Wed, Mar 30, 2011 at 11:01 PM, Prakash K.B. wrote: > Merci mate. :-) > > On Thu, Mar 31, 2011 at 3:59 AM, Dave Hylands wrote: >> >> Hi Prakash, >> >> On Wed, Mar 30, 2011 at 2:35 PM, Dave Hylands wrote: ...snip... >> When the MMU table is turned on, the PC is still at 0x800,