meta-freescale.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* a bug of perf
@ 2020-04-27  6:54 leimaohui
  2020-04-27  7:00 ` [meta-freescale] " Andrey Zhizhikin
  0 siblings, 1 reply; 7+ messages in thread
From: leimaohui @ 2020-04-27  6:54 UTC (permalink / raw)
  To: meta-freescale

Hi,

I met perf bug by meta-freescale as following:
---------------------------------------------------------------------
tmp/work/armv8-linux/perf/1.0-r9/perf-1.0/perf-in.o: in function `find_address_in_section':
| /usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/util/srcline.c:200: undefined reference to `bfd_get_section_flags'
perf/1.0-r9/recipe-sysroot-native/usr/bin/aarch64-linux/../../libexec/aarch64-linux/gcc/aarch64-linux/9.3.0/ld: /usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/util/srcline.c:204: undefined reference to `bfd_get_section_vma'

I found that this bug has been fixed in upstream: 
---------------------------------------------------------------------
commit f4d7dbafb103e4f782323017c239c548871c1567
Author: Changbin Du <changbin.du@gmail.com>
Date:   Tue Jan 28 23:29:38 2020 +0800

    perf: Make perf able to build with latest libbfd

    libbfd has changed the bfd_section_* macros to inline functions
    bfd_section_<field> since 2019-09-18. See below two commits:
      o http://www.sourceware.org/ml/gdb-cvs/2019-09/msg00064.html
      o https://www.sourceware.org/ml/gdb-cvs/2019-09/msg00072.html

    This fix make perf able to build with both old and new libbfd.

    Signed-off-by: Changbin Du <changbin.du@gmail.com>
    Acked-by: Jiri Olsa <jolsa@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: http://lore.kernel.org/lkml/20200128152938.31413-1-changbin.du@gmail.com
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>

 tools/perf/util/srcline.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

I want to know when linux-qoriq will be updated next time?

Best regards
Lei Maohui





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

* Re: [meta-freescale] a bug of perf
  2020-04-27  6:54 a bug of perf leimaohui
@ 2020-04-27  7:00 ` Andrey Zhizhikin
  2020-04-27 12:55   ` Zhenhua Luo
  0 siblings, 1 reply; 7+ messages in thread
From: Andrey Zhizhikin @ 2020-04-27  7:00 UTC (permalink / raw)
  To: leimaohui; +Cc: meta-freescale

On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@cn.fujitsu.com> wrote:
>
> Hi,
>
> I met perf bug by meta-freescale as following:
> ---------------------------------------------------------------------
> tmp/work/armv8-linux/perf/1.0-r9/perf-1.0/perf-in.o: in function `find_address_in_section':
> | /usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/util/srcline.c:200: undefined reference to `bfd_get_section_flags'
> perf/1.0-r9/recipe-sysroot-native/usr/bin/aarch64-linux/../../libexec/aarch64-linux/gcc/aarch64-linux/9.3.0/ld: /usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/util/srcline.c:204: undefined reference to `bfd_get_section_vma'
>
> I found that this bug has been fixed in upstream:
> ---------------------------------------------------------------------
> commit f4d7dbafb103e4f782323017c239c548871c1567
> Author: Changbin Du <changbin.du@gmail.com>
> Date:   Tue Jan 28 23:29:38 2020 +0800
>
>     perf: Make perf able to build with latest libbfd
>
>     libbfd has changed the bfd_section_* macros to inline functions
>     bfd_section_<field> since 2019-09-18. See below two commits:
>       o http://www.sourceware.org/ml/gdb-cvs/2019-09/msg00064.html
>       o https://www.sourceware.org/ml/gdb-cvs/2019-09/msg00072.html
>
>     This fix make perf able to build with both old and new libbfd.
>
>     Signed-off-by: Changbin Du <changbin.du@gmail.com>
>     Acked-by: Jiri Olsa <jolsa@redhat.com>
>     Cc: Peter Zijlstra <peterz@infradead.org>
>     Link: http://lore.kernel.org/lkml/20200128152938.31413-1-changbin.du@gmail.com
>     Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
>     Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
>
>  tools/perf/util/srcline.c | 16 +++++++++++++++-
>  1 file changed, 15 insertions(+), 1 deletion(-)
>
> I want to know when linux-qoriq will be updated next time?

I have this patch ported to linux-imx kernel [1], probably you should
do the same for linux-qoriq. Try to add it into the recipe and if it
would work out - send a PR.

>
> Best regards
> Lei Maohui
>
>
>
>
> 

[1]: https://github.com/Freescale/meta-freescale/blob/master/recipes-kernel/linux/linux-imx-5.4.3/0001-perf-Make-perf-able-to-build-with-latest-libbfd.patch

-- 
Regards,
Andrey.

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

* Re: [meta-freescale] a bug of perf
  2020-04-27  7:00 ` [meta-freescale] " Andrey Zhizhikin
