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@...> 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@...> Acked-by: Jiri Olsa <jolsa@...> Cc: Peter Zijlstra <peterz@...> Link: http://lore.kernel.org/lkml/20200128152938.31413-1-changbin.du@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@...> Signed-off-by: Bruce Ashfield <bruce.ashfield@...> 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
|
|
On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@...> 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@...> 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@...> Acked-by: Jiri Olsa <jolsa@...> Cc: Peter Zijlstra <peterz@...> Link: http://lore.kernel.org/lkml/20200128152938.31413-1-changbin.du@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@...> Signed-off-by: Bruce Ashfield <bruce.ashfield@...>
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.
|
|
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
toggle quoted message
Show quoted text
-----Original Message----- From: meta-freescale@... <meta- freescale@...> On Behalf Of Andrey Zhizhikin via lists.yoctoproject.org Sent: Monday, April 27, 2020 3:00 PM To: leimaohui <leimaohui@...> Cc: meta-freescale@... Subject: Re: [meta-freescale] a bug of perf
On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@...> 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@...> 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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf7 1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635% 7C0%7C0%7C637235676418274147&sdata=FwmBOoCsXBdzRuExOVTl6r26 3T26N9hTw5f5igDsibc%3D&reserved=0
o https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. sourceware.org%2Fml%2Fgdb-cvs%2F2019- 09%2Fmsg00072.html&data=02%7C 01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7C6 86ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&sdat a=1MxK Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&reserved=0
This fix make perf able to build with both old and new libbfd.
Signed-off-by: Changbin Du <changbin.du@...> Acked-by: Jiri Olsa <jolsa@...> Cc: Peter Zijlstra <peterz@...> Link: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flore.kerne l.org%2Flkml%2F20200128152938.31413-1- changbin.du%40gmail.com&data=02%7C01%7Czhenhua.luo%40nxp.com% 7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301 635%7C0%7C0%7C637235676418274147&sdata=SWo0QUl5N%2F7HTYJUr Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&reserved=0
Signed-off-by: Arnaldo Carvalho de Melo <acme@...> Signed-off-by: Bruce Ashfield <bruce.ashfield@...>
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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a5 64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0 %7C637235676418274147&sdata=7GeXcgw7qGut%2FI%2Bn%2Bq%2B42A 8go1FaegAgzOzNVMPpwsk%3D&reserved=0
-- Regards, Andrey.
|
|
Zhenhua,
June is too late; you need to send the fix soon or we should drop dunfell release for QorIQ.
toggle quoted message
Show quoted text
On Mon, Apr 27, 2020 at 9:55 AM Zhenhua Luo <zhenhua.luo@...> 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@... <meta- freescale@...> On Behalf Of Andrey Zhizhikin via lists.yoctoproject.org Sent: Monday, April 27, 2020 3:00 PM To: leimaohui <leimaohui@...> Cc: meta-freescale@... Subject: Re: [meta-freescale] a bug of perf
On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@...> 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@...> 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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf7 1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635% 7C0%7C0%7C637235676418274147&sdata=FwmBOoCsXBdzRuExOVTl6r26 3T26N9hTw5f5igDsibc%3D&reserved=0
o https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. sourceware.org%2Fml%2Fgdb-cvs%2F2019- 09%2Fmsg00072.html&data=02%7C 01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7C6 86ea1 d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&sdat a=1MxK Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&reserved=0
This fix make perf able to build with both old and new libbfd.
Signed-off-by: Changbin Du <changbin.du@...> Acked-by: Jiri Olsa <jolsa@...> Cc: Peter Zijlstra <peterz@...> Link: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flore.kerne l.org%2Flkml%2F20200128152938.31413-1- changbin.du%40gmail.com&data=02%7C01%7Czhenhua.luo%40nxp.com% 7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301 635%7C0%7C0%7C637235676418274147&sdata=SWo0QUl5N%2F7HTYJUr Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&reserved=0
Signed-off-by: Arnaldo Carvalho de Melo <acme@...> Signed-off-by: Bruce Ashfield <bruce.ashfield@...>
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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a5 64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0 %7C637235676418274147&sdata=7GeXcgw7qGut%2FI%2Bn%2Bq%2B42A 8go1FaegAgzOzNVMPpwsk%3D&reserved=0
-- Regards, Andrey.
|
|
Hi,
So, may I backport this patch to linux-qoriq_5.4.bb and send a PR?
Best regards Lei Maohui
toggle quoted message
Show quoted text
-----Original Message----- From: Otavio Salvador <otavio.salvador@...> Sent: Monday, April 27, 2020 9:20 PM To: Zhenhua Luo <zhenhua.luo@...> Cc: andrey.z@...; Lei, Maohui/雷 茂慧 <leimaohui@...>; meta-freescale@...; Ting Liu <ting.liu@...> 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@...> 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@... <meta- freescale@...> On Behalf Of Andrey Zhizhikin via lists.yoctoproject.org Sent: Monday, April 27, 2020 3:00 PM To: leimaohui <leimaohui@...> Cc: meta-freescale@... Subject: Re: [meta-freescale] a bug of perf
On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@...> 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@...> 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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf 7
1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c30163 5%
7C0%7C0%7C637235676418274147&sdata=FwmBOoCsXBdzRuExOVTl6r 26
3T26N9hTw5f5igDsibc%3D&reserved=0
o
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
sourceware.org%2Fml%2Fgdb-cvs%2F2019- 09%2Fmsg00072.html&data=02%7C
01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7 C6
86ea1
d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&s dat
a=1MxK
Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&reserved=0
This fix make perf able to build with both old and new libbfd.
Signed-off-by: Changbin Du <changbin.du@...> Acked-by: Jiri Olsa <jolsa@...> Cc: Peter Zijlstra <peterz@...> Link: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flor e.kerne l.org%2Flkml%2F20200128152938.31413-1-
changbin.du%40gmail.com&data=02%7C01%7Czhenhua.luo%40nxp.com%
7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c3 01
635%7C0%7C0%7C637235676418274147&sdata=SWo0QUl5N%2F7HTYJ Ur
Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&reserved=0
Signed-off-by: Arnaldo Carvalho de Melo <acme@...> Signed-off-by: Bruce Ashfield <bruce.ashfield@...>
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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a 5
64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7 C0
%7C637235676418274147&sdata=7GeXcgw7qGut%2FI%2Bn%2Bq%2 B42A
8go1FaegAgzOzNVMPpwsk%3D&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
|
|
Sure, it would be helpful if you can submit the patch.
Best Regards,
Zhenhua
toggle quoted message
Show quoted text
-----Original Message----- From: Lei, Maohui <leimaohui@...> Sent: Tuesday, April 28, 2020 10:11 AM To: Otavio Salvador <otavio.salvador@...>; Zhenhua Luo <zhenhua.luo@...> Cc: andrey.z@...; meta-freescale@...; Ting Liu <ting.liu@...> 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@...> Sent: Monday, April 27, 2020 9:20 PM To: Zhenhua Luo <zhenhua.luo@...> Cc: andrey.z@...; Lei, Maohui/雷 茂慧 <leimaohui@...>; meta-freescale@...; Ting Liu <ting.liu@...> 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@...> 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@... <meta- freescale@...> On Behalf Of Andrey Zhizhikin via lists.yoctoproject.org Sent: Monday, April 27, 2020 3:00 PM To: leimaohui <leimaohui@...> Cc: meta-freescale@... Subject: Re: [meta-freescale] a bug of perf
On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@...> 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@...> 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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf 7
1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c30163 5%
7C0%7C0%7C637235676418274147&sdata=FwmBOoCsXBdzRuExOVTl6r 26
3T26N9hTw5f5igDsibc%3D&reserved=0
o
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
sourceware.org%2Fml%2Fgdb-cvs%2F2019- 09%2Fmsg00072.html&data=02%7C
01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7 C6
86ea1
d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&s dat
a=1MxK
Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&reserved=0
This fix make perf able to build with both old and new libbfd.
Signed-off-by: Changbin Du <changbin.du@...> Acked-by: Jiri Olsa <jolsa@...> Cc: Peter Zijlstra <peterz@...> 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&data=02%7C01%7Czhenhua.luo%40nxp.com%
7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c3 01
635%7C0%7C0%7C637235676418274147&sdata=SWo0QUl5N%2F7HTYJ Ur
Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&reserved=0
Signed-off-by: Arnaldo Carvalho de Melo <acme@...> Signed-off-by: Bruce Ashfield <bruce.ashfield@...>
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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a
5
64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7 C0
%7C637235676418274147&sdata=7GeXcgw7qGut%2FI%2Bn%2Bq%2 B42A
8go1FaegAgzOzNVMPpwsk%3D&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&data=02%7C01%7Czhenhua.luo%40nxp.com%7C30020 e3359094e7919d608d7eb1976ce%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C 0%7C0%7C637236366912969329&sdata=8U%2BNwWIXqiFvSeRvWEWXBU eARA%2BM4qyI%2BIhbWeLx8eQ%3D&reserved=0 https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossy stems.com.br%2F&data=02%7C01%7Czhenhua.luo%40nxp.com%7C30020 e3359094e7919d608d7eb1976ce%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C 0%7C0%7C637236366912969329&sdata=CQ7mUCam9qkJfNNEVuyxLajEO VSUFRf8sjYKaomopak%3D&reserved=0
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
|
|
OK, thank you for your reply.
Best regards Lei
toggle quoted message
Show quoted text
-----Original Message----- From: Zhenhua Luo <zhenhua.luo@...> Sent: Tuesday, April 28, 2020 10:14 AM To: Lei, Maohui <leimaohui@...>; Otavio Salvador <otavio.salvador@...> Cc: andrey.z@...; meta-freescale@...; Ting Liu <ting.liu@...> 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@...> Sent: Tuesday, April 28, 2020 10:11 AM To: Otavio Salvador <otavio.salvador@...>; Zhenhua Luo <zhenhua.luo@...> Cc: andrey.z@...; meta-freescale@...; Ting Liu <ting.liu@...> 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@...> Sent: Monday, April 27, 2020 9:20 PM To: Zhenhua Luo <zhenhua.luo@...> Cc: andrey.z@...; Lei, Maohui/雷 茂慧 <leimaohui@...>; meta-freescale@...; Ting Liu <ting.liu@...> 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@...> 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@... <meta- freescale@...> On Behalf Of Andrey Zhizhikin via lists.yoctoproject.org Sent: Monday, April 27, 2020 3:00 PM To: leimaohui <leimaohui@...> Cc: meta-freescale@... Subject: Re: [meta-freescale] a bug of perf
On Mon, Apr 27, 2020 at 8:54 AM leimaohui <leimaohui@...> 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@...> 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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf
7
1fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c30163
5%
7C0%7C0%7C637235676418274147&sdata=FwmBOoCsXBdzRuExOVTl6r
26
3T26N9hTw5f5igDsibc%3D&reserved=0
o
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
sourceware.org%2Fml%2Fgdb-cvs%2F2019- 09%2Fmsg00072.html&data=02%7C
01%7Czhenhua.luo%40nxp.com%7Cf71fca435a564dbe676308d7ea78b14f%7
C6
86ea1
d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637235676418274147&s
dat
a=1MxK
Fc6pEwt0rlYQ0%2Fc1%2F%2FETpkOLRMyyC99FRh0aCpU%3D&reserved=0
This fix make perf able to build with both old and new libbfd.
Signed-off-by: Changbin Du <changbin.du@...> Acked-by: Jiri Olsa <jolsa@...> Cc: Peter Zijlstra <peterz@...> 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&data=02%7C01%7Czhenhua.luo%40nxp.com%
7Cf71fca435a564dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c3
01
635%7C0%7C0%7C637235676418274147&sdata=SWo0QUl5N%2F7HTYJ
Ur
Udyo4zgn%2BG844E4ZdB9cLcCEco%3D&reserved=0
Signed-off-by: Arnaldo Carvalho de Melo <acme@...> Signed-off-by: Bruce Ashfield <bruce.ashfield@...>
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&data=02%7C01%7Czhenhua.luo%40nxp.com%7Cf71fca435a
5
64dbe676308d7ea78b14f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7
C0
%7C637235676418274147&sdata=7GeXcgw7qGut%2FI%2Bn%2Bq
%2
B42A
8go1FaegAgzOzNVMPpwsk%3D&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&data=02%7C01%7Czhenhua.luo%40nxp.com%7C30020 e3359094e7919d608d7eb1976ce%7C686ea1d3bc2b4c6fa92cd99c5c301635 %7C 0%7C0%7C637236366912969329&sdata=8U%2BNwWIXqiFvSeRvWEWXB U
eARA%2BM4qyI%2BIhbWeLx8eQ%3D&reserved=0 https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode. ossy
stems.com.br%2F&data=02%7C01%7Czhenhua.luo%40nxp.com%7C30020 e3359094e7919d608d7eb1976ce%7C686ea1d3bc2b4c6fa92cd99c5c301635 %7C 0%7C0%7C637236366912969329&sdata=CQ7mUCam9qkJfNNEVuyxLajE O
VSUFRf8sjYKaomopak%3D&reserved=0
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
|
|