* Re: [patch 1/1] ipw2100: remove by-hand function entry/exit debugging
[not found] <200509062056.j86KuHcL031448@shell0.pdx.osdl.net>
@ 2005-09-07 1:51 ` Jeff Garzik
2005-09-07 2:41 ` David S. Miller
0 siblings, 1 reply; 6+ messages in thread
From: Jeff Garzik @ 2005-09-07 1:51 UTC (permalink / raw)
To: akpm; +Cc: pavel, ipw2100-admin, pavel, Linux Kernel, Netdev List
akpm@osdl.org wrote:
> From: Pavel Machek <pavel@ucw.cz>
>
> This removes debug prints from entry/exit of functions. Such level of
> debugging should probably be done by gdb or similar.
>
> Signed-off-by: Pavel Machek <pavel@suse.cz>
> Cc: Jeff Garzik <jgarzik@pobox.com>
> Cc: "James P. Ketrenos" <ipw2100-admin@linux.intel.com>
> Signed-off-by: Andrew Morton <akpm@osdl.org>
NAK. Rationale: maintainer's choice. Pavel doesn't get to choose the
debugger of choice for the driver maintainer.
I do this entry/exit stuff in my net and SATA drivers; printk is my
primary method of debugging.
Jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch 1/1] ipw2100: remove by-hand function entry/exit debugging
2005-09-07 1:51 ` [patch 1/1] ipw2100: remove by-hand function entry/exit debugging Jeff Garzik
@ 2005-09-07 2:41 ` David S. Miller
2005-09-07 2:48 ` Jeff Garzik
0 siblings, 1 reply; 6+ messages in thread
From: David S. Miller @ 2005-09-07 2:41 UTC (permalink / raw)
To: jgarzik; +Cc: akpm, pavel, ipw2100-admin, pavel, linux-kernel, netdev
From: Jeff Garzik <jgarzik@pobox.com>
Date: Tue, 06 Sep 2005 21:51:21 -0400
> NAK. Rationale: maintainer's choice. Pavel doesn't get to choose
> the debugger of choice for the driver maintainer.
If it makes the driver unreadable and thus harder to maintain,
I think such changes should seriously be considered.
Most of the DEBUG_INFO macro usage is fine, but those "enter"
and "exit" ones are just pure noise and should be removed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch 1/1] ipw2100: remove by-hand function entry/exit debugging
2005-09-07 2:41 ` David S. Miller
@ 2005-09-07 2:48 ` Jeff Garzik
2005-09-07 13:39 ` Ingo Oeser
0 siblings, 1 reply; 6+ messages in thread
From: Jeff Garzik @ 2005-09-07 2:48 UTC (permalink / raw)
To: David S. Miller; +Cc: akpm, pavel, ipw2100-admin, pavel, linux-kernel, netdev
David S. Miller wrote:
> From: Jeff Garzik <jgarzik@pobox.com>
> Date: Tue, 06 Sep 2005 21:51:21 -0400
>
>
>>NAK. Rationale: maintainer's choice. Pavel doesn't get to choose
>>the debugger of choice for the driver maintainer.
>
>
> If it makes the driver unreadable and thus harder to maintain,
> I think such changes should seriously be considered.
>
> Most of the DEBUG_INFO macro usage is fine, but those "enter"
> and "exit" ones are just pure noise and should be removed.
I find them useful in my own drivers; they are definitely not pure noise.
Jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch 1/1] ipw2100: remove by-hand function entry/exit debugging
2005-09-07 2:48 ` Jeff Garzik
@ 2005-09-07 13:39 ` Ingo Oeser
2005-09-07 20:01 ` David S. Miller
0 siblings, 1 reply; 6+ messages in thread
From: Ingo Oeser @ 2005-09-07 13:39 UTC (permalink / raw)
To: Jeff Garzik
Cc: David S. Miller, akpm, pavel, ipw2100-admin, pavel, linux-kernel,
netdev
Hi Jeff,
Jeff Garzik wrote:
> David S. Miller wrote:
> > From: Jeff Garzik <jgarzik@pobox.com>
> > Date: Tue, 06 Sep 2005 21:51:21 -0400
> >
> >>NAK. Rationale: maintainer's choice. Pavel doesn't get to choose
> >>the debugger of choice for the driver maintainer.
> >
> > If it makes the driver unreadable and thus harder to maintain,
> > I think such changes should seriously be considered.
> >
> > Most of the DEBUG_INFO macro usage is fine, but those "enter"
> > and "exit" ones are just pure noise and should be removed.
>
> I find them useful in my own drivers; they are definitely not pure noise.
gcc -finstrument-functions
can do that completely without adding noise to the sources.
been there, done that. With a gcc-patch you don't even need to
resolve symbols.
Regards
Ingo Oeser
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch 1/1] ipw2100: remove by-hand function entry/exit debugging
2005-09-07 13:39 ` Ingo Oeser
@ 2005-09-07 20:01 ` David S. Miller
2005-09-08 0:52 ` Jeff Garzik
0 siblings, 1 reply; 6+ messages in thread
From: David S. Miller @ 2005-09-07 20:01 UTC (permalink / raw)
To: netdev; +Cc: jgarzik, akpm, pavel, ipw2100-admin, pavel, linux-kernel, netdev
From: Ingo Oeser <netdev@axxeo.de>
Date: Wed, 7 Sep 2005 15:39:08 +0200
> Jeff Garzik wrote:
> > I find them useful in my own drivers; they are definitely not pure noise.
>
> gcc -finstrument-functions
I was going to mention this as well, and also the idea to
enable CONFIG_MCOUNT on a per-file basis.
We should never be doing by hand what can be automated.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch 1/1] ipw2100: remove by-hand function entry/exit debugging
2005-09-07 20:01 ` David S. Miller
@ 2005-09-08 0:52 ` Jeff Garzik
0 siblings, 0 replies; 6+ messages in thread
From: Jeff Garzik @ 2005-09-08 0:52 UTC (permalink / raw)
To: David S. Miller
Cc: netdev, akpm, pavel, ipw2100-admin, pavel, linux-kernel, netdev
David S. Miller wrote:
> From: Ingo Oeser <netdev@axxeo.de>
> Date: Wed, 7 Sep 2005 15:39:08 +0200
>
>
>>Jeff Garzik wrote:
>>
>>>I find them useful in my own drivers; they are definitely not pure noise.
>>
>>gcc -finstrument-functions
>
>
> I was going to mention this as well, and also the idea to
> enable CONFIG_MCOUNT on a per-file basis.
>
> We should never be doing by hand what can be automated.
As long as nobody breaks the primary maintainer's primary method of
debugging, patches are welcome...
Jeff
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-09-08 0:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200509062056.j86KuHcL031448@shell0.pdx.osdl.net>
2005-09-07 1:51 ` [patch 1/1] ipw2100: remove by-hand function entry/exit debugging Jeff Garzik
2005-09-07 2:41 ` David S. Miller
2005-09-07 2:48 ` Jeff Garzik
2005-09-07 13:39 ` Ingo Oeser
2005-09-07 20:01 ` David S. Miller
2005-09-08 0:52 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).