Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32)
@ 2009-04-29  6:39 srikanth krishnakar
  2009-04-29  6:39 ` srikanth krishnakar
  2009-04-29 12:42 ` Mathieu Desnoyers
  0 siblings, 2 replies; 9+ messages in thread
From: srikanth krishnakar @ 2009-04-29  6:39 UTC (permalink / raw)


Hi Mathieu,

Testing with latest LTTng verison 2.6.29-lttng-0.122  for kernel
linux-2.6.29 gives following compile error for PowerPC architecture :

---------------------------
LTTng : 2.6.29-lttng-0.122
Kernel : Linux-2.6.29
Arch: PPC_32
Toolchain: ppc_440
---------------------------

In file included from include/linux/trace-clock.h:13,
                 from include/linux/ltt-tracer.h:22,
                 from kernel/marker.c:29:
linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
?trace_clock_read32?:
linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:18: error:
implicit declaration of function ?get_tbl?
linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
?trace_clock_read64?:
linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:23: error:
implicit declaration of function ?get_tb?
make[1]: *** [kernel/marker.o] Error 1
make: *** [kernel] Error 2

This error is first seen in :

*2.6.29-rc8-lttng-0.112

Continues till 2.6.29-lttng-0.122
*

As per your earlier request I am attaching the default .config used while
compilation.


Can you please submit a fix for this error ???

Regards
Srikanth Krishnakar
**********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090429/e4e96b22/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lttng-2.6.29-config
Type: application/octet-stream
Size: 31437 bytes
Desc: not available
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090429/e4e96b22/attachment-0003.obj>


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

* [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32)
  2009-04-29  6:39 [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32) srikanth krishnakar
@ 2009-04-29  6:39 ` srikanth krishnakar
  2009-04-29 12:42 ` Mathieu Desnoyers
  1 sibling, 0 replies; 9+ messages in thread
From: srikanth krishnakar @ 2009-04-29  6:39 UTC (permalink / raw)


Hi Mathieu,

Testing with latest LTTng verison 2.6.29-lttng-0.122  for kernel
linux-2.6.29 gives following compile error for PowerPC architecture :

---------------------------
LTTng : 2.6.29-lttng-0.122
Kernel : Linux-2.6.29
Arch: PPC_32
Toolchain: ppc_440
---------------------------

In file included from include/linux/trace-clock.h:13,
                 from include/linux/ltt-tracer.h:22,
                 from kernel/marker.c:29:
linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
?trace_clock_read32?:
linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:18: error:
implicit declaration of function ?get_tbl?
linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
?trace_clock_read64?:
linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:23: error:
implicit declaration of function ?get_tb?
make[1]: *** [kernel/marker.o] Error 1
make: *** [kernel] Error 2

This error is first seen in :

*2.6.29-rc8-lttng-0.112

Continues till 2.6.29-lttng-0.122
*

As per your earlier request I am attaching the default .config used while
compilation.


Can you please submit a fix for this error ???

Regards
Srikanth Krishnakar
**********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090429/e4e96b22/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lttng-2.6.29-config
Type: application/octet-stream
Size: 31437 bytes
Desc: not available
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090429/e4e96b22/attachment-0002.obj>


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