@ 2020-04-27 12:55   ` Zhenhua Luo
  2020-04-27 13:19     ` Otavio Salvador
  0 siblings, 1 reply; 7+ messages in thread
From: Zhenhua Luo @ 2020-04-27 12:55 UTC (permalink / raw)
  To: andrey.z, leimaohui; +Cc: meta-freescale, Ting Liu

The new QorIQ SDK based on Zeus is being prepared and plan to be available in June, we will port the perf patch in this release. 


Best Regards, 

Zhenhua

> -----Original Message-----
> From: meta-freescale@lists.yoctoproject.org <meta-
> freescale@lists.yoctoproject.org> On Behalf Of Andrey Zhizhikin via
> lists.yoctoproject.org
> Sent: Monday, April 27, 2020 3:00 PM
> To: leimaohui <leimaohui@cn.fujitsu.com>
> Cc: meta-freescale@lists.yoctoproject.org
> Subject: Re: [meta-freescale] a bug of perf
> 
> On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@cn.fujitsu.com> wrote:
> >
> > Hi,
> >
> > I met perf bug by meta-freescale as following:
> > ---------------------------------------------------------------------
> > tmp/work/armv8-linux/perf/1.0-r9/perf-1.0/perf-in.o: in function
> `find_address_in_section':
> > | /usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/util/srcline.c:200: undefined
> reference to `bfd_get_section_flags'
> > perf/1.0-r9/recipe-sysroot-native/usr/bin/aarch64-linux/../../libexec/aarch64-
> linux/gcc/aarch64-linux/9.3.0/ld: /usr/src/debug/perf/1.0-r9/perf-
> 1.0/tools/perf/util/srcline.c:204: undefined reference to `bfd_get_section_vma'
> >
> > I found that this bug has been fixed in upstream:
> > ---------------------------------------------------------------------
> > commit f4d7dbafb103e4f782323017c239c548871c1567
> > Author: Changbin Du <changbin.du@gmail.com>
> > Date:   Tue Jan 28 23:29:38 2020 +0800
> >
> >     perf: Make perf able to build with latest libbfd
> >
> >     libbfd has changed the bfd_section_* macros to inline functions
> >     bfd_section_<field> since 2019-09-18. See below two commits:
> >       o
> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.sour
> ceware.org%2Fml%2Fgdb-cvs%2F2019-
> 09%2Fmsg00064.html&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf7
> 1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%
> 7C0%7C0%7C637235676418274147&amp;sdata=FwmBOoCsXBdzRuExOVTl6r26
> 3T26N9hTw5f5igDsibc%3D&amp;reserved=0
> >       o
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> > sourceware.org%2Fml%2Fgdb-cvs%2F2019-
> 09%2Fmsg00072.html&amp;data=02%7C
> >
> 01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7C6
> 86ea1
> >
> d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&amp;sdat
> a=1MxK
> >
> Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&amp;reserved=0
> >
> >     This fix make perf able to build with both old and new libbfd.
> >
> >     Signed-off-by: Changbin Du <changbin.du@gmail.com>
> >     Acked-by: Jiri Olsa <jolsa@redhat.com>
> >     Cc: Peter Zijlstra <peterz@infradead.org>
> >     Link:
> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flore.kerne
> l.org%2Flkml%2F20200128152938.31413-1-
> changbin.du%40gmail.com&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%
> 7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301
> 635%7C0%7C0%7C637235676418274147&amp;sdata=SWo0QUl5N%2F7HTYJUr
> Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&amp;reserved=0
> >     Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> >     Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
> >
> >  tools/perf/util/srcline.c | 16 +++++++++++++++-
> >  1 file changed, 15 insertions(+), 1 deletion(-)
> >
> > I want to know when linux-qoriq will be updated next time?
> 
> I have this patch ported to linux-imx kernel [1], probably you should do the same
> for linux-qoriq. Try to add it into the recipe and if it would work out - send a PR.
> 
> >
> > Best regards
> > Lei Maohui
> >
> >
> >
> >
> >
> 
> [1]:
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co
> m%2FFreescale%2Fmeta-freescale%2Fblob%2Fmaster%2Frecipes-
> kernel%2Flinux%2Flinux-imx-5.4.3%2F0001-perf-Make-perf-able-to-build-with-
> latest-
> libbfd.patch&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a5
> 64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0
> %7C637235676418274147&amp;sdata=7GeXcgw7qGut%2FI%2Bn%2Bq%2B42A
> 8go1FaegAgzOzNVMPpwsk%3D&amp;reserved=0
> 
> --
> Regards,
> Andrey.

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

* Re: [meta-freescale] a bug of perf
  2020-04-27 12:55   ` Zhenhua Luo
@ 2020-04-27 13:19     ` Otavio Salvador
  2020-04-28  2:11       ` leimaohui
  0 siblings, 1 reply; 7+ messages in thread
From: Otavio Salvador @ 2020-04-27 13:19 UTC (permalink / raw)
  To: Zhenhua Luo; +Cc: andrey.z, leimaohui, meta-freescale, Ting Liu

