Re: The case for a standard kernel debugger

2000-10-09 Thread richardj_moore
>Hence, yes I can provide an interface from the kernel to log a trace event >with a variable length buffer, but I don't think that taking away the statically >defined trace points is the right thing to do. (I might have gotten this >completely wrong, though ... My presumption about your

Re: The case for a standard kernel debugger

2000-10-09 Thread Karim Yaghmour
)7768-298183 > IBM UK Ltd, MP135 Galileo Centre, Hursley Park, Winchester, SO21 2JN, UK > > Karim Yaghmour <[EMAIL PROTECTED]> on 06/10/2000 09:16:12 > > Please respond to Karim Yaghmour <[EMAIL PROTECTED]> > > To: Richard J Moore/UK/IBM@IBMGB > cc: [

Re: The case for a standard kernel debugger

2000-10-09 Thread richardj_moore
Hence, yes I can provide an interface from the kernel to log a trace event with a variable length buffer, but I don't think that taking away the statically defined trace points is the right thing to do. (I might have gotten this completely wrong, though ... My presumption about your suggestion

Re: The case for a standard kernel debugger

2000-10-06 Thread Karim Yaghmour
Thought I'd let you know that I will reply to your suggestions (which are quite interesting by the way) ... but I need to catch up some sleep as it's close to 7AM here in Montreal and my brains are failing ... ;) === Karim

Re: The case for a standard kernel debugger

2000-10-06 Thread richardj_moore
Richard J Moore/UK/IBM@IBMGB cc: [EMAIL PROTECTED] Subject: Re: The case for a standard kernel debugger Hello Richard, Part of your analysis is correct. The hooks were designed to take care of static tracepoints only. That said, dynamic allocation of event IDs was next on my list and

Re: The case for a standard kernel debugger

2000-10-06 Thread Karim Yaghmour
Hello Richard, Part of your analysis is correct. The hooks were designed to take care of static tracepoints only. That said, dynamic allocation of event IDs was next on my list and the hooking mechanism would have been modified consequently. As for "multiple exits registered per hook", if you

Re: The case for a standard kernel debugger

2000-10-06 Thread richardj_moore
Yes, we looked at that and it didn't seem to provide the generality we needed - multipe exits registered per hook, ability to arm a set of hooks atomically, ability to prioritise dispatching order of a hook exit, MP complient. I may be wrong but the Linux Trace Toolkit hooks like like they were

Re: The case for a standard kernel debugger

2000-10-06 Thread richardj_moore
Yes, we looked at that and it didn't seem to provide the generality we needed - multipe exits registered per hook, ability to arm a set of hooks atomically, ability to prioritise dispatching order of a hook exit, MP complient. I may be wrong but the Linux Trace Toolkit hooks like like they were

Re: The case for a standard kernel debugger

2000-10-06 Thread Karim Yaghmour
Hello Richard, Part of your analysis is correct. The hooks were designed to take care of static tracepoints only. That said, dynamic allocation of event IDs was next on my list and the hooking mechanism would have been modified consequently. As for "multiple exits registered per hook", if you

Re: The case for a standard kernel debugger

2000-10-06 Thread richardj_moore
/UK/IBM@IBMGB cc: [EMAIL PROTECTED] Subject: Re: The case for a standard kernel debugger Hello Richard, Part of your analysis is correct. The hooks were designed to take care of static tracepoints only. That said, dynamic allocation of event IDs was next on my list and the hooking mechanism

Re: The case for a standard kernel debugger

2000-10-06 Thread Karim Yaghmour
Thought I'd let you know that I will reply to your suggestions (which are quite interesting by the way) ... but I need to catch up some sleep as it's close to 7AM here in Montreal and my brains are failing ... ;) === Karim

Re: The case for a standard kernel debugger

2000-10-05 Thread Karim Yaghmour
[EMAIL PROTECTED] wrote: > One big argument against RAS of any sort is that it bloats the kernel and > not every one wants it (until they have a problem). A further argument with > Linux is that you may have to do quite a bit of hard work to get the subset > of RAS you need to co-exist, if it

Re: The case for a standard kernel debugger

2000-10-05 Thread Karim Yaghmour
[EMAIL PROTECTED] wrote: One big argument against RAS of any sort is that it bloats the kernel and not every one wants it (until they have a problem). A further argument with Linux is that you may have to do quite a bit of hard work to get the subset of RAS you need to co-exist, if it exists

RE: The case for a standard kernel debugger

2000-09-15 Thread Howell, David P
describes would do to improve fault isolation and resolution. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 15, 2000 5:43 AM To: Keith Owens Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: The case for a standard kernel debugger I think

Re: The case for a standard kernel debugger

2000-09-15 Thread richardj_moore
000 10:49:50 PM Please respond to Keith Owens <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] (bcc: Richard J Moore/UK/IBM) Subject: The case for a standard kernel debugger Resend, this time with cc: torvalds. This note puts the case for including a ker