* [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32)
  2009-04-29  6:39 [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32) srikanth krishnakar
  2009-04-29  6:39 ` srikanth krishnakar
@ 2009-04-29 12:42 ` Mathieu Desnoyers
  2009-04-29 12:58   ` srikanth krishnakar
  1 sibling, 1 reply; 9+ messages in thread
From: Mathieu Desnoyers @ 2009-04-29 12:42 UTC (permalink / raw)


* srikanth krishnakar (skrishnakar at gmail.com) wrote:
> Hi Mathieu,
> 
> Testing with latest LTTng verison 2.6.29-lttng-0.122  for kernel
> linux-2.6.29 gives following compile error for PowerPC architecture :
> 
> ---------------------------
> LTTng : 2.6.29-lttng-0.122
> Kernel : Linux-2.6.29
> Arch: PPC_32
> Toolchain: ppc_440
> ---------------------------
> 
> In file included from include/linux/trace-clock.h:13,
>                  from include/linux/ltt-tracer.h:22,
>                  from kernel/marker.c:29:
> linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> ?trace_clock_read32?:
> linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:18: error:
> implicit declaration of function ?get_tbl?
> linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> ?trace_clock_read64?:
> linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:23: error:
> implicit declaration of function ?get_tb?
> make[1]: *** [kernel/marker.o] Error 1
> make: *** [kernel] Error 2
> 
> This error is first seen in :
> 
> *2.6.29-rc8-lttng-0.112
> 
> Continues till 2.6.29-lttng-0.122
> *
> 
> As per your earlier request I am attaching the default .config used while
> compilation.
> 
> 
> Can you please submit a fix for this error ???
> 

Yes, I think I'll need your full .config.

And please try 2.6.29.1-lttng-0.124, just to be sure. I remember doing a
fix in this area not so long ago, but looking at my current powerpc
trace-clock.h there seems to be no obvious change since lttng 0.112.

Mathieu

> Regards
> Srikanth Krishnakar
> **********************


> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev


-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




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

* [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32)
  2009-04-29 12:42 ` Mathieu Desnoyers
@ 2009-04-29 12:58   ` srikanth krishnakar
  2009-04-29 12:58     ` srikanth krishnakar
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: srikanth krishnakar @ 2009-04-29 12:58 UTC (permalink / raw)


Hi Mathieu,

On Wed, Apr 29, 2009 at 6:12 PM, Mathieu Desnoyers <
compudj at krystal.dyndns.org> wrote:

> * srikanth krishnakar (skrishnakar at gmail.com) wrote:
> > Hi Mathieu,
> >
> > Testing with latest LTTng verison 2.6.29-lttng-0.122  for kernel
> > linux-2.6.29 gives following compile error for PowerPC architecture :
> >
> > ---------------------------
> > LTTng : 2.6.29-lttng-0.122
> > Kernel : Linux-2.6.29
> > Arch: PPC_32
> > Toolchain: ppc_440
> > ---------------------------
> >
> > In file included from include/linux/trace-clock.h:13,
> >                  from include/linux/ltt-tracer.h:22,
> >                  from kernel/marker.c:29:
> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> > ?trace_clock_read32?:
> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:18: error:
> > implicit declaration of function ?get_tbl?
> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> > ?trace_clock_read64?:
> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:23: error:
> > implicit declaration of function ?get_tb?
> > make[1]: *** [kernel/marker.o] Error 1
> > make: *** [kernel] Error 2
> >
> > This error is first seen in :
> >
> > *2.6.29-rc8-lttng-0.112
> >
> > Continues till 2.6.29-lttng-0.122
> > *
> >
> > As per your earlier request I am attaching the default .config used while
> > compilation.
> >
> >
> > Can you please submit a fix for this error ???
> >
>
> Yes, I think I'll need your full .config.
>
> And please try 2.6.29.1-lttng-0.124, just to be sure. I remember doing a
> fix in this area not so long ago, but looking at my current powerpc
> trace-clock.h there seems to be no obvious change since lttng 0.112.


For LTTng 2.6.29-lttng-0.124 I see the same errors as shown below:

In file included from include/linux/trace-clock.h:13,
                 from include/linux/ltt-tracer.h:22,
                 from kernel/marker.c:29:
linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
?trace_clock_read32?:
linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:18: error: implicit
declaration of function ?get_tbl?
linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
?trace_clock_read64?:
linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:23: error: implicit
declaration of function ?get_tb?
make[1]: *** [kernel/marker.o] Error 1
make: *** [kernel] Error 2
[root at srikant linux-2.6-lttng]#