Zhenhua,

June is too late; you need to send the fix soon or we should drop
dunfell release for QorIQ.

On Mon, Apr 27, 2020 at 9:55 AM Zhenhua Luo <zhenhua.luo@nxp.com> wrote:
> The new QorIQ SDK based on Zeus is being prepared and plan to be available in June, we will port the perf patch in this release.
>
>
> Best Regards,
>
> Zhenhua
>
> > -----Original Message-----
> > From: meta-freescale@lists.yoctoproject.org <meta-
> > freescale@lists.yoctoproject.org> On Behalf Of Andrey Zhizhikin via
> > lists.yoctoproject.org
> > Sent: Monday, April 27, 2020 3:00 PM
> > To: leimaohui <leimaohui@cn.fujitsu.com>
> > Cc: meta-freescale@lists.yoctoproject.org
> > Subject: Re: [meta-freescale] a bug of perf
> >
> > On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@cn.fujitsu.com> wrote:
> > >
> > > Hi,
> > >
> > > I met perf bug by meta-freescale as following:
> > > ---------------------------------------------------------------------
> > > tmp/work/armv8-linux/perf/1.0-r9/perf-1.0/perf-in.o: in function
> > `find_address_in_section':
> > > | /usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/util/srcline.c:200: undefined
> > reference to `bfd_get_section_flags'
> > > perf/1.0-r9/recipe-sysroot-native/usr/bin/aarch64-linux/../../libexec/aarch64-
> > linux/gcc/aarch64-linux/9.3.0/ld: /usr/src/debug/perf/1.0-r9/perf-
> > 1.0/tools/perf/util/srcline.c:204: undefined reference to `bfd_get_section_vma'
> > >
> > > I found that this bug has been fixed in upstream:
> > > ---------------------------------------------------------------------
> > > commit f4d7dbafb103e4f782323017c239c548871c1567
> > > Author: Changbin Du <changbin.du@gmail.com>
> > > Date:   Tue Jan 28 23:29:38 2020 +0800
> > >
> > >     perf: Make perf able to build with latest libbfd
> > >
> > >     libbfd has changed the bfd_section_* macros to inline functions
> > >     bfd_section_<field> since 2019-09-18. See below two commits:
> > >       o
> > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.sour
> > ceware.org%2Fml%2Fgdb-cvs%2F2019-
> > 09%2Fmsg00064.html&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf7
> > 1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%
> > 7C0%7C0%7C637235676418274147&amp;sdata=FwmBOoCsXBdzRuExOVTl6r26
> > 3T26N9hTw5f5igDsibc%3D&amp;reserved=0
> > >       o
> > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> > > sourceware.org%2Fml%2Fgdb-cvs%2F2019-
> > 09%2Fmsg00072.html&amp;data=02%7C
> > >
> > 01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7C6
> > 86ea1
> > >
> > d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&amp;sdat
> > a=1MxK
> > >
> > Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&amp;reserved=0
> > >
> > >     This fix make perf able to build with both old and new libbfd.
> > >
> > >     Signed-off-by: Changbin Du <changbin.du@gmail.com>
> > >     Acked-by: Jiri Olsa <jolsa@redhat.com>
> > >     Cc: Peter Zijlstra <peterz@infradead.org>
> > >     Link:
> > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flore.kerne
> > l.org%2Flkml%2F20200128152938.31413-1-
> > changbin.du%40gmail.com&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%
> > 7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301
> > 635%7C0%7C0%7C637235676418274147&amp;sdata=SWo0QUl5N%2F7HTYJUr
> > Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&amp;reserved=0
> > >     Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> > >     Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
> > >
> > >  tools/perf/util/srcline.c | 16 +++++++++++++++-
> > >  1 file changed, 15 insertions(+), 1 deletion(-)
> > >
> > > I want to know when linux-qoriq will be updated next time?
> >
> > I have this patch ported to linux-imx kernel [1], probably you should do the same
> > for linux-qoriq. Try to add it into the recipe and if it would work out - send a PR.
> >
> > >
> > > Best regards
> > > Lei Maohui
> > >
> > >
> > >
> > >
> > >
> >
> > [1]:
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co
> > m%2FFreescale%2Fmeta-freescale%2Fblob%2Fmaster%2Frecipes-
> > kernel%2Flinux%2Flinux-imx-5.4.3%2F0001-perf-Make-perf-able-to-build-with-
> > latest-
> > libbfd.patch&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a5
> > 64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0
> > %7C637235676418274147&amp;sdata=7GeXcgw7qGut%2FI%2Bn%2Bq%2B42A
> > 8go1FaegAgzOzNVMPpwsk%3D&amp;reserved=0
> >
> > --
> > Regards,
> > Andrey.
> 



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750

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

* Re: [meta-freescale] a bug of perf
  2020-04-27 13:19     ` Otavio Salvador
@ 2020-04-28  2:11       ` leimaohui
  2020-04-28  2:14         ` Zhenhua Luo
  0 siblings, 1 reply; 7+ messages in thread
From: leimaohui @ 2020-04-28  2:11 UTC (permalink / raw)
  To: Otavio Salvador, Zhenhua Luo; +Cc: andrey.z, meta-freescale, Ting Liu

Hi,

So, may I backport this patch to linux-qoriq_5.4.bb and send a PR?


Best regards
Lei Maohui




> -----Original Message-----
> From: Otavio Salvador <otavio.salvador@ossystems.com.br>
> Sent: Monday, April 27, 2020 9:20 PM
> To: Zhenhua Luo <zhenhua.luo@nxp.com>
> Cc: andrey.z@gmail.com; Lei, Maohui/雷 茂慧 <leimaohui@cn.fujitsu.com>;
> meta-freescale@lists.yoctoproject.org; Ting Liu <ting.liu@nxp.com>
> Subject: Re: [meta-freescale] a bug of perf
> 
> Zhenhua,
> 
> June is too late; you need to send the fix soon or we should drop dunfell release
> for QorIQ.
> 
> On Mon, Apr 27, 2020 at 9:55 AM Zhenhua Luo <zhenhua.luo@nxp.com>
> wrote:
> > The new QorIQ SDK based on Zeus is being prepared and plan to be available
> in June, we will port the perf patch in this release.
> >
> >
> > Best Regards,
> >
> > Zhenhua
> >
> > > -----Original Message-----
> > > From: meta-freescale@lists.yoctoproject.org <meta-
> > > freescale@lists.yoctoproject.org> On Behalf Of Andrey Zhizhikin via
> > > lists.yoctoproject.org
> > > Sent: Monday, April 27, 2020 3:00 PM
> > > To: leimaohui <leimaohui@cn.fujitsu.com>
> > > Cc: meta-freescale@lists.yoctoproject.org
> > > Subject: Re: [meta-freescale] a bug of perf
> > >
> > > On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@cn.fujitsu.com>
> wrote:
> > > >
> > > > Hi,
> > > >
> > > > I met perf bug by meta-freescale as following:
> > > > ------------------------------------------------------------------
> > > > ---
> > > > tmp/work/armv8-linux/perf/1.0-r9/perf-1.0/perf-in.o: in function
> > > `find_address_in_section':
> > > > | /usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/util/srcline.c:20
> > > > | 0: undefined
> > > reference to `bfd_get_section_flags'
> > > > perf/1.0-r9/recipe-sysroot-native/usr/bin/aarch64-linux/../../libe
> > > > xec/aarch64-
> > > linux/gcc/aarch64-linux/9.3.0/ld: /usr/src/debug/perf/1.0-r9/perf-
> > > 1.0/tools/perf/util/srcline.c:204: undefined reference to
> `bfd_get_section_vma'
> > > >
> > > > I found that this bug has been fixed in upstream:
> > > > ------------------------------------------------------------------
> > > > --- commit f4d7dbafb103e4f782323017c239c548871c1567
> > > > Author: Changbin Du <changbin.du@gmail.com>
> > > > Date:   Tue Jan 28 23:29:38 2020 +0800
> > > >
> > > >     perf: Make perf able to build with latest libbfd
> > > >
> > > >     libbfd has changed the bfd_section_* macros to inline functions
> > > >     bfd_section_<field> since 2019-09-18. See below two commits:
> > > >       o
> > > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww
> > > .sour
> > > ceware.org%2Fml%2Fgdb-cvs%2F2019-
> > >
> 09%2Fmsg00064.html&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf
> 7
> > >
> 1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c30163
> 5%
> > >
> 7C0%7C0%7C637235676418274147&amp;sdata=FwmBOoCsXBdzRuExOVTl6r
> 26
> > > 3T26N9hTw5f5igDsibc%3D&amp;reserved=0
> > > >       o
> > > >
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> > > > sourceware.org%2Fml%2Fgdb-cvs%2F2019-
> > > 09%2Fmsg00072.html&amp;data=02%7C
> > > >
> > >
> 01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7
> C6
> > > 86ea1
> > > >
> > >
> d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&amp;s
> dat
> > > a=1MxK
> > > >
> > >
> Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&amp;reserved=0
> > > >
> > > >     This fix make perf able to build with both old and new libbfd.
> > > >
> > > >     Signed-off-by: Changbin Du <changbin.du@gmail.com>
> > > >     Acked-by: Jiri Olsa <jolsa@redhat.com>
> > > >     Cc: Peter Zijlstra <peterz@infradead.org>
> > > >     Link:
> > > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flor
> > > e.kerne
> > > l.org%2Flkml%2F20200128152938.31413-1-
> > >
> changbin.du%40gmail.com&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%
> > >
> 7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c3
> 01
> > >
> 635%7C0%7C0%7C637235676418274147&amp;sdata=SWo0QUl5N%2F7HTYJ
> Ur
> > > Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&amp;reserved=0
> > > >     Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> > > >     Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
> > > >
> > > >  tools/perf/util/srcline.c | 16 +++++++++++++++-
> > > >  1 file changed, 15 insertions(+), 1 deletion(-)
> > > >
> > > > I want to know when linux-qoriq will be updated next time?
> > >
> > > I have this patch ported to linux-imx kernel [1], probably you
> > > should do the same for linux-qoriq. Try to add it into the recipe and if it
> would work out - send a PR.
> > >
> > > >
> > > > Best regards
> > > > Lei Maohui
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > > [1]:
> > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgi
> > > thub.co
> > > m%2FFreescale%2Fmeta-freescale%2Fblob%2Fmaster%2Frecipes-
> > > kernel%2Flinux%2Flinux-imx-5.4.3%2F0001-perf-Make-perf-able-to-build
> > > -with-
> > > latest-
> > >
> libbfd.patch&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a
> 5
> > >
> 64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7
> C0
> > > %7C637235676418274147&amp;sdata=7GeXcgw7qGut%2FI%2Bn%2Bq%2
> B42A
> > > 8go1FaegAgzOzNVMPpwsk%3D&amp;reserved=0
> > >
> > > --
> > > Regards,
> > > Andrey.
> > 
> 
> 
> 
> --
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://code.ossystems.com.br
> Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750
> 




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

* Re: [meta-freescale] a bug of perf
  2020-04-28  2:11       ` leimaohui
@ 2020-04-28  2:14         ` Zhenhua Luo
  2020-04-28  3:24           ` leimaohui
  0 siblings, 1 reply; 7+ messages in thread
From: Zhenhua Luo @ 2020-04-28  2:14 UTC (permalink / raw)
  To: Lei, Maohui, Otavio Salvador; +Cc: andrey.z, meta-freescale, Ting Liu

Sure, it would be helpful if you can submit the patch. 


Best Regards, 

Zhenhua

> -----Original Message-----
> From: Lei, Maohui <leimaohui@cn.fujitsu.com>
> Sent: Tuesday, April 28, 2020 10:11 AM
> To: Otavio Salvador <otavio.salvador@ossystems.com.br>; Zhenhua Luo
> <zhenhua.luo@nxp.com>
> Cc: andrey.z@gmail.com; meta-freescale@lists.yoctoproject.org; Ting Liu
> <ting.liu@nxp.com>
> Subject: RE: [meta-freescale] a bug of perf
> 
> Hi,
> 
> So, may I backport this patch to linux-qoriq_5.4.bb and send a PR?
> 
> 
> Best regards
> Lei Maohui
> 
> 
> 
> 
> > -----Original Message-----
> > From: Otavio Salvador <otavio.salvador@ossystems.com.br>
> > Sent: Monday, April 27, 2020 9:20 PM
> > To: Zhenhua Luo <zhenhua.luo@nxp.com>
> > Cc: andrey.z@gmail.com; Lei, Maohui/雷 茂慧 <leimaohui@cn.fujitsu.com>;
> > meta-freescale@lists.yoctoproject.org; Ting Liu <ting.liu@nxp.com>
> > Subject: Re: [meta-freescale] a bug of perf
> >
> > Zhenhua,
> >
> > June is too late; you need to send the fix soon or we should drop
> > dunfell release for QorIQ.
> >
> > On Mon, Apr 27, 2020 at 9:55 AM Zhenhua Luo <zhenhua.luo@nxp.com>
> > wrote:
> > > The new QorIQ SDK based on Zeus is being prepared and plan to be
> > > available
> > in June, we will port the perf patch in this release.
> > >
> > >
> > > Best Regards,
> > >
> > > Zhenhua
> > >
> > > > -----Original Message-----
> > > > From: meta-freescale@lists.yoctoproject.org <meta-
> > > > freescale@lists.yoctoproject.org> On Behalf Of Andrey Zhizhikin
> > > > via lists.yoctoproject.org
> > > > Sent: Monday, April 27, 2020 3:00 PM
> > > > To: leimaohui <leimaohui@cn.fujitsu.com>
> > > > Cc: meta-freescale@lists.yoctoproject.org
> > > > Subject: Re: [meta-freescale] a bug of perf
> > > >
> > > > On Mon, Apr 27, 2020 at 8:54 AM leimaohui
> > > > <leimaohui@cn.fujitsu.com>
> > wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > I met perf bug by meta-freescale as following:
> > > > > ----------------------------------------------------------------
> > > > > --
> > > > > ---
> > > > > tmp/work/armv8-linux/perf/1.0-r9/perf-1.0/perf-in.o: in function
> > > > `find_address_in_section':
> > > > > | /usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/util/srcline.c:
> > > > > | 20
> > > > > | 0: undefined
> > > > reference to `bfd_get_section_flags'
> > > > > perf/1.0-r9/recipe-sysroot-native/usr/bin/aarch64-linux/../../li
> > > > > be
> > > > > xec/aarch64-
> > > > linux/gcc/aarch64-linux/9.3.0/ld: /usr/src/debug/perf/1.0-r9/perf-
> > > > 1.0/tools/perf/util/srcline.c:204: undefined reference to
> > `bfd_get_section_vma'
> > > > >
> > > > > I found that this bug has been fixed in upstream:
> > > > > ----------------------------------------------------------------
> > > > > --
> > > > > --- commit f4d7dbafb103e4f782323017c239c548871c1567
> > > > > Author: Changbin Du <changbin.du@gmail.com>
> > > > > Date:   Tue Jan 28 23:29:38 2020 +0800
> > > > >
> > > > >     perf: Make perf able to build with latest libbfd
> > > > >
> > > > >     libbfd has changed the bfd_section_* macros to inline functions
> > > > >     bfd_section_<field> since 2019-09-18. See below two commits:
> > > > >       o
> > > > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fw
> > > > ww
> > > > .sour
> > > > ceware.org%2Fml%2Fgdb-cvs%2F2019-
> > > >
> > 09%2Fmsg00064.html&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf
> > 7
> > > >
> > 1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c30163
> > 5%
> > > >
> > 7C0%7C0%7C637235676418274147&amp;sdata=FwmBOoCsXBdzRuExOVTl6r
> > 26
> > > > 3T26N9hTw5f5igDsibc%3D&amp;reserved=0
> > > > >       o
> > > > >
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> > > > > sourceware.org%2Fml%2Fgdb-cvs%2F2019-
> > > > 09%2Fmsg00072.html&amp;data=02%7C
> > > > >
> > > >
> > 01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7
> > C6
> > > > 86ea1
> > > > >
> > > >
> > d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&amp;s
> > dat
> > > > a=1MxK
> > > > >
> > > >
> >
> Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&amp;reserved=0
> > > > >
> > > > >     This fix make perf able to build with both old and new libbfd.
> > > > >
> > > > >     Signed-off-by: Changbin Du <changbin.du@gmail.com>
> > > > >     Acked-by: Jiri Olsa <jolsa@redhat.com>
> > > > >     Cc: Peter Zijlstra <peterz@infradead.org>
> > > > >     Link:
> > > > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fl
> > > > or
> > > > e.kerne
> > > > l.org%2Flkml%2F20200128152938.31413-1-
> > > >
> > changbin.du%40gmail.com&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%
> > > >
> > 7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c3
> > 01
> > > >
> > 635%7C0%7C0%7C637235676418274147&amp;sdata=SWo0QUl5N%2F7HTYJ
> > Ur
> > > > Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&amp;reserved=0
> > > > >     Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> > > > >     Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
> > > > >
> > > > >  tools/perf/util/srcline.c | 16 +++++++++++++++-
> > > > >  1 file changed, 15 insertions(+), 1 deletion(-)
> > > > >
> > > > > I want to know when linux-qoriq will be updated next time?
> > > >
> > > > I have this patch ported to linux-imx kernel [1], probably you
> > > > should do the same for linux-qoriq. Try to add it into the recipe
> > > > and if it
> > would work out - send a PR.
> > > >
> > > > >
> > > > > Best regards
> > > > > Lei Maohui
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > [1]:
> > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
> > > > gi
> > > > thub.co
> > > > m%2FFreescale%2Fmeta-freescale%2Fblob%2Fmaster%2Frecipes-
> > > > kernel%2Flinux%2Flinux-imx-5.4.3%2F0001-perf-Make-perf-able-to-bui
> > > > ld
> > > > -with-
> > > > latest-
> > > >
> >
> libbfd.patch&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a
> > 5
> > > >
> > 64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7
> > C0
> > > > %7C637235676418274147&amp;sdata=7GeXcgw7qGut%2FI%2Bn%2Bq%2
> > B42A
> > > > 8go1FaegAgzOzNVMPpwsk%3D&amp;reserved=0
> > > >
> > > > --
> > > > Regards,
> > > > Andrey.
> > > 
> >
> >
> >
> > --
> > Otavio Salvador                             O.S. Systems
> >
> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossy
> stems.com.br%2F&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7C30020
> e3359094e7919d608d7eb1976ce%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C
> 0%7C0%7C637236366912969329&amp;sdata=8U%2BNwWIXqiFvSeRvWEWXBU
> eARA%2BM4qyI%2BIhbWeLx8eQ%3D&amp;reserved=0
> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossy
> stems.com.br%2F&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7C30020
> e3359094e7919d608d7eb1976ce%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C
> 0%7C0%7C637236366912969329&amp;sdata=CQ7mUCam9qkJfNNEVuyxLajEO
> VSUFRf8sjYKaomopak%3D&amp;reserved=0
> > Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750
> >
> 
> 


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

* Re: [meta-freescale] a bug of perf
  2020-04-28  2:14         ` Zhenhua Luo
@ 2020-04-28  3:24           ` leimaohui
  0 siblings, 0 replies; 7+ messages in thread
From: leimaohui @ 2020-04-28  3:24 UTC (permalink / raw)
  To: Zhenhua Luo, Otavio Salvador; +Cc: andrey.z, meta-freescale, Ting Liu

OK, thank you for your reply.

Best regards
Lei

> -----Original Message-----
> From: Zhenhua Luo <zhenhua.luo@nxp.com>
> Sent: Tuesday, April 28, 2020 10:14 AM
> To: Lei, Maohui <leimaohui@cn.fujitsu.com>; Otavio Salvador
> <otavio.salvador@ossystems.com.br>
> Cc: andrey.z@gmail.com; meta-freescale@lists.yoctoproject.org; Ting Liu
> <ting.liu@nxp.com>
> Subject: RE: [meta-freescale] a bug of perf
> 
> Sure, it would be helpful if you can submit the patch.
> 
> 
> Best Regards,
> 
> Zhenhua
> 
> > -----Original Message-----
> > From: Lei, Maohui <leimaohui@cn.fujitsu.com>
> > Sent: Tuesday, April 28, 2020 10:11 AM
> > To: Otavio Salvador <otavio.salvador@ossystems.com.br>; Zhenhua Luo
> > <zhenhua.luo@nxp.com>
> > Cc: andrey.z@gmail.com; meta-freescale@lists.yoctoproject.org; Ting
> > Liu <ting.liu@nxp.com>
> > Subject: RE: [meta-freescale] a bug of perf
> >
> > Hi,
> >
> > So, may I backport this patch to linux-qoriq_5.4.bb and send a PR?
> >
> >
> > Best regards
> > Lei Maohui
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Otavio Salvador <otavio.salvador@ossystems.com.br>
> > > Sent: Monday, April 27, 2020 9:20 PM
> > > To: Zhenhua Luo <zhenhua.luo@nxp.com>
> > > Cc: andrey.z@gmail.com; Lei, Maohui/雷 茂慧 <leimaohui@cn.fujitsu.com>;
> > > meta-freescale@lists.yoctoproject.org; Ting Liu <ting.liu@nxp.com>
> > > Subject: Re: [meta-freescale] a bug of perf
> > >
> > > Zhenhua,
> > >
> > > June is too late; you need to send the fix soon or we should drop
> > > dunfell release for QorIQ.
> > >
> > > On Mon, Apr 27, 2020 at 9:55 AM Zhenhua Luo <zhenhua.luo@nxp.com>
> > > wrote:
> > > > The new QorIQ SDK based on Zeus is being prepared and plan to be
> > > > available
> > > in June, we will port the perf patch in this release.
> > > >
> > > >
> > > > Best Regards,
> > > >
> > > > Zhenhua
> > > >
> > > > > -----Original Message-----
> > > > > From: meta-freescale@lists.yoctoproject.org <meta-
> > > > > freescale@lists.yoctoproject.org> On Behalf Of Andrey Zhizhikin
> > > > > via lists.yoctoproject.org
> > > > > Sent: Monday, April 27, 2020 3:00 PM
> > > > > To: leimaohui <leimaohui@cn.fujitsu.com>
> > > > > Cc: meta-freescale@lists.yoctoproject.org
> > > > > Subject: Re: [meta-freescale] a bug of perf
> > > > >
> > > > > On Mon, Apr 27, 2020 at 8:54 AM leimaohui
> > > > > <leimaohui@cn.fujitsu.com>
> > > wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I met perf bug by meta-freescale as following:
> > > > > > --------------------------------------------------------------
> > > > > > --
> > > > > > --
> > > > > > ---
> > > > > > tmp/work/armv8-linux/perf/1.0-r9/perf-1.0/perf-in.o: in
> > > > > > function
> > > > > `find_address_in_section':
> > > > > > | /usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/util/srcline.c:
> > > > > > | 20
> > > > > > | 0: undefined
> > > > > reference to `bfd_get_section_flags'
> > > > > > perf/1.0-r9/recipe-sysroot-native/usr/bin/aarch64-linux/../../
> > > > > > li
> > > > > > be
> > > > > > xec/aarch64-
> > > > > linux/gcc/aarch64-linux/9.3.0/ld:
> > > > > /usr/src/debug/perf/1.0-r9/perf-
> > > > > 1.0/tools/perf/util/srcline.c:204: undefined reference to
> > > `bfd_get_section_vma'
> > > > > >
> > > > > > I found that this bug has been fixed in upstream:
> > > > > > --------------------------------------------------------------
> > > > > > --
> > > > > > --
> > > > > > --- commit f4d7dbafb103e4f782323017c239c548871c1567
> > > > > > Author: Changbin Du <changbin.du@gmail.com>
> > > > > > Date:   Tue Jan 28 23:29:38 2020 +0800
> > > > > >
> > > > > >     perf: Make perf able to build with latest libbfd
> > > > > >
> > > > > >     libbfd has changed the bfd_section_* macros to inline functions
> > > > > >     bfd_section_<field> since 2019-09-18. See below two commits:
> > > > > >       o
> > > > > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2
> > > > > Fw
> > > > > ww
> > > > > .sour
> > > > > ceware.org%2Fml%2Fgdb-cvs%2F2019-
> > > > >
> > >
> 09%2Fmsg00064.html&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf
> > > 7
> > > > >
> > >
> 1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c30163
> > > 5%
> > > > >
> > >
> 7C0%7C0%7C637235676418274147&amp;sdata=FwmBOoCsXBdzRuExOVTl6r
> > > 26
> > > > > 3T26N9hTw5f5igDsibc%3D&amp;reserved=0
> > > > > >       o
> > > > > >
> > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> > > > > > sourceware.org%2Fml%2Fgdb-cvs%2F2019-
> > > > > 09%2Fmsg00072.html&amp;data=02%7C
> > > > > >
> > > > >
> > >
> 01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7
> > > C6
> > > > > 86ea1
> > > > > >
> > > > >
> > >
> d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&amp;s
> > > dat
> > > > > a=1MxK
> > > > > >
> > > > >
> > >
> >
> Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&amp;reserved=0
> > > > > >
> > > > > >     This fix make perf able to build with both old and new libbfd.
> > > > > >
> > > > > >     Signed-off-by: Changbin Du <changbin.du@gmail.com>
> > > > > >     Acked-by: Jiri Olsa <jolsa@redhat.com>
> > > > > >     Cc: Peter Zijlstra <peterz@infradead.org>
> > > > > >     Link:
> > > > > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2
> > > > > Fl
> > > > > or
> > > > > e.kerne
> > > > > l.org%2Flkml%2F20200128152938.31413-1-
> > > > >
> > >
> changbin.du%40gmail.com&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%
> > > > >
> > >
> 7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c3
> > > 01
> > > > >
> > >
> 635%7C0%7C0%7C637235676418274147&amp;sdata=SWo0QUl5N%2F7HTYJ
> > > Ur
> > > > > Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&amp;reserved=0
> > > > > >     Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> > > > > >     Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
> > > > > >
> > > > > >  tools/perf/util/srcline.c | 16 +++++++++++++++-
> > > > > >  1 file changed, 15 insertions(+), 1 deletion(-)
> > > > > >
> > > > > > I want to know when linux-qoriq will be updated next time?
> > > > >
> > > > > I have this patch ported to linux-imx kernel [1], probably you
> > > > > should do the same for linux-qoriq. Try to add it into the
> > > > > recipe and if it
> > > would work out - send a PR.
> > > > >
> > > > > >
> > > > > > Best regards
> > > > > > Lei Maohui
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > [1]:
> > > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%
> > > > > 2F
> > > > > gi
> > > > > thub.co
> > > > > m%2FFreescale%2Fmeta-freescale%2Fblob%2Fmaster%2Frecipes-
> > > > > kernel%2Flinux%2Flinux-imx-5.4.3%2F0001-perf-Make-perf-able-to-b
> > > > > ui
> > > > > ld
> > > > > -with-
> > > > > latest-
> > > > >
> > >
> >
> libbfd.patch&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a
> > > 5
> > > > >
> > >
> 64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7
> > > C0
> > > > > %7C637235676418274147&amp;sdata=7GeXcgw7qGut%2FI%2Bn%2Bq
> %2
> > > B42A
> > > > > 8go1FaegAgzOzNVMPpwsk%3D&amp;reserved=0
> > > > >
> > > > > --
> > > > > Regards,
> > > > > Andrey.
> > > > 
> > >
> > >
> > >
> > > --
> > > Otavio Salvador                             O.S. Systems
> > >
> > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
> > ssy
> >
> stems.com.br%2F&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7C30020
> >
> e3359094e7919d608d7eb1976ce%7C686ea1d3bc2b4c6fa92cd99c5c301635
> %7C
> >
> 0%7C0%7C637236366912969329&amp;sdata=8U%2BNwWIXqiFvSeRvWEWXB
> U
> > eARA%2BM4qyI%2BIhbWeLx8eQ%3D&amp;reserved=0
> > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.
> > ossy
> >
> stems.com.br%2F&amp;data=02%7C01%7Czhenhua.luo%40nxp.com%7C30020
> >
> e3359094e7919d608d7eb1976ce%7C686ea1d3bc2b4c6fa92cd99c5c301635
> %7C
> >
> 0%7C0%7C637236366912969329&amp;sdata=CQ7mUCam9qkJfNNEVuyxLajE
> O
> > VSUFRf8sjYKaomopak%3D&amp;reserved=0
> > > Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750
> > >
> >
> >
> 
> 




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

end of thread, other threads:[~2020-04-28  3:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-27  6:54 a bug of perf leimaohui
2020-04-27  7:00 ` [meta-freescale] " Andrey Zhizhikin
2020-04-27 12:55   ` Zhenhua Luo
2020-04-27 13:19     ` Otavio Salvador
2020-04-28  2:11       ` leimaohui
2020-04-28  2:14         ` Zhenhua Luo
2020-04-28  3:24           ` leimaohui

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).