RE: The case for a standard kernel debugger

2000-09-15 Thread Howell, David P
describes would do to improve fault isolation and resolution. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 15, 2000 5:43 AM To: Keith Owens Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: The case for a standard kernel debugger I think

Re: The case for a standard kernel debugger

2000-09-14 Thread Jeff V. Merkey
"TRG hereby offers to SGI Corporation exclusive, unlimimited, perpetual, transferable, licensee rights to the Linux port of the MANOS debugger and upon TRG posting this debugger code to the Linux community, agrees to grant to SGI the rights to maintain and create derivative works from the MANOS

Re: The case for a standard kernel debugger

2000-09-14 Thread Jeff V. Merkey
I think he did already Keith -- he said he would reject any kernel debugger submissions. :-) Jeff Keith Owens wrote: > > Various people have replied to my note on "The case for a standard > kernel debugger" discussing whether or not it is a good idea. However > o

Re: The case for a standard kernel debugger

2000-09-14 Thread Jeff V. Merkey
I am porting the MANOS debugger to Linux. No changes here. Linus will reject it for the tree, but the offer for SGI and Keith Owens to take it over and merge it with his kdb effort is also genuine. :-) Jeff Daniel Phillips wrote: > > Marco Colombo wrote: > > BTW, a kernel debugger *is*

RE: The case for a standard kernel debugger

2000-09-14 Thread Howell, David P
or there are consequences, it would be difficult to live without one. -Original Message- From: Jeff V. Merkey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 13, 2000 5:57 PM To: Keith Owens Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: The case for a standard kernel debugger Amen

Re: The case for a standard kernel debugger

2000-09-14 Thread Daniel Phillips
Andi Kleen wrote: > > On Thu, Sep 14, 2000 at 02:21:44PM +0200, Daniel Phillips wrote: > > The hardest problem: how do you do the block read? Possibilities: > > > > - Ignore the problem, use normal block device I/O > > - Use the real mode bios, needs V86 support > > And it requires a sync

Re: The case for a standard kernel debugger

2000-09-14 Thread Andi Kleen
On Thu, Sep 14, 2000 at 02:21:44PM +0200, Daniel Phillips wrote: > The hardest problem: how do you do the block read? Possibilities: > > - Ignore the problem, use normal block device I/O > - Use the real mode bios, needs V86 support And it requires a sync before every possible crash to

Re: The case for a standard kernel debugger

2000-09-14 Thread Daniel Phillips
Marco Colombo wrote: > BTW, a kernel debugger *is* available. And maybe even a more powerful > one will be if Jeff decides to port and publicly release it. One that subject, I would *love* to take the time to see how small a subset of Ext2 I could write to have a (mostly) non-invasive source

Re: The case for a standard kernel debugger

2000-09-14 Thread Marco Colombo
On Thu, 14 Sep 2000, Frederic Magniette wrote: [...] > In that way, I think that a kernel debugger could be a powerful coding > tool and not only a patching tool as you say. I don't have enough background to judge on the merits of a kernel debugger. I simply trust Linus' feelings on the

Re: The case for a standard kernel debugger

2000-09-14 Thread Andrew Morton
Frederic Magniette wrote: > > This can be really awful if your code is called very often and then saturate the > logs. One trick you can pull is: if (current->uid == ) printk(stuff); and then exercise the offending code path as user . It works for some things.

Re: The case for a standard kernel debugger

2000-09-14 Thread Frederic Magniette
Marco Colombo wrote: > > > 2) apply tight filters on what people produce (patches, features) not on >how they produce. If Linus is right (and in the end I believe it), >'debugger people' will produce low quality patches (the ones that fix >the syntoms not the problems), and those

Re: The case for a standard kernel debugger

2000-09-14 Thread Marco Colombo
On Wed, 13 Sep 2000, Timur Tabi wrote: > ** Reply to message from Keith Owens <[EMAIL PROTECTED]> on Thu, 14 Sep 2000 > 08:49:50 +1100 > > > > (5) Easier for kernel beginners to learn the kernel internals. Having > > worked on 10+ operating systems over the years, I can testify that > >

Re: The case for a standard kernel debugger

2000-09-14 Thread Andrew Morton
Frederic Magniette wrote: This can be really awful if your code is called very often and then saturate the logs. One trick you can pull is: if (current-uid == ) printk(stuff); and then exercise the offending code path as user . It works for some things. -

Re: The case for a standard kernel debugger

2000-09-14 Thread Marco Colombo
On Thu, 14 Sep 2000, Frederic Magniette wrote: [...] In that way, I think that a kernel debugger could be a powerful coding tool and not only a patching tool as you say. I don't have enough background to judge on the merits of a kernel debugger. I simply trust Linus' feelings on the matter.

Re: The case for a standard kernel debugger

