Re: [RFC] : Is /proc/kcore still usefull and/or maintained ?

2007-03-21 Thread Eric Dumazet
On Thu, 22 Mar 2007 02:04:50 +0200 Maxim <[EMAIL PROTECTED]> wrote: > Hi, > Yes, you are right, you have different problem that I had > > But why do you need llseek ? I dont personnaly, but tools do need llseek. > > Why not to mmap it ? > It is natural thing to do with

Re: [RFC] : Is /proc/kcore still usefull and/or maintained ?

2007-03-21 Thread Maxim
On Thursday 22 March 2007 01:53:10 Eric Dumazet wrote: > I stand corrected : This is a new bug > > The /proc/kcore problem appears with linux-2.6.21-rc4-mm1 > > fd = open("/proc/kcore", 0); > llseek(fd, ...) returns an -EINVAL error > > > Quick code inspection (before going to sleep...) shows t

Re: [RFC] : Is /proc/kcore still usefull and/or maintained ?

2007-03-21 Thread Eric Dumazet
I stand corrected : This is a new bug The /proc/kcore problem appears with linux-2.6.21-rc4-mm1 fd = open("/proc/kcore", 0); llseek(fd, ...) returns an -EINVAL error Quick code inspection (before going to sleep...) shows that proc_reg_llseek() (file fs/proc/inode.c) is doing something like :

Re: [RFC] : Is /proc/kcore still usefull and/or maintained ?

2007-03-21 Thread Maxim
On Thursday 22 March 2007 01:11:57 Jan Engelhardt wrote: > > On Mar 21 2007 23:58, Eric Dumazet wrote: > > Hi all > > > > On i386 , 2.6.20 / 2.6.21-rc4 : > > > > # gdb vmlinux /proc/kcore > > error > > # file /proc/kcore > > error > > 00:11 ichi:/hld # file /proc/kcore > /proc/kcore: ELF 32-bit L

Re: [RFC] : Is /proc/kcore still usefull and/or maintained ?

2007-03-21 Thread Jan Engelhardt
On Mar 21 2007 23:58, Eric Dumazet wrote: > Hi all > > On i386 , 2.6.20 / 2.6.21-rc4 : > > # gdb vmlinux /proc/kcore > error > # file /proc/kcore > error 00:11 ichi:/hld # file /proc/kcore /proc/kcore: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 'vmlinux' 00:11 ichi:/

[RFC] : Is /proc/kcore still usefull and/or maintained ?

2007-03-21 Thread Eric Dumazet
Hi all On i386 , 2.6.20 / 2.6.21-rc4 : # gdb vmlinux /proc/kcore error # file /proc/kcore error Apparently we can not llseek() anymore on this file (returns -EINVAL) On x86_64 2.6.20 it's working # file /proc/kcore /proc/kcore: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style