Seems still the error exists.

-Srikanth

>
>
> Mathieu
>
> > Regards
> > Srikanth Krishnakar
> > **********************
>
>
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
>
> --
> Mathieu Desnoyers
> OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
>



-- 
"The Good You Do, The Best You GET"

Regards
Srikanth Krishnakar
**********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090429/9a9c8806/attachment-0002.htm>


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

* [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32)
  2009-04-29 12:58   ` srikanth krishnakar
@ 2009-04-29 12:58     ` srikanth krishnakar
  2009-04-29 13:30     ` Mathieu Desnoyers
  2009-04-29 13:43     ` srikanth krishnakar
  2 siblings, 0 replies; 9+ messages in thread
From: srikanth krishnakar @ 2009-04-29 12:58 UTC (permalink / raw)


Hi Mathieu,

On Wed, Apr 29, 2009 at 6:12 PM, Mathieu Desnoyers <
compudj at krystal.dyndns.org> wrote:

> * srikanth krishnakar (skrishnakar at gmail.com) wrote:
> > Hi Mathieu,
> >
> > Testing with latest LTTng verison 2.6.29-lttng-0.122  for kernel
> > linux-2.6.29 gives following compile error for PowerPC architecture :
> >
> > ---------------------------
> > LTTng : 2.6.29-lttng-0.122
> > Kernel : Linux-2.6.29
> > Arch: PPC_32
> > Toolchain: ppc_440
> > ---------------------------
> >
> > In file included from include/linux/trace-clock.h:13,
> >                  from include/linux/ltt-tracer.h:22,
> >                  from kernel/marker.c:29:
> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> > ?trace_clock_read32?:
> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:18: error:
> > implicit declaration of function ?get_tbl?
> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> > ?trace_clock_read64?:
> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:23: error:
> > implicit declaration of function ?get_tb?
> > make[1]: *** [kernel/marker.o] Error 1
> > make: *** [kernel] Error 2
> >
> > This error is first seen in :
> >
> > *2.6.29-rc8-lttng-0.112
> >
> > Continues till 2.6.29-lttng-0.122
> > *
> >
> > As per your earlier request I am attaching the default .config used while
> > compilation.
> >
> >
> > Can you please submit a fix for this error ???
> >
>
> Yes, I think I'll need your full .config.
>
> And please try 2.6.29.1-lttng-0.124, just to be sure. I remember doing a
> fix in this area not so long ago, but looking at my current powerpc
> trace-clock.h there seems to be no obvious change since lttng 0.112.


For LTTng 2.6.29-lttng-0.124 I see the same errors as shown below:

In file included from include/linux/trace-clock.h:13,
                 from include/linux/ltt-tracer.h:22,
                 from kernel/marker.c:29:
linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
?trace_clock_read32?:
linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:18: error: implicit
declaration of function ?get_tbl?
linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
?trace_clock_read64?:
linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:23: error: implicit
declaration of function ?get_tb?
make[1]: *** [kernel/marker.o] Error 1
make: *** [kernel] Error 2
[root at srikant linux-2.6-lttng]#

Seems still the error exists.

-Srikanth

>
>
> Mathieu
>
> > Regards
> > Srikanth Krishnakar
> > **********************
>
>
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
>
> --
> Mathieu Desnoyers
> OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
>



-- 
"The Good You Do, The Best You GET"

Regards
Srikanth Krishnakar
**********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090429/9a9c8806/attachment-0003.htm>


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

* [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32)
  2009-04-29 12:58   ` srikanth krishnakar
  2009-04-29 12:58     ` srikanth krishnakar
@ 2009-04-29 13:30     ` Mathieu Desnoyers
  2009-04-29 13:43     ` srikanth krishnakar
  2 siblings, 0 replies; 9+ messages in thread
From: Mathieu Desnoyers @ 2009-04-29 13:30 UTC (permalink / raw)