2000-09-14 Thread Daniel Phillips
Marco Colombo wrote: BTW, a kernel debugger *is* available. And maybe even a more powerful one will be if Jeff decides to port and publicly release it. One that subject, I would *love* to take the time to see how small a subset of Ext2 I could write to have a (mostly) non-invasive source code

Re: The case for a standard kernel debugger

2000-09-14 Thread Andi Kleen
On Thu, Sep 14, 2000 at 02:21:44PM +0200, Daniel Phillips wrote: The hardest problem: how do you do the block read? Possibilities: - Ignore the problem, use normal block device I/O - Use the real mode bios, needs V86 support And it requires a sync before every possible crash to ensure

Re: The case for a standard kernel debugger

2000-09-14 Thread Daniel Phillips
Andi Kleen wrote: On Thu, Sep 14, 2000 at 02:21:44PM +0200, Daniel Phillips wrote: The hardest problem: how do you do the block read? Possibilities: - Ignore the problem, use normal block device I/O - Use the real mode bios, needs V86 support And it requires a sync before every

Re: The case for a standard kernel debugger

2000-09-14 Thread Jeff V. Merkey
I am porting the MANOS debugger to Linux. No changes here. Linus will reject it for the tree, but the offer for SGI and Keith Owens to take it over and merge it with his kdb effort is also genuine. :-) Jeff Daniel Phillips wrote: Marco Colombo wrote: BTW, a kernel debugger *is*

Re: The case for a standard kernel debugger

2000-09-14 Thread Jeff V. Merkey
I think he did already Keith -- he said he would reject any kernel debugger submissions. :-) Jeff Keith Owens wrote: Various people have replied to my note on "The case for a standard kernel debugger" discussing whether or not it is a good idea. However only one person's rep

Re: The case for a standard kernel debugger

2000-09-14 Thread Jeff V. Merkey
"TRG hereby offers to SGI Corporation exclusive, unlimimited, perpetual, transferable, licensee rights to the Linux port of the MANOS debugger and upon TRG posting this debugger code to the Linux community, agrees to grant to SGI the rights to maintain and create derivative works from the MANOS

Re: The case for a standard kernel debugger

2000-09-13 Thread Timur Tabi
** Reply to message from Keith Owens <[EMAIL PROTECTED]> on Thu, 14 Sep 2000 08:49:50 +1100 > (5) Easier for kernel beginners to learn the kernel internals. Having > worked on 10+ operating systems over the years, I can testify that > some form of kernel/OS tracing facility is

Re: The case for a standard kernel debugger

2000-09-13 Thread Jeff V. Merkey
Amen Brother Jeff Keith Owens wrote: > > Resend, this time with cc: torvalds. > > This note puts the case for including a kernel debugger in the master > tarballs. These points do not only apply to kdb, they apply to any > kernel debugger. Comments about the perceived deficiencies of

The case for a standard kernel debugger

2000-09-13 Thread Keith Owens
Resend, this time with cc: torvalds. This note puts the case for including a kernel debugger in the master tarballs. These points do not only apply to kdb, they apply to any kernel debugger. Comments about the perceived deficiencies of kdb, kgdb, xmon or any other debugger are not relevant

The case for a standard kernel debugger

2000-09-13 Thread Keith Owens
Resend, this time with cc: torvalds. This note puts the case for including a kernel debugger in the master tarballs. These points do not only apply to kdb, they apply to any kernel debugger. Comments about the perceived deficiencies of kdb, kgdb, xmon or any other debugger are not relevant

Re: The case for a standard kernel debugger

2000-09-13 Thread Jeff V. Merkey
Amen Brother Jeff Keith Owens wrote: Resend, this time with cc: torvalds. This note puts the case for including a kernel debugger in the master tarballs. These points do not only apply to kdb, they apply to any kernel debugger. Comments about the perceived deficiencies of kdb,

Re: The case for a standard kernel debugger

2000-09-13 Thread Timur Tabi
** Reply to message from Keith Owens [EMAIL PROTECTED] on Thu, 14 Sep 2000 08:49:50 +1100 (5) Easier for kernel beginners to learn the kernel internals. Having worked on 10+ operating systems over the years, I can testify that some form of kernel/OS tracing facility is extremely

The case for a standard kernel debugger

2000-09-11 Thread Keith Owens
This note puts the case for including a kernel debugger in the master tarballs. These points do not only apply to kdb, they apply to any kernel debugger. Comments about the perceived deficiencies of kdb, kgdb, xmon or any other debugger are not relevant here, nor are questions about how or when

The case for a standard kernel debugger

2000-09-11 Thread Keith Owens
This note puts the case for including a kernel debugger in the master tarballs. These points do not only apply to kdb, they apply to any kernel debugger. Comments about the perceived deficiencies of kdb, kgdb, xmon or any other debugger are not relevant here, nor are questions about how or when