Re: Determine version of kernel that produced vmcore

2007-07-24 Thread Ken'ichi Ohmichi
Hi Bernhard, 2007/07/19 01:10:50 +0200, Bernhard Walle <[EMAIL PROTECTED]> wrote: >[1] didn't we agree to vmcoreinfo? I agree to vmcoreinfo. I'll rename makedumpfile's config file to "vmcoreinfo". Thanks Ken'ichi Ohmichi - To unsubscribe from this list: send the line "unsubscribe

Re: Determine version of kernel that produced vmcore

2007-07-24 Thread Ken'ichi Ohmichi
Hi Dan, 2007/07/23 16:02:39 +0300, Dan Aloni <[EMAIL PROTECTED]> wrote: >> Dan Aloni, I'd like to cooperate with you for implementing this feature. >> If you have some patches other than 2007/07/10 patches, could you send >> me them ? I will update them. > >Sure, though I haven't made new

Re: Determine version of kernel that produced vmcore

2007-07-24 Thread Ken'ichi Ohmichi
Hi Dan, 2007/07/23 16:02:39 +0300, Dan Aloni [EMAIL PROTECTED] wrote: Dan Aloni, I'd like to cooperate with you for implementing this feature. If you have some patches other than 2007/07/10 patches, could you send me them ? I will update them. Sure, though I haven't made new patches (was

Re: Determine version of kernel that produced vmcore

2007-07-24 Thread Ken'ichi Ohmichi
Hi Bernhard, 2007/07/19 01:10:50 +0200, Bernhard Walle [EMAIL PROTECTED] wrote: [1] didn't we agree to vmcoreinfo? I agree to vmcoreinfo. I'll rename makedumpfile's config file to vmcoreinfo. Thanks Ken'ichi Ohmichi - To unsubscribe from this list: send the line unsubscribe linux-kernel in

Re: Determine version of kernel that produced vmcore

2007-07-23 Thread Vivek Goyal
On Mon, Jul 23, 2007 at 04:02:39PM +0300, Dan Aloni wrote: > On Mon, Jul 23, 2007 at 08:47:23PM +0900, Ken'ichi Ohmichi wrote: > > > > Hi, > > > > 2007/07/23 10:31:47 +0530, Vivek Goyal <[EMAIL PROTECTED]> wrote: > [..] > > > > > >I am also in favour of a complete kernel based solution. Export

Re: Determine version of kernel that produced vmcore

2007-07-23 Thread Dan Aloni
On Mon, Jul 23, 2007 at 08:47:23PM +0900, Ken'ichi Ohmichi wrote: > > Hi, > > 2007/07/23 10:31:47 +0530, Vivek Goyal <[EMAIL PROTECTED]> wrote: [..] > > > >I am also in favour of a complete kernel based solution. Export required > >info from kernel and let kexec-tools parse that info, pass it to

Re: Determine version of kernel that produced vmcore

2007-07-23 Thread Ken'ichi Ohmichi
Hi, 2007/07/23 10:31:47 +0530, Vivek Goyal <[EMAIL PROTECTED]> wrote: >On Thu, Jul 19, 2007 at 12:39:15PM -0400, Don Zickus wrote: >[..] >> >> I am not a big fan of this approach as it forces distros to require >> kexec-tools when building a kernel. Even Joe Hacker who wants a custom >> kernel

Re: Determine version of kernel that produced vmcore

2007-07-23 Thread Ken'ichi Ohmichi
Hi, 2007/07/23 10:31:47 +0530, Vivek Goyal [EMAIL PROTECTED] wrote: On Thu, Jul 19, 2007 at 12:39:15PM -0400, Don Zickus wrote: [..] I am not a big fan of this approach as it forces distros to require kexec-tools when building a kernel. Even Joe Hacker who wants a custom kernel (and not

Re: Determine version of kernel that produced vmcore

2007-07-23 Thread Dan Aloni
On Mon, Jul 23, 2007 at 08:47:23PM +0900, Ken'ichi Ohmichi wrote: Hi, 2007/07/23 10:31:47 +0530, Vivek Goyal [EMAIL PROTECTED] wrote: [..] I am also in favour of a complete kernel based solution. Export required info from kernel and let kexec-tools parse that info, pass it to second

Re: Determine version of kernel that produced vmcore

2007-07-23 Thread Vivek Goyal
On Mon, Jul 23, 2007 at 04:02:39PM +0300, Dan Aloni wrote: On Mon, Jul 23, 2007 at 08:47:23PM +0900, Ken'ichi Ohmichi wrote: Hi, 2007/07/23 10:31:47 +0530, Vivek Goyal [EMAIL PROTECTED] wrote: [..] I am also in favour of a complete kernel based solution. Export required info

Re: Determine version of kernel that produced vmcore

2007-07-22 Thread Vivek Goyal
On Thu, Jul 19, 2007 at 12:39:15PM -0400, Don Zickus wrote: [..] > > I am not a big fan of this approach as it forces distros to require > kexec-tools when building a kernel. Even Joe Hacker who wants a custom > kernel (and not interested in kexec) would have to not only download the >

Re: Determine version of kernel that produced vmcore

2007-07-22 Thread Vivek Goyal
On Thu, Jul 19, 2007 at 12:39:15PM -0400, Don Zickus wrote: [..] I am not a big fan of this approach as it forces distros to require kexec-tools when building a kernel. Even Joe Hacker who wants a custom kernel (and not interested in kexec) would have to not only download the kernel.src.rpm

Re: Determine version of kernel that produced vmcore

2007-07-19 Thread Don Zickus
On Thu, Jul 19, 2007 at 06:49:53PM +0200, Bernhard Walle wrote: > * Don Zickus <[EMAIL PROTECTED]> [2007-07-19 18:39]: > > > > I am not a big fan of this approach as it forces distros to require > > kexec-tools when building a kernel. Even Joe Hacker who wants a custom > > kernel (and not

Re: Determine version of kernel that produced vmcore

2007-07-19 Thread Bernhard Walle
* Don Zickus <[EMAIL PROTECTED]> [2007-07-19 18:39]: > > I am not a big fan of this approach as it forces distros to require > kexec-tools when building a kernel. Even Joe Hacker who wants a custom > kernel (and not interested in kexec) would have to not only download the > kernel.src.rpm but

Re: Determine version of kernel that produced vmcore

2007-07-19 Thread Don Zickus
On Wed, Jul 18, 2007 at 11:07:40PM +0900, Ken'ichi Ohmichi wrote: > The content of mkdfinfo file has been increasing whenever adding > features and correcting bugs. The content is increasing even now. > And, the feature addition is done not only for new kernels but also > for old upstream kernels.

Re: Determine version of kernel that produced vmcore

2007-07-19 Thread Vivek Goyal
On Wed, Jul 18, 2007 at 11:07:40PM +0900, Ken'ichi Ohmichi wrote: > > Hi, > > 2007/07/16 18:06:33 +0530, Vivek Goyal <[EMAIL PROTECTED]> wrote: > >On Mon, Jul 16, 2007 at 02:28:54PM +0200, Bernhard Walle wrote: > >> * Vivek Goyal <[EMAIL PROTECTED]> [2007-07-16 14:25]: > >> > > >> > Ok. Now

Re: Determine version of kernel that produced vmcore

2007-07-19 Thread Vivek Goyal
On Wed, Jul 18, 2007 at 11:07:40PM +0900, Ken'ichi Ohmichi wrote: Hi, 2007/07/16 18:06:33 +0530, Vivek Goyal [EMAIL PROTECTED] wrote: On Mon, Jul 16, 2007 at 02:28:54PM +0200, Bernhard Walle wrote: * Vivek Goyal [EMAIL PROTECTED] [2007-07-16 14:25]: Ok. Now there seems to be two

Re: Determine version of kernel that produced vmcore

2007-07-19 Thread Don Zickus
On Wed, Jul 18, 2007 at 11:07:40PM +0900, Ken'ichi Ohmichi wrote: The content of mkdfinfo file has been increasing whenever adding features and correcting bugs. The content is increasing even now. And, the feature addition is done not only for new kernels but also for old upstream kernels.

Re: Determine version of kernel that produced vmcore

2007-07-19 Thread Bernhard Walle
* Don Zickus [EMAIL PROTECTED] [2007-07-19 18:39]: I am not a big fan of this approach as it forces distros to require kexec-tools when building a kernel. Even Joe Hacker who wants a custom kernel (and not interested in kexec) would have to not only download the kernel.src.rpm but

Re: Determine version of kernel that produced vmcore

2007-07-19 Thread Don Zickus
On Thu, Jul 19, 2007 at 06:49:53PM +0200, Bernhard Walle wrote: * Don Zickus [EMAIL PROTECTED] [2007-07-19 18:39]: I am not a big fan of this approach as it forces distros to require kexec-tools when building a kernel. Even Joe Hacker who wants a custom kernel (and not interested in

Re: Determine version of kernel that produced vmcore

2007-07-18 Thread Bernhard Walle
Hello, * Ken'ichi Ohmichi <[EMAIL PROTECTED]> [2007-07-18 16:07]: > I propose the solution including Dan's, Vivek's and Bernhard's opinions. > How about the following sequence for distributors ? > (It is not necessary to rebuild 2nd-kernel initrd even if 1st-kernel changes. > A new option

Re: Determine version of kernel that produced vmcore

2007-07-18 Thread Ken'ichi Ohmichi
Hi, 2007/07/16 18:06:33 +0530, Vivek Goyal <[EMAIL PROTECTED]> wrote: >On Mon, Jul 16, 2007 at 02:28:54PM +0200, Bernhard Walle wrote: >> * Vivek Goyal <[EMAIL PROTECTED]> [2007-07-16 14:25]: >> > >> > Ok. Now there seems to be two ways for accessing such info. >> > - Through global variables

Re: Determine version of kernel that produced vmcore

2007-07-18 Thread Ken'ichi Ohmichi
Hi, 2007/07/16 18:06:33 +0530, Vivek Goyal [EMAIL PROTECTED] wrote: On Mon, Jul 16, 2007 at 02:28:54PM +0200, Bernhard Walle wrote: * Vivek Goyal [EMAIL PROTECTED] [2007-07-16 14:25]: Ok. Now there seems to be two ways for accessing such info. - Through global variables - Export

Re: Determine version of kernel that produced vmcore

2007-07-18 Thread Bernhard Walle
Hello, * Ken'ichi Ohmichi [EMAIL PROTECTED] [2007-07-18 16:07]: I propose the solution including Dan's, Vivek's and Bernhard's opinions. How about the following sequence for distributors ? (It is not necessary to rebuild 2nd-kernel initrd even if 1st-kernel changes. A new option --mkdfinfo

Re: Determine version of kernel that produced vmcore

2007-07-17 Thread Bernhard Walle
* Vivek Goyal <[EMAIL PROTECTED]> [2007-07-17 05:50]: > > Thinking more about it. These config variables are accessible in user > space in first kernel through sysconf() interface. In that case kexec > can pack required config variables into an ELF note and kernel does not > have to intervene.

Re: Determine version of kernel that produced vmcore

2007-07-17 Thread Bernhard Walle
* Vivek Goyal [EMAIL PROTECTED] [2007-07-17 05:50]: Thinking more about it. These config variables are accessible in user space in first kernel through sysconf() interface. In that case kexec can pack required config variables into an ELF note and kernel does not have to intervene. That's a

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Vivek Goyal
On Mon, Jul 16, 2007 at 01:57:07PM +0200, Bernhard Walle wrote: > * Vivek Goyal <[EMAIL PROTECTED]> [2007-07-16 06:19]: > > On Fri, Jul 13, 2007 at 03:15:50PM +0200, Bernhard Walle wrote: > > > * Ken'ichi Ohmichi <[EMAIL PROTECTED]> [2007-07-13 13:05]: > > > > > > > > BTW, I'd like to remove

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Vivek Goyal
On Mon, Jul 16, 2007 at 02:28:54PM +0200, Bernhard Walle wrote: > * Vivek Goyal <[EMAIL PROTECTED]> [2007-07-16 14:25]: > > > > Ok. Now there seems to be two ways for accessing such info. > > - Through global variables > > - Export through ELF notes. > > > > Personally, I like the approach taken

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Bernhard Walle
* Vivek Goyal <[EMAIL PROTECTED]> [2007-07-16 14:25]: > > Ok. Now there seems to be two ways for accessing such info. > - Through global variables > - Export through ELF notes. > > Personally, I like the approach taken by Dan Aloni of exporting required > info through ELF notes. That seems to be

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Bernhard Walle
* Vivek Goyal <[EMAIL PROTECTED]> [2007-07-16 14:25]: > > Ok. Now there seems to be two ways for accessing such info. > - Through global variables > - Export through ELF notes. > > Personally, I like the approach taken by Dan Aloni of exporting required > info through ELF notes. That seems to be

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Vivek Goyal
On Mon, Jul 16, 2007 at 01:57:07PM +0200, Bernhard Walle wrote: > * Vivek Goyal <[EMAIL PROTECTED]> [2007-07-16 06:19]: > > On Fri, Jul 13, 2007 at 03:15:50PM +0200, Bernhard Walle wrote: > > > * Ken'ichi Ohmichi <[EMAIL PROTECTED]> [2007-07-13 13:05]: > > > > > > > > BTW, I'd like to remove

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Bernhard Walle
* Vivek Goyal <[EMAIL PROTECTED]> [2007-07-16 06:19]: > On Fri, Jul 13, 2007 at 03:15:50PM +0200, Bernhard Walle wrote: > > * Ken'ichi Ohmichi <[EMAIL PROTECTED]> [2007-07-13 13:05]: > > > > > > BTW, I'd like to remove PAGESIZE from a mkdfinfo file. > > > While 2nd-kernel is running, new

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Bernhard Walle
* Vivek Goyal [EMAIL PROTECTED] [2007-07-16 06:19]: On Fri, Jul 13, 2007 at 03:15:50PM +0200, Bernhard Walle wrote: * Ken'ichi Ohmichi [EMAIL PROTECTED] [2007-07-13 13:05]: BTW, I'd like to remove PAGESIZE from a mkdfinfo file. While 2nd-kernel is running, new makedumpfile comes to

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Vivek Goyal
On Mon, Jul 16, 2007 at 01:57:07PM +0200, Bernhard Walle wrote: * Vivek Goyal [EMAIL PROTECTED] [2007-07-16 06:19]: On Fri, Jul 13, 2007 at 03:15:50PM +0200, Bernhard Walle wrote: * Ken'ichi Ohmichi [EMAIL PROTECTED] [2007-07-13 13:05]: BTW, I'd like to remove PAGESIZE from a

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Bernhard Walle
* Vivek Goyal [EMAIL PROTECTED] [2007-07-16 14:25]: Ok. Now there seems to be two ways for accessing such info. - Through global variables - Export through ELF notes. Personally, I like the approach taken by Dan Aloni of exporting required info through ELF notes. That seems to be more

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Bernhard Walle
* Vivek Goyal [EMAIL PROTECTED] [2007-07-16 14:25]: Ok. Now there seems to be two ways for accessing such info. - Through global variables - Export through ELF notes. Personally, I like the approach taken by Dan Aloni of exporting required info through ELF notes. That seems to be more

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Vivek Goyal
On Mon, Jul 16, 2007 at 02:28:54PM +0200, Bernhard Walle wrote: * Vivek Goyal [EMAIL PROTECTED] [2007-07-16 14:25]: Ok. Now there seems to be two ways for accessing such info. - Through global variables - Export through ELF notes. Personally, I like the approach taken by Dan Aloni

Re: Determine version of kernel that produced vmcore

2007-07-16 Thread Vivek Goyal
On Mon, Jul 16, 2007 at 01:57:07PM +0200, Bernhard Walle wrote: * Vivek Goyal [EMAIL PROTECTED] [2007-07-16 06:19]: On Fri, Jul 13, 2007 at 03:15:50PM +0200, Bernhard Walle wrote: * Ken'ichi Ohmichi [EMAIL PROTECTED] [2007-07-13 13:05]: BTW, I'd like to remove PAGESIZE from a

Re: Determine version of kernel that produced vmcore

2007-07-15 Thread Vivek Goyal
On Fri, Jul 13, 2007 at 03:15:50PM +0200, Bernhard Walle wrote: > * Ken'ichi Ohmichi <[EMAIL PROTECTED]> [2007-07-13 13:05]: > > > > BTW, I'd like to remove PAGESIZE from a mkdfinfo file. > > While 2nd-kernel is running, new makedumpfile comes to consider > > 2nd-kernel PAGESIZE as 1st-kernel

Re: Determine version of kernel that produced vmcore

2007-07-15 Thread Vivek Goyal
On Fri, Jul 13, 2007 at 03:15:50PM +0200, Bernhard Walle wrote: * Ken'ichi Ohmichi [EMAIL PROTECTED] [2007-07-13 13:05]: BTW, I'd like to remove PAGESIZE from a mkdfinfo file. While 2nd-kernel is running, new makedumpfile comes to consider 2nd-kernel PAGESIZE as 1st-kernel PAGESIZE

Re: Determine version of kernel that produced vmcore

2007-07-13 Thread Bernhard Walle
* Ken'ichi Ohmichi <[EMAIL PROTECTED]> [2007-07-13 13:05]: > > BTW, I'd like to remove PAGESIZE from a mkdfinfo file. > While 2nd-kernel is running, new makedumpfile comes to consider > 2nd-kernel PAGESIZE as 1st-kernel PAGESIZE without getting PAGESIZE > from a mkdfinfo file. I don't think

Re: Determine version of kernel that produced vmcore

2007-07-13 Thread Ken'ichi Ohmichi
Hi all, 2007/07/10 08:02:43 -0400, Neil Horman <[EMAIL PROTECTED]> wrote: >> Besides Dan's plan, I'm planning the change of CONFIGFILE for distributors. >> In the kernel building process, distributors need to make CONFIGFILE >> on an older kernel (ex. RHEL5 kernel is built on RHEL4), and

Re: Determine version of kernel that produced vmcore

2007-07-13 Thread Bernhard Walle
* Vivek Goyal <[EMAIL PROTECTED]> [2007-07-13 05:58]: > Given the fact that more and more architectures are supporting multiple > page sizes. Now one can also export relevant kernel CONFIG variables > through this ELF note. makedumpfile's job will be simpler. You don't have > to make any guesses

Re: Determine version of kernel that produced vmcore

2007-07-13 Thread Bernhard Walle
* Vivek Goyal [EMAIL PROTECTED] [2007-07-13 05:58]: Given the fact that more and more architectures are supporting multiple page sizes. Now one can also export relevant kernel CONFIG variables through this ELF note. makedumpfile's job will be simpler. You don't have to make any guesses about

Re: Determine version of kernel that produced vmcore

2007-07-13 Thread Bernhard Walle
* Ken'ichi Ohmichi [EMAIL PROTECTED] [2007-07-13 13:05]: BTW, I'd like to remove PAGESIZE from a mkdfinfo file. While 2nd-kernel is running, new makedumpfile comes to consider 2nd-kernel PAGESIZE as 1st-kernel PAGESIZE without getting PAGESIZE from a mkdfinfo file. I don't think that's a

Re: Determine version of kernel that produced vmcore

2007-07-13 Thread Ken'ichi Ohmichi
Hi all, 2007/07/10 08:02:43 -0400, Neil Horman [EMAIL PROTECTED] wrote: Besides Dan's plan, I'm planning the change of CONFIGFILE for distributors. In the kernel building process, distributors need to make CONFIGFILE on an older kernel (ex. RHEL5 kernel is built on RHEL4), and OSRELEASE may

Re: Determine version of kernel that produced vmcore

2007-07-12 Thread Vivek Goyal
On Wed, Jul 11, 2007 at 10:43:04PM +0900, Ken'ichi Ohmichi wrote: > > Hi Dan, > > 2007/07/11 10:32:16 +0300, Dan Aloni <[EMAIL PROTECTED]> wrote: > >> This implementation looks interesting. No need of debug compiled > >> vmlinux for dump filtering purposes. No run time vmlinux binary > >>

Re: Determine version of kernel that produced vmcore

2007-07-12 Thread Vivek Goyal
On Wed, Jul 11, 2007 at 10:32:16AM +0300, Dan Aloni wrote: [..] > > This implementation looks interesting. No need of debug compiled > > vmlinux for dump filtering purposes. No run time vmlinux binary > > modifications > > as suggested by your previous mails. People can export kernel CONFIG info

Re: Determine version of kernel that produced vmcore

2007-07-12 Thread Vivek Goyal
On Wed, Jul 11, 2007 at 10:43:04PM +0900, Ken'ichi Ohmichi wrote: Hi Dan, 2007/07/11 10:32:16 +0300, Dan Aloni [EMAIL PROTECTED] wrote: This implementation looks interesting. No need of debug compiled vmlinux for dump filtering purposes. No run time vmlinux binary modifications as

Re: Determine version of kernel that produced vmcore

2007-07-12 Thread Vivek Goyal
On Wed, Jul 11, 2007 at 10:32:16AM +0300, Dan Aloni wrote: [..] This implementation looks interesting. No need of debug compiled vmlinux for dump filtering purposes. No run time vmlinux binary modifications as suggested by your previous mails. People can export kernel CONFIG info like

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Ken'ichi Ohmichi
Hi Dan, 2007/07/11 10:32:16 +0300, Dan Aloni <[EMAIL PROTECTED]> wrote: >> This implementation looks interesting. No need of debug compiled >> vmlinux for dump filtering purposes. No run time vmlinux binary modifications >> as suggested by your previous mails. People can export kernel CONFIG

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Neil Horman
On Tue, Jul 10, 2007 at 11:36:45PM +0300, Dan Aloni wrote: > On Tue, Jul 10, 2007 at 03:00:09PM -0400, Neil Horman wrote: > > On Tue, Jul 10, 2007 at 08:35:41PM +0300, Dan Aloni wrote: > >[...] > > > > > > Isn't there some sort of a circular dependency going on here? As I > > > understand it the

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Bernhard Walle
* Vivek Goyal <[EMAIL PROTECTED]> [2007-07-11 08:07]: > On Tue, Jul 10, 2007 at 07:52:01PM +0300, Dan Aloni wrote: > > On Tue, Jul 10, 2007 at 08:09:04AM -0400, Neil Horman wrote: > > > On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: > > > > On Fri, Jul 06, 2007 at 05:58:04PM +0300,

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Dan Aloni
On Wed, Jul 11, 2007 at 11:37:26AM +0530, Vivek Goyal wrote: > On Tue, Jul 10, 2007 at 07:52:01PM +0300, Dan Aloni wrote: > > On Tue, Jul 10, 2007 at 08:09:04AM -0400, Neil Horman wrote: > > > On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: > > > > On Fri, Jul 06, 2007 at 05:58:04PM

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Vivek Goyal
On Tue, Jul 10, 2007 at 07:52:01PM +0300, Dan Aloni wrote: > On Tue, Jul 10, 2007 at 08:09:04AM -0400, Neil Horman wrote: > > On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: > > > On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: > > > > On Fri, Jul 06, 2007 at 03:28:14PM

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Vivek Goyal
On Tue, Jul 10, 2007 at 07:52:01PM +0300, Dan Aloni wrote: On Tue, Jul 10, 2007 at 08:09:04AM -0400, Neil Horman wrote: On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: On Fri, Jul 06, 2007 at 03:28:14PM +0200,

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Dan Aloni
On Wed, Jul 11, 2007 at 11:37:26AM +0530, Vivek Goyal wrote: On Tue, Jul 10, 2007 at 07:52:01PM +0300, Dan Aloni wrote: On Tue, Jul 10, 2007 at 08:09:04AM -0400, Neil Horman wrote: On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Bernhard Walle
* Vivek Goyal [EMAIL PROTECTED] [2007-07-11 08:07]: On Tue, Jul 10, 2007 at 07:52:01PM +0300, Dan Aloni wrote: On Tue, Jul 10, 2007 at 08:09:04AM -0400, Neil Horman wrote: On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Neil Horman
On Tue, Jul 10, 2007 at 11:36:45PM +0300, Dan Aloni wrote: On Tue, Jul 10, 2007 at 03:00:09PM -0400, Neil Horman wrote: On Tue, Jul 10, 2007 at 08:35:41PM +0300, Dan Aloni wrote: [...] Isn't there some sort of a circular dependency going on here? As I understand it the vmlinux

Re: Determine version of kernel that produced vmcore

2007-07-11 Thread Ken'ichi Ohmichi
Hi Dan, 2007/07/11 10:32:16 +0300, Dan Aloni [EMAIL PROTECTED] wrote: This implementation looks interesting. No need of debug compiled vmlinux for dump filtering purposes. No run time vmlinux binary modifications as suggested by your previous mails. People can export kernel CONFIG info like

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 03:00:09PM -0400, Neil Horman wrote: > On Tue, Jul 10, 2007 at 08:35:41PM +0300, Dan Aloni wrote: >[...] > > > > Isn't there some sort of a circular dependency going on here? As I > > understand it the vmlinux binary already contains the initramfs as > > built-in data

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 08:35:41PM +0300, Dan Aloni wrote: > On Tue, Jul 10, 2007 at 01:17:40PM -0400, Neil Horman wrote: > > On Tue, Jul 10, 2007 at 08:30:37PM +0530, Vivek Goyal wrote: > > > I am still thinking that why can't we change initrd building process > > > (Be it mkinitrd or mkdumprd

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 08:35:41PM +0300, Dan Aloni wrote: > On Tue, Jul 10, 2007 at 01:17:40PM -0400, Neil Horman wrote: > > On Tue, Jul 10, 2007 at 08:30:37PM +0530, Vivek Goyal wrote: > > > I am still thinking that why can't we change initrd building process > > > (Be it mkinitrd or mkdumprd

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 01:17:40PM -0400, Neil Horman wrote: > On Tue, Jul 10, 2007 at 08:30:37PM +0530, Vivek Goyal wrote: > > I am still thinking that why can't we change initrd building process > > (Be it mkinitrd or mkdumprd depending on distriution). Whole idea is > > that while building an

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 08:30:37PM +0530, Vivek Goyal wrote: > On Mon, Jul 09, 2007 at 02:41:31PM +0300, Dan Aloni wrote: > > > > I don't think it would add much complexity to build process as it > > is now, just like the other tools that transparently do post-linking > > modifications. As far

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 08:09:04AM -0400, Neil Horman wrote: > On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: > > On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: > > > On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: > > > > Hello, [...] > > > It contains

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Vivek Goyal
On Mon, Jul 09, 2007 at 02:41:31PM +0300, Dan Aloni wrote: > > I don't think it would add much complexity to build process as it > is now, just like the other tools that transparently do post-linking > modifications. As far as the developer is concerned, there's just > the vmlinux and/or

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Bernhard Walle
Hello, * Dan Aloni <[EMAIL PROTECTED]> [2007-07-10 06:45]: > > > > > > Not exactly. Let me describe the procedure in greater detail. > > > Basically, it would go like this: > > > > > > 1. > > > 2. > > > 3. embed_configfile /proc/kcore.info /vmlinux-kdump > > > 4. kexec -l vmlinux-kdump <>

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Bernhard Walle
* Neil Horman <[EMAIL PROTECTED]> [2007-07-10 14:12]: > On Tue, Jul 10, 2007 at 11:14:14AM +0300, Dan Aloni wrote: > > On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: > > > On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: > > > > > > >[..] > > > > It contains enough

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Bernhard Walle
* Vivek Goyal <[EMAIL PROTECTED]> [2007-07-10 08:36]: > > does anybody know a _reliable_ way to determine the version the kernel > > that produced a vmcore file? This means not scanning for a specific > > string or something like that which can fail on random memory. > > > > Would it make sense

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Bernhard Walle
Hi, * Ken'ichi Ohmichi <[EMAIL PROTECTED]> [2007-07-10 05:13]: > Plan 1: > A new option [--osrelease="string"] is added. > The OSRELEASE of CONFIGFILE is overwritten by "string". > In the kernel building process, distributors should specify "string" > as the building kernel version. > >

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 11:14:14AM +0300, Dan Aloni wrote: > On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: > > On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: > > > > >[..] > > > It contains enough information in order to make a compact kernel > > > dump (makedumpinfo

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: > On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: > > On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: > > > Hello, > > > > > > does anybody know a _reliable_ way to determine the version the kernel > > > that

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 12:13:15PM +0900, Ken'ichi Ohmichi wrote: > > Hi, > > On Fri, 6 Jul 2007 17:58:04 +0300, Dan Aloni <[EMAIL PROTECTED]> wrote: > > On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: > > > Hello, > > > > > > does anybody know a _reliable_ way to determine the

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: > On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: > > >[..] > > It contains enough information in order to make a compact kernel > > dump (makedumpinfo needs to go over the struct page arrays). As > > you see, it also

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Vivek Goyal
On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: > On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: > > Hello, > > > > does anybody know a _reliable_ way to determine the version the kernel > > that produced a vmcore file? This means not scanning for a specific > > string

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Vivek Goyal
On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: > Hello, > > does anybody know a _reliable_ way to determine the version the kernel > that produced a vmcore file? This means not scanning for a specific > string or something like that which can fail on random memory. > > Would it

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Vivek Goyal
On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: Hello, does anybody know a _reliable_ way to determine the version the kernel that produced a vmcore file? This means not scanning for a specific string or something like that which can fail on random memory. Would it make

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Vivek Goyal
On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: Hello, does anybody know a _reliable_ way to determine the version the kernel that produced a vmcore file? This means not scanning for a specific string or

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: [..] It contains enough information in order to make a compact kernel dump (makedumpinfo needs to go over the struct page arrays). As you see, it also contains the

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 12:13:15PM +0900, Ken'ichi Ohmichi wrote: Hi, On Fri, 6 Jul 2007 17:58:04 +0300, Dan Aloni [EMAIL PROTECTED] wrote: On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: Hello, does anybody know a _reliable_ way to determine the version the

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: Hello, does anybody know a _reliable_ way to determine the version the kernel that produced a

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 11:14:14AM +0300, Dan Aloni wrote: On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: [..] It contains enough information in order to make a compact kernel dump (makedumpinfo needs to go over

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Bernhard Walle
Hi, * Ken'ichi Ohmichi [EMAIL PROTECTED] [2007-07-10 05:13]: Plan 1: A new option [--osrelease=string] is added. The OSRELEASE of CONFIGFILE is overwritten by string. In the kernel building process, distributors should specify string as the building kernel version. Plan2:

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Bernhard Walle
* Vivek Goyal [EMAIL PROTECTED] [2007-07-10 08:36]: does anybody know a _reliable_ way to determine the version the kernel that produced a vmcore file? This means not scanning for a specific string or something like that which can fail on random memory. Would it make sense to add a ELF

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Bernhard Walle
* Neil Horman [EMAIL PROTECTED] [2007-07-10 14:12]: On Tue, Jul 10, 2007 at 11:14:14AM +0300, Dan Aloni wrote: On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: [..] It contains enough information in order to

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Bernhard Walle
Hello, * Dan Aloni [EMAIL PROTECTED] [2007-07-10 06:45]: Not exactly. Let me describe the procedure in greater detail. Basically, it would go like this: 1. normal bootloader boot 2. normal initramfs 3. embed_configfile /proc/kcore.info /vmlinux-kdump 4. kexec -l

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Vivek Goyal
On Mon, Jul 09, 2007 at 02:41:31PM +0300, Dan Aloni wrote: I don't think it would add much complexity to build process as it is now, just like the other tools that transparently do post-linking modifications. As far as the developer is concerned, there's just the vmlinux and/or bzImage

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 08:09:04AM -0400, Neil Horman wrote: On Tue, Jul 10, 2007 at 12:18:17PM +0530, Vivek Goyal wrote: On Fri, Jul 06, 2007 at 05:58:04PM +0300, Dan Aloni wrote: On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: Hello, [...] It contains enough

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 08:30:37PM +0530, Vivek Goyal wrote: On Mon, Jul 09, 2007 at 02:41:31PM +0300, Dan Aloni wrote: I don't think it would add much complexity to build process as it is now, just like the other tools that transparently do post-linking modifications. As far as the

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 01:17:40PM -0400, Neil Horman wrote: On Tue, Jul 10, 2007 at 08:30:37PM +0530, Vivek Goyal wrote: I am still thinking that why can't we change initrd building process (Be it mkinitrd or mkdumprd depending on distriution). Whole idea is that while building an

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 08:35:41PM +0300, Dan Aloni wrote: On Tue, Jul 10, 2007 at 01:17:40PM -0400, Neil Horman wrote: On Tue, Jul 10, 2007 at 08:30:37PM +0530, Vivek Goyal wrote: I am still thinking that why can't we change initrd building process (Be it mkinitrd or mkdumprd depending

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Neil Horman
On Tue, Jul 10, 2007 at 08:35:41PM +0300, Dan Aloni wrote: On Tue, Jul 10, 2007 at 01:17:40PM -0400, Neil Horman wrote: On Tue, Jul 10, 2007 at 08:30:37PM +0530, Vivek Goyal wrote: I am still thinking that why can't we change initrd building process (Be it mkinitrd or mkdumprd depending

Re: Determine version of kernel that produced vmcore

2007-07-10 Thread Dan Aloni
On Tue, Jul 10, 2007 at 03:00:09PM -0400, Neil Horman wrote: On Tue, Jul 10, 2007 at 08:35:41PM +0300, Dan Aloni wrote: [...] Isn't there some sort of a circular dependency going on here? As I understand it the vmlinux binary already contains the initramfs as built-in data (at least

Re: Determine version of kernel that produced vmcore

2007-07-09 Thread Dan Aloni
On Mon, Jul 09, 2007 at 10:49:38PM +0200, Bernhard Walle wrote: > Hi, > > * Dan Aloni <[EMAIL PROTECTED]> [2007-07-09 13:41]: > > > > A patch that I am working on will make it possible to integrate > > > > the output of 'makedumpinfo -g' into vmlinux as the final build > > > > stage of the

Re: Determine version of kernel that produced vmcore

2007-07-09 Thread Ken'ichi Ohmichi
Hi, On Fri, 6 Jul 2007 17:58:04 +0300, Dan Aloni <[EMAIL PROTECTED]> wrote: > On Fri, Jul 06, 2007 at 03:28:14PM +0200, Bernhard Walle wrote: > > Hello, > > > > does anybody know a _reliable_ way to determine the version the kernel > > that produced a vmcore file? This means not scanning for a

Re: Determine version of kernel that produced vmcore

2007-07-09 Thread Bernhard Walle
Hi, * Dan Aloni <[EMAIL PROTECTED]> [2007-07-09 13:41]: > > > A patch that I am working on will make it possible to integrate > > > the output of 'makedumpinfo -g' into vmlinux as the final build > > > stage of the kernel. This information will be presented itself > > > as /proc/kcore.info for

Re: Determine version of kernel that produced vmcore

2007-07-09 Thread Dan Aloni
On Mon, Jul 09, 2007 at 11:21:54AM +0200, Bernhard Walle wrote: > Hello, > > * Dan Aloni <[EMAIL PROTECTED]> [2007-07-06 16:58]: > > > > Redhat has a makedumpinfo util which they intend to use as slim > > kernel-version-independent utility on kdump rootfs in order to > > save /proc/vmcore in a

Re: Determine version of kernel that produced vmcore

2007-07-09 Thread Bernhard Walle
Hello, * Dan Aloni <[EMAIL PROTECTED]> [2007-07-06 16:58]: > > Redhat has a makedumpinfo util which they intend to use as slim > kernel-version-independent utility on kdump rootfs in order to > save /proc/vmcore in a compact manner. I think you mean makedumpfile, don't you? > A patch that I am

Re: Determine version of kernel that produced vmcore

2007-07-09 Thread Bernhard Walle
Hello, * Dan Aloni [EMAIL PROTECTED] [2007-07-06 16:58]: Redhat has a makedumpinfo util which they intend to use as slim kernel-version-independent utility on kdump rootfs in order to save /proc/vmcore in a compact manner. I think you mean makedumpfile, don't you? A patch that I am

  1   2   >