* srikanth krishnakar (skrishnakar at gmail.com) wrote:
> Hi Mathieu,
> 
> On Wed, Apr 29, 2009 at 6:12 PM, Mathieu Desnoyers <
> compudj at krystal.dyndns.org> wrote:
> 
> > * srikanth krishnakar (skrishnakar at gmail.com) wrote:
> > > Hi Mathieu,
> > >
> > > Testing with latest LTTng verison 2.6.29-lttng-0.122  for kernel
> > > linux-2.6.29 gives following compile error for PowerPC architecture :
> > >
> > > ---------------------------
> > > LTTng : 2.6.29-lttng-0.122
> > > Kernel : Linux-2.6.29
> > > Arch: PPC_32
> > > Toolchain: ppc_440
> > > ---------------------------
> > >
> > > In file included from include/linux/trace-clock.h:13,
> > >                  from include/linux/ltt-tracer.h:22,
> > >                  from kernel/marker.c:29:
> > > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> > > ?trace_clock_read32?:
> > > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:18: error:
> > > implicit declaration of function ?get_tbl?
> > > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> > > ?trace_clock_read64?:
> > > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:23: error:
> > > implicit declaration of function ?get_tb?
> > > make[1]: *** [kernel/marker.o] Error 1
> > > make: *** [kernel] Error 2
> > >
> > > This error is first seen in :
> > >
> > > *2.6.29-rc8-lttng-0.112
> > >
> > > Continues till 2.6.29-lttng-0.122
> > > *
> > >
> > > As per your earlier request I am attaching the default .config used while
> > > compilation.
> > >
> > >
> > > Can you please submit a fix for this error ???
> > >
> >
> > Yes, I think I'll need your full .config.
> >
> > And please try 2.6.29.1-lttng-0.124, just to be sure. I remember doing a
> > fix in this area not so long ago, but looking at my current powerpc
> > trace-clock.h there seems to be no obvious change since lttng 0.112.
> 
> 
> For LTTng 2.6.29-lttng-0.124 I see the same errors as shown below:
> 
> In file included from include/linux/trace-clock.h:13,
>                  from include/linux/ltt-tracer.h:22,
>                  from kernel/marker.c:29:
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> ?trace_clock_read32?:
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:18: error: implicit
> declaration of function ?get_tbl?
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> ?trace_clock_read64?:
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:23: error: implicit
> declaration of function ?get_tb?
> make[1]: *** [kernel/marker.o] Error 1
> make: *** [kernel] Error 2
> [root at srikant linux-2.6-lttng]#
> 
> Seems still the error exists.
> 
> -Srikanth
> 

Can you try adding :

#include <asm/time.h>

at the beginning of arch/powerpc/include/asm/trace-clock.h ?

If it works, I'll release a fix.

Thanks,

Mathieu

> >
> >
> > Mathieu
> >
> > > Regards
> > > Srikanth Krishnakar
> > > **********************
> >
> >
> > > _______________________________________________
> > > ltt-dev mailing list
> > > ltt-dev at lists.casi.polymtl.ca
> > > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> >
> >
> > --
> > Mathieu Desnoyers
> > OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
> >
> 
> 
> 
> -- 
> "The Good You Do, The Best You GET"
> 
> Regards
> Srikanth Krishnakar
> **********************

> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev


-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




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

* [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32)
  2009-04-29 12:58   ` srikanth krishnakar
  2009-04-29 12:58     ` srikanth krishnakar
  2009-04-29 13:30     ` Mathieu Desnoyers
@ 2009-04-29 13:43     ` srikanth krishnakar
  2009-04-29 13:43       ` srikanth krishnakar
  2009-04-29 18:45       ` Mathieu Desnoyers
  2 siblings, 2 replies; 9+ messages in thread
From: srikanth krishnakar @ 2009-04-29 13:43 UTC (permalink / raw)


Hi Mathieu,

Here is a proposed fix for the compilation error:

