All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] kernelshark: add ftrace gui viewer
  2010-12-30 17:57 [PATCH 0/3] tracing: trace-cmd fixes and new kernelshark recipe Darren Hart
@ 2010-12-29  1:10 ` Darren Hart
  2010-12-31  8:01   ` Saul Wold
  2010-12-29  1:17 ` [PATCH 1/3] trace-cmd: fix cross-compilation Darren Hart
  2010-12-29 18:10 ` [PATCH 2/3] glib-2.0: fix g_once_init_enter compile failure Darren Hart
  2 siblings, 1 reply; 12+ messages in thread
From: Darren Hart @ 2010-12-29  1:10 UTC (permalink / raw)
  To: poky

The trace-cmd source includes a graphical trace viewer, but we
don't want to make the trace-cmd recipe depend on gtk+. This
patch adds a second recipe in the meta/recipes-kernel/trace-cmd
directory which uses the trace-cmd SRCREV and RDEPENDS on trace-cmd
to ensure compatibility.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
---
 meta/recipes-kernel/trace-cmd/kernelshark_git.bb |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-kernel/trace-cmd/kernelshark_git.bb

diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_git.bb b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb
new file mode 100644
index 0000000..d2913c9
--- /dev/null
+++ b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "Graphical trace viewer for Ftrace"
+LICENSE = "GPL"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+PR = r0
+PV = "1.0.4+git${SRCPV}"
+
+DEPENDS = "gtk+"
+RDEPENDS = "trace-cmd"
+
+inherit pkgconfig
+
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git"
+SRCREV = "${SRCREV_pn-trace-cmd}"
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}' gui"
+
+do_install() {
+	oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install_gui
+}
-- 
1.7.1



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

* [PATCH 1/3] trace-cmd: fix cross-compilation
  2010-12-30 17:57 [PATCH 0/3] tracing: trace-cmd fixes and new kernelshark recipe Darren Hart
  2010-12-29  1:10 ` [PATCH 3/3] kernelshark: add ftrace gui viewer Darren Hart
@ 2010-12-29  1:17 ` Darren Hart
  2010-12-30 21:02   ` Bruce Ashfield
  2010-12-29 18:10 ` [PATCH 2/3] glib-2.0: fix g_once_init_enter compile failure Darren Hart
  2 siblings, 1 reply; 12+ messages in thread
From: Darren Hart @ 2010-12-29  1:17 UTC (permalink / raw)
  To: poky

The trace-cmd Makefile forces certain variables, such as CC and AR.
It was using the host gcc and loader, fix it to use the poky-built
cross-compiler and linker.

inherit pkgconfig to ensure we don't use the host pkg-config.

Remove unecessary variables from the oemake commands, such as ARCH
and LD which aren't used by the Makefile.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
---
 meta/recipes-kernel/trace-cmd/trace-cmd_git.bb |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
index e375afc..a7eca5f 100644
--- a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
+++ b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
@@ -2,18 +2,16 @@ DESCRIPTION = "User interface to Ftrace"
 LICENSE = "GPL"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
-PR = r1
+PR = r2
 PV = "1.0.4+git${SRCPV}"
 
+inherit pkgconfig
+
 SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git"
 S = "${WORKDIR}/git"
 
-
-do_compile() { 
-	oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix}
-}
+EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}'"
 
 do_install() {
-	oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \
-                   prefix=${prefix} DESTDIR=${D} install
+	oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install
 }
-- 
1.7.1



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

* [PATCH 2/3] glib-2.0: fix g_once_init_enter compile failure
  2010-12-30 17:57 [PATCH 0/3] tracing: trace-cmd fixes and new kernelshark recipe Darren Hart
  2010-12-29  1:10 ` [PATCH 3/3] kernelshark: add ftrace gui viewer Darren Hart
  2010-12-29  1:17 ` [PATCH 1/3] trace-cmd: fix cross-compilation Darren Hart
@ 2010-12-29 18:10 ` Darren Hart
  2010-12-31  8:05   ` Saul Wold
  2 siblings, 1 reply; 12+ messages in thread
