All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5/8]:  Move debugging macro to header file
@ 2006-12-15 10:50 Gerrit Renker
  0 siblings, 0 replies; 15+ messages in thread
From: Gerrit Renker @ 2006-12-15 10:50 UTC (permalink / raw)
  To: dccp

[CCID3]: Move debugging macro to header file

This moves the ccid3_pr_debug macro into the header file,
so that it can be used from other files belonging to the
CCID3 framework as well. 

Thanks to Ian McDonald for the suggestion.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
---
 net/dccp/ccids/ccid3.c |    8 +-------
 net/dccp/ccids/ccid3.h |    7 +++++++
 2 files changed, 8 insertions(+), 7 deletions(-)

--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -41,13 +41,6 @@
 #include "lib/tfrc.h"
 #include "ccid3.h"
 
-#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
-static int ccid3_debug;
-#define ccid3_pr_debug(format, a...)	DCCP_PR_DEBUG(ccid3_debug, format, ##a)
-#else
-#define ccid3_pr_debug(format, a...)
-#endif
-
 static struct dccp_tx_hist *ccid3_tx_hist;
 static struct dccp_rx_hist *ccid3_rx_hist;
 static struct dccp_li_hist *ccid3_li_hist;
@@ -1227,6 +1220,7 @@ static struct ccid_operations ccid3 = {
 };
 
 #ifdef CONFIG_IP_DCCP_CCID3_DEBUG
+int ccid3_debug;
 module_param(ccid3_debug, int, 0444);
 MODULE_PARM_DESC(ccid3_debug, "Enable debug messages");
 #endif
--- a/net/dccp/ccids/ccid3.h
+++ b/net/dccp/ccids/ccid3.h
@@ -61,6 +61,13 @@
 			rtt = CCID3_SANE_RTT_MAX;			   \
 		} 					} while (0)
 
+#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
+extern int ccid3_debug;
+#define ccid3_pr_debug(format, a...)	DCCP_PR_DEBUG(ccid3_debug, format, ##a)
+#else
+#define ccid3_pr_debug(format, a...)
+#endif
+
 enum ccid3_options {
 	TFRC_OPT_LOSS_EVENT_RATE = 192,
 	TFRC_OPT_LOSS_INTERVALS	 = 193,

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
@ 2006-12-15 21:47 Ian McDonald
  2006-12-18  8:23 ` Ian McDonald
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: Ian McDonald @ 2006-12-15 21:47 UTC (permalink / raw)
  To: dccp

On 12/15/06, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> [CCID3]: Move debugging macro to header file
>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
-- 
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
@ 2006-12-18  8:23 ` Ian McDonald
  2006-12-19  8:56 ` Gerrit Renker
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Ian McDonald @ 2006-12-18  8:23 UTC (permalink / raw)
  To: dccp

OK. Go to use this in net/dccp/ccids/lib/loss_interval.c and get this:
WARNING: "ccid3_debug" [net/dccp/ccids/lib/dccp_tfrc_lib.ko] undefined!

So I think I'll just do this in ccid3.c
EXPORT_SYMBOL_GPL(ccid3_debug);

and now I get this:
WARNING: Module
/lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/lib/dccp_tfrc_lib.ko
ignored, due to loop
WARNING: Loop detected:
/home/ian/tmp/lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
needs dccp_tfrc_lib.ko which needs dccp_ccid3.ko again!
WARNING: Module
/lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
ignored, due to loop

Hmm... what to do now? These need refactoring anyway but I was hoping
not to have to do that now.

Regards,

Ian

On 12/15/06, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> [CCID3]: Move debugging macro to header file
>
> This moves the ccid3_pr_debug macro into the header file,
> so that it can be used from other files belonging to the
> CCID3 framework as well.
>
> Thanks to Ian McDonald for the suggestion.
>
> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
> --- a/net/dccp/ccids/ccid3.c
> +++ b/net/dccp/ccids/ccid3.c
> @@ -41,13 +41,6 @@
>  #include "lib/tfrc.h"
>  #include "ccid3.h"
>
> -#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
> -static int ccid3_debug;
> -#define ccid3_pr_debug(format, a...)   DCCP_PR_DEBUG(ccid3_debug, format, ##a)
> -#else
> -#define ccid3_pr_debug(format, a...)
> -#endif
> -
>  static struct dccp_tx_hist *ccid3_tx_hist;
>  static struct dccp_rx_hist *ccid3_rx_hist;
>  static struct dccp_li_hist *ccid3_li_hist;
> @@ -1227,6 +1220,7 @@ static struct ccid_operations ccid3 = {
>  };
>
>  #ifdef CONFIG_IP_DCCP_CCID3_DEBUG
> +int ccid3_debug;
>  module_param(ccid3_debug, int, 0444);
>  MODULE_PARM_DESC(ccid3_debug, "Enable debug messages");
>  #endif
> --- a/net/dccp/ccids/ccid3.h
> +++ b/net/dccp/ccids/ccid3.h
> @@ -61,6 +61,13 @@
>                         rtt = CCID3_SANE_RTT_MAX;                          \
>                 }                                       } while (0)
>
> +#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
> +extern int ccid3_debug;
> +#define ccid3_pr_debug(format, a...)   DCCP_PR_DEBUG(ccid3_debug, format, ##a)
> +#else
> +#define ccid3_pr_debug(format, a...)
> +#endif
> +
>  enum ccid3_options {
>         TFRC_OPT_LOSS_EVENT_RATE = 192,
>         TFRC_OPT_LOSS_INTERVALS  = 193,
> -

-- 
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
  2006-12-18  8:23 ` Ian McDonald
@ 2006-12-19  8:56 ` Gerrit Renker
  2006-12-19  9:58 ` Ian McDonald
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Gerrit Renker @ 2006-12-19  8:56 UTC (permalink / raw)
  To: dccp

Shame on me - I think I forgot the EXPORT_SYMBOL. Can you please try the latest uploaded
version - I have fixed it there. 
Gerrit

Quoting Ian McDonald:
|  OK. Go to use this in net/dccp/ccids/lib/loss_interval.c and get this:
|  WARNING: "ccid3_debug" [net/dccp/ccids/lib/dccp_tfrc_lib.ko] undefined!
|  
|  So I think I'll just do this in ccid3.c
|  EXPORT_SYMBOL_GPL(ccid3_debug);
|  
|  and now I get this:
|  WARNING: Module
|  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/lib/dccp_tfrc_lib.ko
|  ignored, due to loop
|  WARNING: Loop detected:
|  /home/ian/tmp/lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
|  needs dccp_tfrc_lib.ko which needs dccp_ccid3.ko again!
|  WARNING: Module
|  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
|  ignored, due to loop
|  
|  Hmm... what to do now? These need refactoring anyway but I was hoping
|  not to have to do that now.
|  
|  Regards,
|  
|  Ian
|  
|  On 12/15/06, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
|  > [CCID3]: Move debugging macro to header file
|  >
|  > This moves the ccid3_pr_debug macro into the header file,
|  > so that it can be used from other files belonging to the
|  > CCID3 framework as well.
|  >
|  > Thanks to Ian McDonald for the suggestion.
|  >
|  > Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
|  > --- a/net/dccp/ccids/ccid3.c
|  > +++ b/net/dccp/ccids/ccid3.c
|  > @@ -41,13 +41,6 @@
|  >  #include "lib/tfrc.h"
|  >  #include "ccid3.h"
|  >
|  > -#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
|  > -static int ccid3_debug;
|  > -#define ccid3_pr_debug(format, a...)   DCCP_PR_DEBUG(ccid3_debug, format, ##a)
|  > -#else
|  > -#define ccid3_pr_debug(format, a...)
|  > -#endif
|  > -
|  >  static struct dccp_tx_hist *ccid3_tx_hist;
|  >  static struct dccp_rx_hist *ccid3_rx_hist;
|  >  static struct dccp_li_hist *ccid3_li_hist;
|  > @@ -1227,6 +1220,7 @@ static struct ccid_operations ccid3 = {
|  >  };
|  >
|  >  #ifdef CONFIG_IP_DCCP_CCID3_DEBUG
|  > +int ccid3_debug;
|  >  module_param(ccid3_debug, int, 0444);
|  >  MODULE_PARM_DESC(ccid3_debug, "Enable debug messages");
|  >  #endif
|  > --- a/net/dccp/ccids/ccid3.h
|  > +++ b/net/dccp/ccids/ccid3.h
|  > @@ -61,6 +61,13 @@
|  >                         rtt = CCID3_SANE_RTT_MAX;                          \
|  >                 }                                       } while (0)
|  >
|  > +#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
|  > +extern int ccid3_debug;
|  > +#define ccid3_pr_debug(format, a...)   DCCP_PR_DEBUG(ccid3_debug, format, ##a)
|  > +#else
|  > +#define ccid3_pr_debug(format, a...)
|  > +#endif
|  > +
|  >  enum ccid3_options {
|  >         TFRC_OPT_LOSS_EVENT_RATE = 192,
|  >         TFRC_OPT_LOSS_INTERVALS  = 193,
|  > -
|  

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
  2006-12-18  8:23 ` Ian McDonald
  2006-12-19  8:56 ` Gerrit Renker
@ 2006-12-19  9:58 ` Ian McDonald
  2006-12-19 10:09 ` Gerrit Renker
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Ian McDonald @ 2006-12-19  9:58 UTC (permalink / raw)
  To: dccp

On 12/19/06, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> Shame on me - I think I forgot the EXPORT_SYMBOL. Can you please try the latest uploaded
> version - I have fixed it there.
> Gerrit

But the EXPORT_SYMBOL_GPL doesn't fix this:
> |  and now I get this:
> |  WARNING: Module
> |  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/lib/dccp_tfrc_lib.ko
> |  ignored, due to loop
> |  WARNING: Loop detected:
> |  /home/ian/tmp/lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
> |  needs dccp_tfrc_lib.ko which needs dccp_ccid3.ko again!
> |  WARNING: Module
> |  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
> |  ignored, due to loop
> |
-- 
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (2 preceding siblings ...)
  2006-12-19  9:58 ` Ian McDonald
@ 2006-12-19 10:09 ` Gerrit Renker
  2006-12-19 17:59 ` Ian McDonald
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Gerrit Renker @ 2006-12-19 10:09 UTC (permalink / raw)
  To: dccp

Can you please tell me what exactly you are using -- on my computer it compiles without a single error.
 
|  But the EXPORT_SYMBOL_GPL doesn't fix this:
|  > |  and now I get this:
|  > |  WARNING: Module
|  > |  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/lib/dccp_tfrc_lib.ko
|  > |  ignored, due to loop
|  > |  WARNING: Loop detected:
|  > |  /home/ian/tmp/lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
|  > |  needs dccp_tfrc_lib.ko which needs dccp_ccid3.ko again!
|  > |  WARNING: Module
|  > |  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
|  > |  ignored, due to loop
|  > |

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (3 preceding siblings ...)
  2006-12-19 10:09 ` Gerrit Renker
@ 2006-12-19 17:59 ` Ian McDonald
  2006-12-19 21:57 ` Arnaldo Carvalho de Melo
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Ian McDonald @ 2006-12-19 17:59 UTC (permalink / raw)
  To: dccp

Gerrit,

From memory it is when I do make modules_install that it fails as it
is a linking issue not a compiling issue. The relevant part of the
config is that I've got CCID3 debugging turned on of course.

Ian

On 12/19/06, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> Can you please tell me what exactly you are using -- on my computer it compiles without a single error.
>
> |  But the EXPORT_SYMBOL_GPL doesn't fix this:
> |  > |  and now I get this:
> |  > |  WARNING: Module
> |  > |  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/lib/dccp_tfrc_lib.ko
> |  > |  ignored, due to loop
> |  > |  WARNING: Loop detected:
> |  > |  /home/ian/tmp/lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
> |  > |  needs dccp_tfrc_lib.ko which needs dccp_ccid3.ko again!
> |  > |  WARNING: Module
> |  > |  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
> |  > |  ignored, due to loop
> |  > |
>


-- 
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (4 preceding siblings ...)
  2006-12-19 17:59 ` Ian McDonald
@ 2006-12-19 21:57 ` Arnaldo Carvalho de Melo
  2006-12-19 22:14 ` Ian McDonald
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Arnaldo Carvalho de Melo @ 2006-12-19 21:57 UTC (permalink / raw)
  To: dccp

On 12/19/06, Ian McDonald <ian.mcdonald@jandi.co.nz> wrote:
> Gerrit,
>
> From memory it is when I do make modules_install that it fails as it
> is a linking issue not a compiling issue. The relevant part of the
> config is that I've got CCID3 debugging turned on of course.

The loop comes because dccp_ccid3.ko needs symbols provided by
dccp_tfrc_lib.ko, so if we try to export ccid3_pr_debug to be used by
dccp_tfrc_lib.ko we'll get the loop, so I guess the right thing to do
is to introduce tfrc_pr_debug, that will give us more flexibility,
allowing one to select ccid3 debugging, tfrc debugging, both or none.

- Arnaldo

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (5 preceding siblings ...)
  2006-12-19 21:57 ` Arnaldo Carvalho de Melo
@ 2006-12-19 22:14 ` Ian McDonald
  2006-12-19 22:21 ` Arnaldo Carvalho de Melo
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Ian McDonald @ 2006-12-19 22:14 UTC (permalink / raw)
  To: dccp

On 12/20/06, Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> wrote:
> The loop comes because dccp_ccid3.ko needs symbols provided by
> dccp_tfrc_lib.ko, so if we try to export ccid3_pr_debug to be used by
> dccp_tfrc_lib.ko we'll get the loop, so I guess the right thing to do
> is to introduce tfrc_pr_debug, that will give us more flexibility,
> allowing one to select ccid3 debugging, tfrc debugging, both or none.
>
> - Arnaldo
>
I think the right thing to do is not to introduce another level of debugging.

People want to debug or they don't in my opinion. I think we should do
away with ccid3_pr_debug and ccid2_pr_debug. I always turn them all on
or all off when working with testing (or add my own statements in).

Ian
-- 
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (6 preceding siblings ...)
  2006-12-19 22:14 ` Ian McDonald
@ 2006-12-19 22:21 ` Arnaldo Carvalho de Melo
  2006-12-19 22:38 ` Ian McDonald
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Arnaldo Carvalho de Melo @ 2006-12-19 22:21 UTC (permalink / raw)
  To: dccp

On 12/19/06, Ian McDonald <ian.mcdonald@jandi.co.nz> wrote:
> On 12/20/06, Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> wrote:
> > The loop comes because dccp_ccid3.ko needs symbols provided by
> > dccp_tfrc_lib.ko, so if we try to export ccid3_pr_debug to be used by
> > dccp_tfrc_lib.ko we'll get the loop, so I guess the right thing to do
> > is to introduce tfrc_pr_debug, that will give us more flexibility,
> > allowing one to select ccid3 debugging, tfrc debugging, both or none.
> >
> > - Arnaldo
> >
> I think the right thing to do is not to introduce another level of debugging.
>
> People want to debug or they don't in my opinion. I think we should do
> away with ccid3_pr_debug and ccid2_pr_debug. I always turn them all on
> or all off when working with testing (or add my own statements in).

If the way to go is a boolean, i.e. to debug or not to debug we have
to remove ccid{2,3}_pr_debug and stick to using dccp_pr_debug
everywhere, that would eliminate the loop as dccp.ko doesn't directly
uses any code from dccp_ipv[4,6]. ccid[2, 3] or tfrc.

But I think that being able to debug just the dccp core, or just
ccid3, or just tfrc is better.

- Arnaldo

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (7 preceding siblings ...)
  2006-12-19 22:21 ` Arnaldo Carvalho de Melo
@ 2006-12-19 22:38 ` Ian McDonald
  2006-12-19 22:53 ` Arnaldo Carvalho de Melo
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Ian McDonald @ 2006-12-19 22:38 UTC (permalink / raw)
  To: dccp

On 12/20/06, Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> wrote:
> > I think the right thing to do is not to introduce another level of debugging.
> >
> > People want to debug or they don't in my opinion. I think we should do
> > away with ccid3_pr_debug and ccid2_pr_debug. I always turn them all on
> > or all off when working with testing (or add my own statements in).
>
> If the way to go is a boolean, i.e. to debug or not to debug we have
> to remove ccid{2,3}_pr_debug and stick to using dccp_pr_debug
> everywhere, that would eliminate the loop as dccp.ko doesn't directly
> uses any code from dccp_ipv[4,6]. ccid[2, 3] or tfrc.
>
Agree and that's what I prefer.

> But I think that being able to debug just the dccp core, or just
> ccid3, or just tfrc is better.
>
I'll go with your choice on this one. In the interim I'll carry on
using dccp_pr_debug for tfrc debugging as short on time.

Ian
-- 
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (8 preceding siblings ...)
  2006-12-19 22:38 ` Ian McDonald
@ 2006-12-19 22:53 ` Arnaldo Carvalho de Melo
  2006-12-19 23:08 ` Ian McDonald
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: Arnaldo Carvalho de Melo @ 2006-12-19 22:53 UTC (permalink / raw)
  To: dccp

On 12/19/06, Ian McDonald <ian.mcdonald@jandi.co.nz> wrote:
> On 12/20/06, Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> wrote:
> > > I think the right thing to do is not to introduce another level of debugging.
> > >
> > > People want to debug or they don't in my opinion. I think we should do
> > > away with ccid3_pr_debug and ccid2_pr_debug. I always turn them all on
> > > or all off when working with testing (or add my own statements in).
> >
> > If the way to go is a boolean, i.e. to debug or not to debug we have
> > to remove ccid{2,3}_pr_debug and stick to using dccp_pr_debug
> > everywhere, that would eliminate the loop as dccp.ko doesn't directly
> > uses any code from dccp_ipv[4,6]. ccid[2, 3] or tfrc.
> >
> Agree and that's what I prefer.
>
> > But I think that being able to debug just the dccp core, or just
> > ccid3, or just tfrc is better.
> >
> I'll go with your choice on this one. In the interim I'll carry on
> using dccp_pr_debug for tfrc debugging as short on time.

Agreed, in the short term just use dccp_pr_debug in tfrc, it should just work.

- Arnaldo

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (9 preceding siblings ...)
  2006-12-19 22:53 ` Arnaldo Carvalho de Melo
@ 2006-12-19 23:08 ` Ian McDonald
  2006-12-21 11:52 ` Gerrit Renker
  2006-12-28  4:48 ` Ian McDonald
  12 siblings, 0 replies; 15+ messages in thread
From: Ian McDonald @ 2006-12-19 23:08 UTC (permalink / raw)
  To: dccp

On 12/20/06, Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> wrote:
> Agreed, in the short term just use dccp_pr_debug in tfrc, it should just work.
>
Yes it does.
-- 
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (10 preceding siblings ...)
  2006-12-19 23:08 ` Ian McDonald
@ 2006-12-21 11:52 ` Gerrit Renker
  2006-12-28  4:48 ` Ian McDonald
  12 siblings, 0 replies; 15+ messages in thread
From: Gerrit Renker @ 2006-12-21 11:52 UTC (permalink / raw)
  To: dccp

You are right, I have tested this. Given that this patch is of no use then, 
I would like to retract it (it is no longer online).
With regard to the short-term solution: at some point of time, say middle
January ... begin February, I would like to toss out all unnecessary debugging
statements in ccid3 - the amount of debugging output at the moment is enormous
and overwhelming.

Quoting Ian McDonald:
|  Gerrit,
|  
|  From memory it is when I do make modules_install that it fails as it
|  is a linking issue not a compiling issue. The relevant part of the
|  config is that I've got CCID3 debugging turned on of course.
|  
|  Ian
|  
|  On 12/19/06, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
|  > Can you please tell me what exactly you are using -- on my computer it compiles without a single error.
|  >
|  > |  But the EXPORT_SYMBOL_GPL doesn't fix this:
|  > |  > |  and now I get this:
|  > |  > |  WARNING: Module
|  > |  > |  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/lib/dccp_tfrc_lib.ko
|  > |  > |  ignored, due to loop
|  > |  > |  WARNING: Loop detected:
|  > |  > |  /home/ian/tmp/lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
|  > |  > |  needs dccp_tfrc_lib.ko which needs dccp_ccid3.ko again!
|  > |  > |  WARNING: Module
|  > |  > |  /lib/modules/2.6.20-rc1davem20/kernel/net/dccp/ccids/dccp_ccid3.ko
|  > |  > |  ignored, due to loop
|  > |  > |
|  >
|  
|  

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 5/8]: Move debugging macro to header file
  2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
                   ` (11 preceding siblings ...)
  2006-12-21 11:52 ` Gerrit Renker
@ 2006-12-28  4:48 ` Ian McDonald
  12 siblings, 0 replies; 15+ messages in thread
From: Ian McDonald @ 2006-12-28  4:48 UTC (permalink / raw)
  To: dccp

On 12/22/06, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> You are right, I have tested this. Given that this patch is of no use then,
> I would like to retract it (it is no longer online).
> With regard to the short-term solution: at some point of time, say middle
> January ... begin February, I would like to toss out all unnecessary debugging
> statements in ccid3 - the amount of debugging output at the moment is enormous
> and overwhelming.
>
I'm finding the amount of debugging output great but understand where
you are coming from...

I'm happy to get them removed once we fix up a few more issues. If
people want it removed sooner I can always put the debugging in my own
tree.

Ian
-- 
Web: http://wand.net.nz/~iam4
Blog: http://imcdnzl.blogspot.com
WAND Network Research Group

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-12-28  4:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-15 21:47 [PATCH 5/8]: Move debugging macro to header file Ian McDonald
2006-12-18  8:23 ` Ian McDonald
2006-12-19  8:56 ` Gerrit Renker
2006-12-19  9:58 ` Ian McDonald
2006-12-19 10:09 ` Gerrit Renker
2006-12-19 17:59 ` Ian McDonald
2006-12-19 21:57 ` Arnaldo Carvalho de Melo
2006-12-19 22:14 ` Ian McDonald
2006-12-19 22:21 ` Arnaldo Carvalho de Melo
2006-12-19 22:38 ` Ian McDonald
2006-12-19 22:53 ` Arnaldo Carvalho de Melo
2006-12-19 23:08 ` Ian McDonald
2006-12-21 11:52 ` Gerrit Renker
2006-12-28  4:48 ` Ian McDonald
  -- strict thread matches above, loose matches on Subject: below --
2006-12-15 10:50 Gerrit Renker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.