Date: Tue, 28 Apr 2009 21:29:09 +0530
Subject: [PATCH] lttng: powerpc trace-clock.h include <asm/time.h> for
get_tbl

Make get_tbl() and get_tb() known to powerpc <asm/trace-clock.h> by
having it include <asm/time.h> (where get_tbl() and get_tb() are defined).

This fixes compiler errors when get_tbl() and get_tb() were referenced
by <asm/trace-clock.h> without being defined.

On the other hand, <asm/processor.h> was needlessly included.  Remove it.

---
 arch/powerpc/include/asm/trace-clock.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/include/asm/trace-clock.h
b/arch/powerpc/include/asm/trace-clock.h
index 9aee572..b0b4e21 100644
--- a/arch/powerpc/include/asm/trace-clock.h
+++ b/arch/powerpc/include/asm/trace-clock.h
@@ -11,7 +11,7 @@

 #include <linux/timex.h>
 #include <linux/time.h>
-#include <asm/processor.h>
+#include <asm/time.h>

 static inline u32 trace_clock_read32(void)
 {


This fixes the compiles error on powerpc.

Thanks,
-Srikanth

-- 


On Wed, Apr 29, 2009 at 6:28 PM, srikanth krishnakar
<skrishnakar at gmail.com>wrote:

> Hi Mathieu,
>
> On Wed, Apr 29, 2009 at 6:12 PM, Mathieu Desnoyers <
> compudj at krystal.dyndns.org> wrote:
>
>> * srikanth krishnakar (skrishnakar at gmail.com) wrote:
>> > Hi Mathieu,
>> >
>> > Testing with latest LTTng verison 2.6.29-lttng-0.122  for kernel
>> > linux-2.6.29 gives following compile error for PowerPC architecture :
>> >
>> > ---------------------------
>> > LTTng : 2.6.29-lttng-0.122
>> > Kernel : Linux-2.6.29
>> > Arch: PPC_32
>> > Toolchain: ppc_440
>> > ---------------------------
>> >
>> > In file included from include/linux/trace-clock.h:13,
>> >                  from include/linux/ltt-tracer.h:22,
>> >                  from kernel/marker.c:29:
>> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
>> > ?trace_clock_read32?:
>> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:18: error:
>> > implicit declaration of function ?get_tbl?
>> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
>> > ?trace_clock_read64?:
>> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:23: error:
>> > implicit declaration of function ?get_tb?
>> > make[1]: *** [kernel/marker.o] Error 1
>> > make: *** [kernel] Error 2
>> >
>> > This error is first seen in :
>> >
>> > *2.6.29-rc8-lttng-0.112
>> >
>> > Continues till 2.6.29-lttng-0.122
>> > *
>> >
>> > As per your earlier request I am attaching the default .config used
>> while
>> > compilation.
>> >
>> >
>> > Can you please submit a fix for this error ???
>> >
>>
>> Yes, I think I'll need your full .config.
>>
>> And please try 2.6.29.1-lttng-0.124, just to be sure. I remember doing a
>> fix in this area not so long ago, but looking at my current powerpc
>> trace-clock.h there seems to be no obvious change since lttng 0.112.
>
>
> For LTTng 2.6.29-lttng-0.124 I see the same errors as shown below:
>
> In file included from include/linux/trace-clock.h:13,
>                  from include/linux/ltt-tracer.h:22,
>                  from kernel/marker.c:29:
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> ?trace_clock_read32?:
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:18: error: implicit
> declaration of function ?get_tbl?
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> ?trace_clock_read64?:
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:23: error: implicit
> declaration of function ?get_tb?
> make[1]: *** [kernel/marker.o] Error 1
> make: *** [kernel] Error 2
> [root at srikant linux-2.6-lttng]#
>
> Seems still the error exists.
>
> -Srikanth
>
>>
>>
>> Mathieu
>>
>> > Regards
>> > Srikanth Krishnakar
>> > **********************
>>
>>
>> > _______________________________________________
>> > ltt-dev mailing list
>> > ltt-dev at lists.casi.polymtl.ca
>> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>>
>> --
>> Mathieu Desnoyers
>> OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE
>> 9A68
>>
>
>
>
> --
> "The Good You Do, The Best You GET"
>
> Regards
> Srikanth Krishnakar
> **********************
>



-- 
"The Good You Do, The Best You GET"

Regards
Srikanth Krishnakar
**********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090429/06fb55aa/attachment-0003.htm>


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

* [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32)
  2009-04-29 13:43     ` srikanth krishnakar
@ 2009-04-29 13:43       ` srikanth krishnakar
  2009-04-29 18:45       ` Mathieu Desnoyers
  1 sibling, 0 replies; 9+ messages in thread
From: srikanth krishnakar @ 2009-04-29 13:43 UTC (permalink / raw)


Hi Mathieu,

Here is a proposed fix for the compilation error:

Date: Tue, 28 Apr 2009 21:29:09 +0530
Subject: [PATCH] lttng: powerpc trace-clock.h include <asm/time.h> for
get_tbl

Make get_tbl() and get_tb() known to powerpc <asm/trace-clock.h> by
having it include <asm/time.h> (where get_tbl() and get_tb() are defined).

This fixes compiler errors when get_tbl() and get_tb() were referenced
by <asm/trace-clock.h> without being defined.

On the other hand, <asm/processor.h> was needlessly included.  Remove it.

---
 arch/powerpc/include/asm/trace-clock.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/include/asm/trace-clock.h
b/arch/powerpc/include/asm/trace-clock.h
index 9aee572..b0b4e21 100644
--- a/arch/powerpc/include/asm/trace-clock.h
+++ b/arch/powerpc/include/asm/trace-clock.h
@@ -11,7 +11,7 @@

 #include <linux/timex.h>
 #include <linux/time.h>
-#include <asm/processor.h>
+#include <asm/time.h>

 static inline u32 trace_clock_read32(void)
 {


This fixes the compiles error on powerpc.

Thanks,
-Srikanth

-- 


On Wed, Apr 29, 2009 at 6:28 PM, srikanth krishnakar
<skrishnakar at gmail.com>wrote:

> Hi Mathieu,
>
> On Wed, Apr 29, 2009 at 6:12 PM, Mathieu Desnoyers <
> compudj at krystal.dyndns.org> wrote:
>
>> * srikanth krishnakar (skrishnakar at gmail.com) wrote:
>> > Hi Mathieu,
>> >
>> > Testing with latest LTTng verison 2.6.29-lttng-0.122  for kernel
>> > linux-2.6.29 gives following compile error for PowerPC architecture :
>> >
>> > ---------------------------
>> > LTTng : 2.6.29-lttng-0.122
>> > Kernel : Linux-2.6.29
>> > Arch: PPC_32
>> > Toolchain: ppc_440
>> > ---------------------------
>> >
>> > In file included from include/linux/trace-clock.h:13,
>> >                  from include/linux/ltt-tracer.h:22,
>> >                  from kernel/marker.c:29:
>> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
>> > ?trace_clock_read32?:
>> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:18: error:
>> > implicit declaration of function ?get_tbl?
>> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
>> > ?trace_clock_read64?:
>> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:23: error:
>> > implicit declaration of function ?get_tb?
>> > make[1]: *** [kernel/marker.o] Error 1
>> > make: *** [kernel] Error 2
>> >
>> > This error is first seen in :
>> >
>> > *2.6.29-rc8-lttng-0.112
>> >
>> > Continues till 2.6.29-lttng-0.122
>> > *
>> >
>> > As per your earlier request I am attaching the default .config used
>> while
>> > compilation.
>> >
>> >
>> > Can you please submit a fix for this error ???
>> >
>>
>> Yes, I think I'll need your full .config.
>>
>> And please try 2.6.29.1-lttng-0.124, just to be sure. I remember doing a
>> fix in this area not so long ago, but looking at my current powerpc
>> trace-clock.h there seems to be no obvious change since lttng 0.112.
>
>
> For LTTng 2.6.29-lttng-0.124 I see the same errors as shown below:
>
> In file included from include/linux/trace-clock.h:13,
>                  from include/linux/ltt-tracer.h:22,
>                  from kernel/marker.c:29:
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> ?trace_clock_read32?:
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:18: error: implicit
> declaration of function ?get_tbl?
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> ?trace_clock_read64?:
> linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:23: error: implicit
> declaration of function ?get_tb?
> make[1]: *** [kernel/marker.o] Error 1
> make: *** [kernel] Error 2
> [root at srikant linux-2.6-lttng]#
>
> Seems still the error exists.
>
> -Srikanth
>
>>
>>
>> Mathieu
>>
>> > Regards
>> > Srikanth Krishnakar
>> > **********************
>>
>>
>> > _______________________________________________
>> > ltt-dev mailing list
>> > ltt-dev at lists.casi.polymtl.ca
>> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>
>>
>> --
>> Mathieu Desnoyers
>> OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE
>> 9A68
>>
>
>
>
> --
> "The Good You Do, The Best You GET"
>
> Regards
> Srikanth Krishnakar
> **********************
>



-- 
"The Good You Do, The Best You GET"

Regards
Srikanth Krishnakar
**********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20090429/06fb55aa/attachment-0002.htm>


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

* [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32)
  2009-04-29 13:43     ` srikanth krishnakar
  2009-04-29 13:43       ` srikanth krishnakar
@ 2009-04-29 18:45       ` Mathieu Desnoyers
  1 sibling, 0 replies; 9+ messages in thread
From: Mathieu Desnoyers @ 2009-04-29 18:45 UTC (permalink / raw)


* srikanth krishnakar (skrishnakar at gmail.com) wrote:
> Hi Mathieu,
> 
> Here is a proposed fix for the compilation error:
> 
> Date: Tue, 28 Apr 2009 21:29:09 +0530
> Subject: [PATCH] lttng: powerpc trace-clock.h include <asm/time.h> for
> get_tbl
> 
> Make get_tbl() and get_tb() known to powerpc <asm/trace-clock.h> by
> having it include <asm/time.h> (where get_tbl() and get_tb() are defined).
> 
> This fixes compiler errors when get_tbl() and get_tb() were referenced
> by <asm/trace-clock.h> without being defined.
> 

Merged, thanks ! :)