From: Darren Hart @ 2010-12-29 18:10 UTC (permalink / raw)
  To: poky

Kernelshark trips over a compile bug in glib-2.0 addressed by Open Embedded
back in the 2.22 timeframe. It appears to still be present in 2.27.

http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg00529.html

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
---
 .../glib-2.0-2.27.3/g_once_init_enter.patch        |   13 +++++++++++++
 meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb      |    6 ++++--
 2 files changed, 17 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-core/glib-2.0/glib-2.0-2.27.3/g_once_init_enter.patch

diff --git a/meta/recipes-core/glib-2.0/glib-2.0-2.27.3/g_once_init_enter.patch b/meta/recipes-core/glib-2.0/glib-2.0-2.27.3/g_once_init_enter.patch
new file mode 100644
index 0000000..1c4ce50
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/glib-2.0-2.27.3/g_once_init_enter.patch
@@ -0,0 +1,13 @@
+Index: glib-2.27.3/glib/gthread.h
+===================================================================
+--- glib-2.27.3.orig/glib/gthread.h
++++ glib-2.27.3/glib/gthread.h
+@@ -344,7 +344,7 @@ void                    g_once_init_leav
+ G_INLINE_FUNC gboolean
+ g_once_init_enter (volatile gsize *value_location)
+ {
+-  if G_LIKELY ((gpointer) g_atomic_pointer_get (value_location) != NULL)
++  if G_LIKELY ((gpointer) g_atomic_pointer_get ((volatile gpointer *)value_location) != NULL)
+     return FALSE;
+   else
+     return g_once_init_enter_impl (value_location);
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb
index 30e208a..a9ff3ec 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb
@@ -1,10 +1,12 @@
 require glib.inc
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/glib/2.27/glib-${PV}.tar.bz2 \
            file://configure-libtool.patch \
-           file://60_wait-longer-for-threads-to-die.patch"
+           file://60_wait-longer-for-threads-to-die.patch \
+           file://g_once_init_enter.patch \
+          "
 
 SRC_URI[md5sum] = "d3e976ff92b55b6064a0eb3110f36158"
 SRC_URI[sha256sum] = "c44177b635e88639361eb1daf7aaa33315a00aaf46db5accf2f11920c7ff1919"
-- 
1.7.1



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

* [PATCH 0/3] tracing: trace-cmd fixes and new kernelshark recipe
@ 2010-12-30 17:57 Darren Hart
  2010-12-29  1:10 ` [PATCH 3/3] kernelshark: add ftrace gui viewer Darren Hart
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Darren Hart @ 2010-12-30 17:57 UTC (permalink / raw)
  To: poky

This series fixes some issues with the existing trace-cmd recipe and adds
a new recipe for kernelshark. The latter catches a bug in glib-2.0 which
is also addressed in this series with a patch from Open Embedded.

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: dvhart/tracing
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dvhart/tracing

Thanks,
    Darren Hart <dvhart@linux.intel.com>
---


Darren Hart (3):
  trace-cmd: fix cross-compilation
  glib-2.0: fix g_once_init_enter compile failure
  kernelshark: add ftrace gui viewer

 .../glib-2.0-2.27.3/g_once_init_enter.patch        |   13 ++++++++++++
 meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb      |    6 +++-
 meta/recipes-kernel/trace-cmd/kernelshark_git.bb   |   21 ++++++++++++++++++++
 meta/recipes-kernel/trace-cmd/trace-cmd_git.bb     |   12 ++++------
 4 files changed, 43 insertions(+), 9 deletions(-)
 create mode 100644 meta/recipes-core/glib-2.0/glib-2.0-2.27.3/g_once_init_enter.patch
 create mode 100644 meta/recipes-kernel/trace-cmd/kernelshark_git.bb



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

* Re: [PATCH 1/3] trace-cmd: fix cross-compilation
  2010-12-29  1:17 ` [PATCH 1/3] trace-cmd: fix cross-compilation Darren Hart
@ 2010-12-30 21:02   ` Bruce Ashfield
  2010-12-30 22:29     ` Darren Hart
  0 siblings, 1 reply; 12+ messages in thread
From: Bruce Ashfield @ 2010-12-30 21:02 UTC (permalink / raw)
  To: Darren Hart; +Cc: poky

On Tue, Dec 28, 2010 at 8:17 PM, Darren Hart <dvhart@linux.intel.com> wrote:
> The trace-cmd Makefile forces certain variables, such as CC and AR.
> It was using the host gcc and loader, fix it to use the poky-built
> cross-compiler and linker.
>
> inherit pkgconfig to ensure we don't use the host pkg-config.
>
> Remove unecessary variables from the oemake commands, such as ARCH
> and LD which aren't used by the Makefile.
>
> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
> CC: Tom Zanussi <tom.zanussi@intel.com>

I actually hacked up the original of this one .. ;)


> ---
>  meta/recipes-kernel/trace-cmd/trace-cmd_git.bb |   12 +++++-------
>  1 files changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
> index e375afc..a7eca5f 100644
> --- a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
> +++ b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
> @@ -2,18 +2,16 @@ DESCRIPTION = "User interface to Ftrace"
>  LICENSE = "GPL"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
>
> -PR = r1
> +PR = r2
>  PV = "1.0.4+git${SRCPV}"
>
> +inherit pkgconfig
> +
>  SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git"
>  S = "${WORKDIR}/git"
>
> -
> -do_compile() {
> -       oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix}
> -}
> +EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}'"

So we've determined that we don't need ARCH anymore ? At one point
this did. Or is it coming from the pkgconfig inheritance now ?

Bruce

>
>  do_install() {
> -       oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \
> -                   prefix=${prefix} DESTDIR=${D} install
> +       oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install
>  }
> --
> 1.7.1
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


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

* Re: [PATCH 1/3] trace-cmd: fix cross-compilation
  2010-12-30 21:02   ` Bruce Ashfield
@ 2010-12-30 22:29     ` Darren Hart
  2010-12-31  6:08       ` Bruce Ashfield
  0 siblings, 1 reply; 12+ messages in thread
From: Darren Hart @ 2010-12-30 22:29 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: poky

On 12/30/2010 01:02 PM, Bruce Ashfield wrote:
> On Tue, Dec 28, 2010 at 8:17 PM, Darren Hart<dvhart@linux.intel.com>  wrote:
>> The trace-cmd Makefile forces certain variables, such as CC and AR.
>> It was using the host gcc and loader, fix it to use the poky-built
>> cross-compiler and linker.
>>
>> inherit pkgconfig to ensure we don't use the host pkg-config.
>>
>> Remove unecessary variables from the oemake commands, such as ARCH
>> and LD which aren't used by the Makefile.
>>
>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>> CC: Tom Zanussi<tom.zanussi@intel.com>
>
> I actually hacked up the original of this one .. ;)

Right, sorry, forgot to check git blame on this one.

>
>
>> ---
>>   meta/recipes-kernel/trace-cmd/trace-cmd_git.bb |   12 +++++-------
>>   1 files changed, 5 insertions(+), 7 deletions(-)
>>
>> diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>> index e375afc..a7eca5f 100644
>> --- a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>> +++ b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>> @@ -2,18 +2,16 @@ DESCRIPTION = "User interface to Ftrace"
>>   LICENSE = "GPL"
>>   LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
>>
>> -PR = r1
>> +PR = r2
>>   PV = "1.0.4+git${SRCPV}"
>>
>> +inherit pkgconfig
>> +
>>   SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git"
>>   S = "${WORKDIR}/git"
>>
>> -
>> -do_compile() {
>> -       oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix}
>> -}
>> +EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}'"
>
> So we've determined that we don't need ARCH anymore ? At one point
> this did. Or is it coming from the pkgconfig inheritance now ?

Good question. My understanding of setting these variables here was to 
override whatever the Makefile was using. This makefile doesn't use ARCH 
at all. Am I missing something about how this is used?

--
Darren

>
> Bruce
>
>>
>>   do_install() {
>> -       oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \
>> -                   prefix=${prefix} DESTDIR=${D} install
>> +       oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install
>>   }
>> --
>> 1.7.1
>>
>> _______________________________________________
>> poky mailing list
>> poky@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/poky
>>
>
>
>


-- 
Darren Hart
Yocto Linux Kernel


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

* Re: [PATCH 1/3] trace-cmd: fix cross-compilation
  2010-12-30 22:29     ` Darren Hart
@ 2010-12-31  6:08       ` Bruce Ashfield
  2010-12-31  7:41         ` Darren Hart
  0 siblings, 1 reply; 12+ messages in thread
From: Bruce Ashfield @ 2010-12-31  6:08 UTC (permalink / raw)
  To: Darren Hart; +Cc: poky

On Thu, Dec 30, 2010 at 5:29 PM, Darren Hart <dvhart@linux.intel.com> wrote:
> On 12/30/2010 01:02 PM, Bruce Ashfield wrote:
>>
>> On Tue, Dec 28, 2010 at 8:17 PM, Darren Hart<dvhart@linux.intel.com>
>>  wrote:
>>>
>>> The trace-cmd Makefile forces certain variables, such as CC and AR.
>>> It was using the host gcc and loader, fix it to use the poky-built
>>> cross-compiler and linker.
>>>
>>> inherit pkgconfig to ensure we don't use the host pkg-config.
>>>
>>> Remove unecessary variables from the oemake commands, such as ARCH
>>> and LD which aren't used by the Makefile.
>>>
>>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>>> CC: Tom Zanussi<tom.zanussi@intel.com>
>>
>> I actually hacked up the original of this one .. ;)
>
> Right, sorry, forgot to check git blame on this one.

Probably wouldn't have helped, in the recipe re-org it looks like my blame
was dropped :)

>
>>
>>
>>> ---
>>>  meta/recipes-kernel/trace-cmd/trace-cmd_git.bb |   12 +++++-------
>>>  1 files changed, 5 insertions(+), 7 deletions(-)
>>>
>>> diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>> b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>> index e375afc..a7eca5f 100644
>>> --- a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>> +++ b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>> @@ -2,18 +2,16 @@ DESCRIPTION = "User interface to Ftrace"
>>>  LICENSE = "GPL"
>>>  LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
>>>
>>> -PR = r1
>>> +PR = r2
>>>  PV = "1.0.4+git${SRCPV}"
>>>
>>> +inherit pkgconfig
>>> +
>>>  SRC_URI =
>>> "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git"
>>>  S = "${WORKDIR}/git"
>>>
>>> -
>>> -do_compile() {
>>> -       oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix}
>>> -}
>>> +EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}'"
>>
>> So we've determined that we don't need ARCH anymore ? At one point
>> this did. Or is it coming from the pkgconfig inheritance now ?
>
> Good question. My understanding of setting these variables here was to
> override whatever the Makefile was using. This makefile doesn't use ARCH at

They were initially imported from a non-bitbake build of the tool, so there
very well could have been differences introduced simply by the history. But
yes, they were passed to override the defaults of the trace-cmd Makefile
and prevent the defaults from being used.

At one point, there were arch specific switches in the build to adapt to a
different userspace on a per-arch basis. But those changes were circa
March 2010 and they never were picked up.

> all. Am I missing something about how this is used?

It doesn't look like it, I was more noticing that you dropped ARCH, and
was just looking to see if there were more details than just the commit
message.

Cheers,

Bruce

>
> --
> Darren
>
>>
>> Bruce
>>
>>>
>>>  do_install() {
>>> -       oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" \
>>> -                   prefix=${prefix} DESTDIR=${D} install
>>> +       oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}"
>>> DESTDIR="${D}" install
>>>  }
>>> --
>>> 1.7.1
>>>
>>> _______________________________________________
>>> poky mailing list
>>> poky@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/poky
>>>
>>
>>
>>
>
>
> --
> Darren Hart
> Yocto Linux Kernel
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


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

* Re: [PATCH 1/3] trace-cmd: fix cross-compilation
  2010-12-31  6:08       ` Bruce Ashfield
@ 2010-12-31  7:41         ` Darren Hart
  2010-12-31 13:12           ` Bruce Ashfield
  0 siblings, 1 reply; 12+ messages in thread
From: Darren Hart @ 2010-12-31  7:41 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: poky

On 12/30/2010 10:08 PM, Bruce Ashfield wrote:
> On Thu, Dec 30, 2010 at 5:29 PM, Darren Hart<dvhart@linux.intel.com>  wrote:
>> On 12/30/2010 01:02 PM, Bruce Ashfield wrote:
>>>
>>> On Tue, Dec 28, 2010 at 8:17 PM, Darren Hart<dvhart@linux.intel.com>
>>>   wrote:
>>>>
>>>> The trace-cmd Makefile forces certain variables, such as CC and AR.
>>>> It was using the host gcc and loader, fix it to use the poky-built
>>>> cross-compiler and linker.
>>>>
>>>> inherit pkgconfig to ensure we don't use the host pkg-config.
>>>>
>>>> Remove unecessary variables from the oemake commands, such as ARCH
>>>> and LD which aren't used by the Makefile.
>>>>
>>>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>>>> CC: Tom Zanussi<tom.zanussi@intel.com>
>>>
>>> I actually hacked up the original of this one .. ;)
>>
>> Right, sorry, forgot to check git blame on this one.
>
> Probably wouldn't have helped, in the recipe re-org it looks like my blame
> was dropped :)
>
>>
>>>
>>>
>>>> ---
>>>>   meta/recipes-kernel/trace-cmd/trace-cmd_git.bb |   12 +++++-------
>>>>   1 files changed, 5 insertions(+), 7 deletions(-)
>>>>
>>>> diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>>> b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>>> index e375afc..a7eca5f 100644
>>>> --- a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>>> +++ b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>>> @@ -2,18 +2,16 @@ DESCRIPTION = "User interface to Ftrace"
>>>>   LICENSE = "GPL"
>>>>   LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
>>>>
>>>> -PR = r1
>>>> +PR = r2
>>>>   PV = "1.0.4+git${SRCPV}"
>>>>
>>>> +inherit pkgconfig
>>>> +
>>>>   SRC_URI =
>>>> "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git"
>>>>   S = "${WORKDIR}/git"
>>>>
>>>> -
>>>> -do_compile() {
>>>> -       oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}" prefix=${prefix}
>>>> -}
>>>> +EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}'"
>>>
>>> So we've determined that we don't need ARCH anymore ? At one point
>>> this did. Or is it coming from the pkgconfig inheritance now ?
>>
>> Good question. My understanding of setting these variables here was to
>> override whatever the Makefile was using. This makefile doesn't use ARCH at
>
> They were initially imported from a non-bitbake build of the tool, so there
> very well could have been differences introduced simply by the history. But
> yes, they were passed to override the defaults of the trace-cmd Makefile
> and prevent the defaults from being used.
>
> At one point, there were arch specific switches in the build to adapt to a
> different userspace on a per-arch basis. But those changes were circa
> March 2010 and they never were picked up.
>
>> all. Am I missing something about how this is used?
>
> It doesn't look like it, I was more noticing that you dropped ARCH, and
> was just looking to see if there were more details than just the commit
> message.

Nope, looks like trace-cmd's Makefile has just changed some.

Are you OK with these patches then?

-- 
Darren Hart
Yocto Linux Kernel


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

* Re: [PATCH 3/3] kernelshark: add ftrace gui viewer
  2010-12-29  1:10 ` [PATCH 3/3] kernelshark: add ftrace gui viewer Darren Hart
@ 2010-12-31  8:01   ` Saul Wold
  2010-12-31 18:39     ` Darren Hart
  0 siblings, 1 reply; 12+ messages in thread
From: Saul Wold @ 2010-12-31  8:01 UTC (permalink / raw)
  To: Darren Hart; +Cc: poky

On 12/28/2010 05:10 PM, Darren Hart wrote:
> The trace-cmd source includes a graphical trace viewer, but we
> don't want to make the trace-cmd recipe depend on gtk+. This
> patch adds a second recipe in the meta/recipes-kernel/trace-cmd
> directory which uses the trace-cmd SRCREV and RDEPENDS on trace-cmd
> to ensure compatibility.
>
> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
> CC: Tom Zanussi<tom.zanussi@intel.com>
> ---
>   meta/recipes-kernel/trace-cmd/kernelshark_git.bb |   21 +++++++++++++++++++++
>   1 files changed, 21 insertions(+), 0 deletions(-)
>   create mode 100644 meta/recipes-kernel/trace-cmd/kernelshark_git.bb
>
> diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_git.bb b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb
> new file mode 100644
> index 0000000..d2913c9
> --- /dev/null
> +++ b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb
> @@ -0,0 +1,21 @@
> +DESCRIPTION = "Graphical trace viewer for Ftrace"
> +LICENSE = "GPL"
Can you be more specific to the version of GPL?

> +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
> +
> +PR = r0
> +PV = "1.0.4+git${SRCPV}"
> +
> +DEPENDS = "gtk+"
> +RDEPENDS = "trace-cmd"
> +
> +inherit pkgconfig
> +
> +SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git"
> +SRCREV = "${SRCREV_pn-trace-cmd}"
> +S = "${WORKDIR}/git"
> +
> +EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}' gui"
> +
> +do_install() {
> +	oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install_gui
> +}



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

* Re: [PATCH 2/3] glib-2.0: fix g_once_init_enter compile failure
  2010-12-29 18:10 ` [PATCH 2/3] glib-2.0: fix g_once_init_enter compile failure Darren Hart
@ 2010-12-31  8:05   ` Saul Wold
  0 siblings, 0 replies; 12+ messages in thread
From: Saul Wold @ 2010-12-31  8:05 UTC (permalink / raw)
  To: poky

On 12/29/2010 10:10 AM, Darren Hart wrote:
> Kernelshark trips over a compile bug in glib-2.0 addressed by Open Embedded
> back in the 2.22 timeframe. It appears to still be present in 2.27.
>
> http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg00529.html
>
Can you add this attribution as well as Signed-off-by in the header of 
the patch file directly, this will help understand with out having to 
dig into the git info.

Thanks

   Sau!

> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
> CC: Tom Zanussi<tom.zanussi@intel.com>
> ---
>   .../glib-2.0-2.27.3/g_once_init_enter.patch        |   13 +++++++++++++
>   meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb      |    6 ++++--
>   2 files changed, 17 insertions(+), 2 deletions(-)
>   create mode 100644 meta/recipes-core/glib-2.0/glib-2.0-2.27.3/g_once_init_enter.patch
>
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0-2.27.3/g_once_init_enter.patch b/meta/recipes-core/glib-2.0/glib-2.0-2.27.3/g_once_init_enter.patch
> new file mode 100644
> index 0000000..1c4ce50
> --- /dev/null
> +++ b/meta/recipes-core/glib-2.0/glib-2.0-2.27.3/g_once_init_enter.patch
> @@ -0,0 +1,13 @@
> +Index: glib-2.27.3/glib/gthread.h
> +===================================================================
> +--- glib-2.27.3.orig/glib/gthread.h
> ++++ glib-2.27.3/glib/gthread.h
> +@@ -344,7 +344,7 @@ void                    g_once_init_leav
> + G_INLINE_FUNC gboolean
> + g_once_init_enter (volatile gsize *value_location)
> + {
> +-  if G_LIKELY ((gpointer) g_atomic_pointer_get (value_location) != NULL)
> ++  if G_LIKELY ((gpointer) g_atomic_pointer_get ((volatile gpointer *)value_location) != NULL)
> +     return FALSE;
> +   else
> +     return g_once_init_enter_impl (value_location);
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb
> index 30e208a..a9ff3ec 100644
> --- a/meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb
> +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.27.3.bb
> @@ -1,10 +1,12 @@
>   require glib.inc
>
> -PR = "r0"
> +PR = "r1"
>
>   SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/glib/2.27/glib-${PV}.tar.bz2 \
>              file://configure-libtool.patch \
> -           file://60_wait-longer-for-threads-to-die.patch"
> +           file://60_wait-longer-for-threads-to-die.patch \
> +           file://g_once_init_enter.patch \
> +          "
>
>   SRC_URI[md5sum] = "d3e976ff92b55b6064a0eb3110f36158"
>   SRC_URI[sha256sum] = "c44177b635e88639361eb1daf7aaa33315a00aaf46db5accf2f11920c7ff1919"



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

* Re: [PATCH 1/3] trace-cmd: fix cross-compilation
  2010-12-31  7:41         ` Darren Hart
@ 2010-12-31 13:12           ` Bruce Ashfield
  0 siblings, 0 replies; 12+ messages in thread
From: Bruce Ashfield @ 2010-12-31 13:12 UTC (permalink / raw)
  To: Darren Hart; +Cc: poky

On Fri, Dec 31, 2010 at 2:41 AM, Darren Hart <dvhart@linux.intel.com> wrote:
> On 12/30/2010 10:08 PM, Bruce Ashfield wrote:
>>
>> On Thu, Dec 30, 2010 at 5:29 PM, Darren Hart<dvhart@linux.intel.com>
>>  wrote:
>>>
>>> On 12/30/2010 01:02 PM, Bruce Ashfield wrote:
>>>>
>>>> On Tue, Dec 28, 2010 at 8:17 PM, Darren Hart<dvhart@linux.intel.com>
>>>>  wrote:
>>>>>
>>>>> The trace-cmd Makefile forces certain variables, such as CC and AR.
>>>>> It was using the host gcc and loader, fix it to use the poky-built
>>>>> cross-compiler and linker.
>>>>>
>>>>> inherit pkgconfig to ensure we don't use the host pkg-config.
>>>>>
>>>>> Remove unecessary variables from the oemake commands, such as ARCH
>>>>> and LD which aren't used by the Makefile.
>>>>>
>>>>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>>>>> CC: Tom Zanussi<tom.zanussi@intel.com>
>>>>
>>>> I actually hacked up the original of this one .. ;)
>>>
>>> Right, sorry, forgot to check git blame on this one.
>>
>> Probably wouldn't have helped, in the recipe re-org it looks like my blame
>> was dropped :)
>>
>>>
>>>>
>>>>
>>>>> ---
>>>>>  meta/recipes-kernel/trace-cmd/trace-cmd_git.bb |   12 +++++-------
>>>>>  1 files changed, 5 insertions(+), 7 deletions(-)
>>>>>
>>>>> diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>>>> b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>>>> index e375afc..a7eca5f 100644
>>>>> --- a/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>>>> +++ b/meta/recipes-kernel/trace-cmd/trace-cmd_git.bb
>>>>> @@ -2,18 +2,16 @@ DESCRIPTION = "User interface to Ftrace"
>>>>>  LICENSE = "GPL"
>>>>>  LIC_FILES_CHKSUM =
>>>>> "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
>>>>>
>>>>> -PR = r1
>>>>> +PR = r2
>>>>>  PV = "1.0.4+git${SRCPV}"
>>>>>
>>>>> +inherit pkgconfig
>>>>> +
>>>>>  SRC_URI =
>>>>>
>>>>> "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git"
>>>>>  S = "${WORKDIR}/git"
>>>>>
>>>>> -
>>>>> -do_compile() {
>>>>> -       oe_runmake ARCH="${ARCH}" CC="${CC}" LD="${LD}"
>>>>> prefix=${prefix}
>>>>> -}
>>>>> +EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}'"
>>>>
>>>> So we've determined that we don't need ARCH anymore ? At one point
>>>> this did. Or is it coming from the pkgconfig inheritance now ?
>>>
>>> Good question. My understanding of setting these variables here was to
>>> override whatever the Makefile was using. This makefile doesn't use ARCH
>>> at
>>
>> They were initially imported from a non-bitbake build of the tool, so
>> there
>> very well could have been differences introduced simply by the history.
>> But
>> yes, they were passed to override the defaults of the trace-cmd Makefile
>> and prevent the defaults from being used.
>>
>> At one point, there were arch specific switches in the build to adapt to a
>> different userspace on a per-arch basis. But those changes were circa
>> March 2010 and they never were picked up.
>>
>>> all. Am I missing something about how this is used?
>>
>> It doesn't look like it, I was more noticing that you dropped ARCH, and
>> was just looking to see if there were more details than just the commit
>> message.
>
> Nope, looks like trace-cmd's Makefile has just changed some.
>
> Are you OK with these patches then?

I am. Acked/Reviewed-by: Bruce Ashfield <bruce.ashfield@windriver.com>

Bruce

>
> --
> Darren Hart
> Yocto Linux Kernel
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


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

* Re: [PATCH 3/3] kernelshark: add ftrace gui viewer
  2010-12-31  8:01   ` Saul Wold
@ 2010-12-31 18:39     ` Darren Hart
  0 siblings, 0 replies; 12+ messages in thread
From: Darren Hart @ 2010-12-31 18:39 UTC (permalink / raw)
  To: Saul Wold; +Cc: poky

On 12/31/2010 12:01 AM, Saul Wold wrote:
> On 12/28/2010 05:10 PM, Darren Hart wrote:
>> The trace-cmd source includes a graphical trace viewer, but we
>> don't want to make the trace-cmd recipe depend on gtk+. This
>> patch adds a second recipe in the meta/recipes-kernel/trace-cmd
>> directory which uses the trace-cmd SRCREV and RDEPENDS on trace-cmd
>> to ensure compatibility.
>>
>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>> CC: Tom Zanussi<tom.zanussi@intel.com>
>> ---
>> meta/recipes-kernel/trace-cmd/kernelshark_git.bb | 21
>> +++++++++++++++++++++
>> 1 files changed, 21 insertions(+), 0 deletions(-)
>> create mode 100644 meta/recipes-kernel/trace-cmd/kernelshark_git.bb
>>
>> diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_git.bb
>> b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb
>> new file mode 100644
>> index 0000000..d2913c9
>> --- /dev/null
>> +++ b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb
>> @@ -0,0 +1,21 @@
>> +DESCRIPTION = "Graphical trace viewer for Ftrace"
>> +LICENSE = "GPL"
> Can you be more specific to the version of GPL?

Right, will fix and resend - for both ftrace and kernelshark.

>
>> +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
>> +
>> +PR = r0
>> +PV = "1.0.4+git${SRCPV}"
>> +
>> +DEPENDS = "gtk+"
>> +RDEPENDS = "trace-cmd"
>> +
>> +inherit pkgconfig
>> +
>> +SRC_URI =
>> "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git"
>>
>> +SRCREV = "${SRCREV_pn-trace-cmd}"
>> +S = "${WORKDIR}/git"
>> +
>> +EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}' gui"
>> +
>> +do_install() {
>> + oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}"
>> install_gui
>> +}
>


-- 
Darren Hart
Yocto Linux Kernel


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

end of thread, other threads:[~2010-12-31 18:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-30 17:57 [PATCH 0/3] tracing: trace-cmd fixes and new kernelshark recipe Darren Hart
2010-12-29  1:10 ` [PATCH 3/3] kernelshark: add ftrace gui viewer Darren Hart
2010-12-31  8:01   ` Saul Wold
2010-12-31 18:39     ` Darren Hart
2010-12-29  1:17 ` [PATCH 1/3] trace-cmd: fix cross-compilation Darren Hart
2010-12-30 21:02   ` Bruce Ashfield
2010-12-30 22:29     ` Darren Hart
2010-12-31  6:08       ` Bruce Ashfield
2010-12-31  7:41         ` Darren Hart
2010-12-31 13:12           ` Bruce Ashfield
2010-12-29 18:10 ` [PATCH 2/3] glib-2.0: fix g_once_init_enter compile failure Darren Hart
2010-12-31  8:05   ` Saul Wold

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.