Mathieu

> On the other hand, <asm/processor.h> was needlessly included.  Remove it.
> 
> ---
>  arch/powerpc/include/asm/trace-clock.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/include/asm/trace-clock.h
> b/arch/powerpc/include/asm/trace-clock.h
> index 9aee572..b0b4e21 100644
> --- a/arch/powerpc/include/asm/trace-clock.h
> +++ b/arch/powerpc/include/asm/trace-clock.h
> @@ -11,7 +11,7 @@
> 
>  #include <linux/timex.h>
>  #include <linux/time.h>
> -#include <asm/processor.h>
> +#include <asm/time.h>
> 
>  static inline u32 trace_clock_read32(void)
>  {
> 
> 
> This fixes the compiles error on powerpc.
> 
> Thanks,
> -Srikanth
> 
> -- 
> 
> 
> On Wed, Apr 29, 2009 at 6:28 PM, srikanth krishnakar
> <skrishnakar at gmail.com>wrote:
> 
> > Hi Mathieu,
> >
> > On Wed, Apr 29, 2009 at 6:12 PM, Mathieu Desnoyers <
> > compudj at krystal.dyndns.org> wrote:
> >
> >> * srikanth krishnakar (skrishnakar at gmail.com) wrote:
> >> > Hi Mathieu,
> >> >
> >> > Testing with latest LTTng verison 2.6.29-lttng-0.122  for kernel
> >> > linux-2.6.29 gives following compile error for PowerPC architecture :
> >> >
> >> > ---------------------------
> >> > LTTng : 2.6.29-lttng-0.122
> >> > Kernel : Linux-2.6.29
> >> > Arch: PPC_32
> >> > Toolchain: ppc_440
> >> > ---------------------------
> >> >
> >> > In file included from include/linux/trace-clock.h:13,
> >> >                  from include/linux/ltt-tracer.h:22,
> >> >                  from kernel/marker.c:29:
> >> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> >> > ?trace_clock_read32?:
> >> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:18: error:
> >> > implicit declaration of function ?get_tbl?
> >> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> >> > ?trace_clock_read64?:
> >> > linux-2.6.29-lttng/arch/powerpc/include/asm/trace-clock.h:23: error:
> >> > implicit declaration of function ?get_tb?
> >> > make[1]: *** [kernel/marker.o] Error 1
> >> > make: *** [kernel] Error 2
> >> >
> >> > This error is first seen in :
> >> >
> >> > *2.6.29-rc8-lttng-0.112
> >> >
> >> > Continues till 2.6.29-lttng-0.122
> >> > *
> >> >
> >> > As per your earlier request I am attaching the default .config used
> >> while
> >> > compilation.
> >> >
> >> >
> >> > Can you please submit a fix for this error ???
> >> >
> >>
> >> Yes, I think I'll need your full .config.
> >>
> >> And please try 2.6.29.1-lttng-0.124, just to be sure. I remember doing a
> >> fix in this area not so long ago, but looking at my current powerpc
> >> trace-clock.h there seems to be no obvious change since lttng 0.112.
> >
> >
> > For LTTng 2.6.29-lttng-0.124 I see the same errors as shown below:
> >
> > In file included from include/linux/trace-clock.h:13,
> >                  from include/linux/ltt-tracer.h:22,
> >                  from kernel/marker.c:29:
> > linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> > ?trace_clock_read32?:
> > linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:18: error: implicit
> > declaration of function ?get_tbl?
> > linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h: In function
> > ?trace_clock_read64?:
> > linux-2.6-lttng/arch/powerpc/include/asm/trace-clock.h:23: error: implicit
> > declaration of function ?get_tb?
> > make[1]: *** [kernel/marker.o] Error 1
> > make: *** [kernel] Error 2
> > [root at srikant linux-2.6-lttng]#
> >
> > Seems still the error exists.
> >
> > -Srikanth
> >
> >>
> >>
> >> Mathieu
> >>
> >> > Regards
> >> > Srikanth Krishnakar
> >> > **********************
> >>
> >>
> >> > _______________________________________________
> >> > ltt-dev mailing list
> >> > ltt-dev at lists.casi.polymtl.ca
> >> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> >>
> >>
> >> --
> >> Mathieu Desnoyers
> >> OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE
> >> 9A68
> >>
> >
> >
> >
> > --
> > "The Good You Do, The Best You GET"
> >
> > Regards
> > Srikanth Krishnakar
> > **********************
> >
> 
> 
> 
> -- 
> "The Good You Do, The Best You GET"
> 
> Regards
> Srikanth Krishnakar
> **********************

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




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

end of thread, other threads:[~2009-04-29 18:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-29  6:39 [ltt-dev] Compilation error of trace_clock for PowerPC (ppc32) srikanth krishnakar
2009-04-29  6:39 ` srikanth krishnakar
2009-04-29 12:42 ` Mathieu Desnoyers
2009-04-29 12:58   ` srikanth krishnakar
2009-04-29 12:58     ` srikanth krishnakar
2009-04-29 13:30     ` Mathieu Desnoyers
2009-04-29 13:43     ` srikanth krishnakar
2009-04-29 13:43       ` srikanth krishnakar
2009-04-29 18:45       ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox