[gcc r15-1787] ctf, btf: restructure CTF/BTF emission

2024-07-02 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:d3f586ec50d3d502e0727e8307ae76770fdaee79 commit r15-1787-gd3f586ec50d3d502e0727e8307ae76770fdaee79 Author: David Faust Date: Thu May 30 14:06:27 2024 -0700 ctf, btf: restructure CTF/BTF emission This commit makes some structural changes to the CTF/BTF debug i

[gcc r15-1788] ctf: use pointers instead of IDs internally

2024-07-02 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:36774cec1f8d224e202dd3ca2012dae79d4e8ba9 commit r15-1788-g36774cec1f8d224e202dd3ca2012dae79d4e8ba9 Author: David Faust Date: Thu May 30 14:06:27 2024 -0700 ctf: use pointers instead of IDs internally This patch replaces all inter-type references in the ctfc i

[gcc r15-1789] btf: refactor and simplify implementation

2024-07-02 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:616c44f02b574b2b6c9dc24b30bb75de8e8b9640 commit r15-1789-g616c44f02b574b2b6c9dc24b30bb75de8e8b9640 Author: David Faust Date: Thu May 30 14:06:27 2024 -0700 btf: refactor and simplify implementation This patch heavily refactors btfout.cc to take advantage of t

[gcc r15-1790] btf: add -gprune-btf option

2024-07-02 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:b8977d928a7a261913dd89db55d4123b6a54ba46 commit r15-1790-gb8977d928a7a261913dd89db55d4123b6a54ba46 Author: David Faust Date: Mon Jun 10 10:54:53 2024 -0700 btf: add -gprune-btf option This patch adds a new option, -gprune-btf, to control BTF debug info ge

[gcc r15-1791] bpf,btf: enable BTF pruning by default for BPF

2024-07-02 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:189d0f1fc2cd2de1815ce5ead8ac87f3cba32010 commit r15-1791-g189d0f1fc2cd2de1815ce5ead8ac87f3cba32010 Author: David Faust Date: Mon Jun 10 10:59:05 2024 -0700 bpf,btf: enable BTF pruning by default for BPF This patch enables -gprune-btf by default in the BPF bac

[gcc r15-1792] Regenerate common.opt.urls

2024-07-02 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:cc63b59e8843f049587b7a548a530f710085e577 commit r15-1792-gcc63b59e8843f049587b7a548a530f710085e577 Author: David Faust Date: Tue Jul 2 11:39:50 2024 -0700 Regenerate common.opt.urls I was not aware of the requirement to regenerate the opt urls files when

[gcc r14-9398] bpf: testsuite: fix unresolved test in memset-1.c

2024-03-08 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:10c609191c4462133d6a4ea10a739167204f2cd3 commit r14-9398-g10c609191c4462133d6a4ea10a739167204f2cd3 Author: David Faust Date: Thu Mar 7 09:23:38 2024 -0800 bpf: testsuite: fix unresolved test in memset-1.c The test was trying to do too much by both checking fo

[gcc r14-9400] bpf: add size threshold for inlining mem builtins

2024-03-08 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:0e850eff58539fb79483664962fac6c46d65c79d commit r14-9400-g0e850eff58539fb79483664962fac6c46d65c79d Author: David Faust Date: Thu Mar 7 09:29:32 2024 -0800 bpf: add size threshold for inlining mem builtins BPF cannot fall back on library calls to implement mem

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] btf: fix type id in BTF_KIND_FUNC struct data.

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:193966aab3bba1ca27630a23f4b575c53be9af03 commit 193966aab3bba1ca27630a23f4b575c53be9af03 Author: Cupertino Miranda Date: Tue Jan 30 19:01:12 2024 + btf: fix type id in BTF_KIND_FUNC struct data. This patch corrects the addition of +1 on the type id, which

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] btf: add BTF_KIND_FUNC traversal function.

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:1ab0c08b0885fa7549a635f9bae1422499562fc8 commit 1ab0c08b0885fa7549a635f9bae1422499562fc8 Author: Cupertino Miranda Date: Mon Feb 12 17:36:21 2024 + btf: add BTF_KIND_FUNC traversal function. The patch adds a traversal function to traverse all BTF_KIND_FUN

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] bpf: Always emit .BTF.ext section if generating BTF

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:4583f84ba8e6729079e4ca5f745b4ebc58b27ab5 commit 4583f84ba8e6729079e4ca5f745b4ebc58b27ab5 Author: Cupertino Miranda Date: Mon Feb 12 17:37:37 2024 + bpf: Always emit .BTF.ext section if generating BTF BPF applications, when generating BTF information shoul

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] bpf: implementation of func_info in .BTF.ext.

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:ab9ca7ee0825823e24048a1c213ef2dc587d6bc7 commit ab9ca7ee0825823e24048a1c213ef2dc587d6bc7 Author: Cupertino Miranda Date: Mon Feb 12 17:46:03 2024 + bpf: implementation of func_info in .BTF.ext. Kernel verifier complains in some particular cases for missin

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] bpf: renames coreout.* files to btfext-out.*.

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:5cb3615ed932faa521e2587c047b0771816c14aa commit 5cb3615ed932faa521e2587c047b0771816c14aa Author: Cupertino Miranda Date: Mon Feb 12 17:56:04 2024 + bpf: renames coreout.* files to btfext-out.*. gcc/ChangeLog: * config.gcc (target_gtfiles)

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] bpf: add inline memset expansion

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:548dbf6f87878800f214982e6c6d104b8a2a6ea1 commit 548dbf6f87878800f214982e6c6d104b8a2a6ea1 Author: David Faust Date: Mon Mar 4 09:35:01 2024 -0800 bpf: add inline memset expansion Similar to memmove and memcpy, the BPF backend cannot fall back on a library

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] ctf: fix incorrect CTF for multi-dimensional array types

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:f2cd7e1cb3d326ceb5af3e4629f1ab19dabe6d3f commit f2cd7e1cb3d326ceb5af3e4629f1ab19dabe6d3f Author: Cupertino Miranda Date: Thu Feb 29 10:56:13 2024 -0800 ctf: fix incorrect CTF for multi-dimensional array types PR debug/114186 DWARF DIEs of type DW_TAG

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] bpf: testsuite: fix unresolved test in memset-1.c

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:64e6da250a07c19d302ec8648824cb42b608cf62 commit 64e6da250a07c19d302ec8648824cb42b608cf62 Author: David Faust Date: Thu Mar 7 09:23:38 2024 -0800 bpf: testsuite: fix unresolved test in memset-1.c The test was trying to do too much by both checking for an error

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] bpf: add size threshold for inlining mem builtins

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:333445364ba7829dde7a9e8548a26c26eb979c21 commit 333445364ba7829dde7a9e8548a26c26eb979c21 Author: David Faust Date: Thu Mar 7 09:29:32 2024 -0800 bpf: add size threshold for inlining mem builtins BPF cannot fall back on library calls to implement memmove, memc

[gcc(refs/users/dfaust/heads/gcc-13-bpf)] testsuite: ctf: make array in ctf-file-scope-1 fixed length

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:3eae1cdff0cf06bd21b51700e22d443110d0adad commit 3eae1cdff0cf06bd21b51700e22d443110d0adad Author: David Faust Date: Fri Mar 1 10:43:24 2024 -0800 testsuite: ctf: make array in ctf-file-scope-1 fixed length The array member of struct SFOO in the ctf-file-scope-

[gcc r14-9481] bpf: define INT8_TYPE as signed char

2024-03-14 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:6cf4286ff9456685a29812a3560d00b956d62c39 commit r14-9481-g6cf4286ff9456685a29812a3560d00b956d62c39 Author: David Faust Date: Thu Mar 14 09:05:38 2024 -0700 bpf: define INT8_TYPE as signed char Change the BPF backend to define INT8_TYPE with an explicit sign,

[gcc r14-9876] btf: emit symbol refs in DATASEC entries only for BPF [PR114608]

2024-04-09 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:8075477f81ae8d0abf64b80dfbd179151f91b417 commit r14-9876-g8075477f81ae8d0abf64b80dfbd179151f91b417 Author: David Faust Date: Mon Apr 8 11:10:41 2024 -0700 btf: emit symbol refs in DATASEC entries only for BPF [PR114608] The behavior introduced in fa60ac

[gcc r14-9878] btf: improve btf-datasec-3.c test [PR114642]

2024-04-09 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:639215c5eb6c56ba3830cd868d1d3ddd700b4c90 commit r14-9878-g639215c5eb6c56ba3830cd868d1d3ddd700b4c90 Author: David Faust Date: Mon Apr 8 13:33:48 2024 -0700 btf: improve btf-datasec-3.c test [PR114642] This test failed on powerpc --target_board=unix'{-m32}' bec

[gcc r14-9927] btf: emit non-representable bitfield as void

2024-04-11 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:f079d69d7b1338522562516537d96e9e1285c95e commit r14-9927-gf079d69d7b1338522562516537d96e9e1285c95e Author: David Faust Date: Thu Apr 11 11:18:55 2024 -0700 btf: emit non-representable bitfield as void This patch fixes an issue with mangled BTF that could occu

[gcc r14-9928] btf: fix a possibly misleading asm debug comment

2024-04-11 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:9b8bc02037eeaf4d6365010bb0533385deb4a90d commit r14-9928-g9b8bc02037eeaf4d6365010bb0533385deb4a90d Author: David Faust Date: Thu Apr 11 12:52:36 2024 -0700 btf: fix a possibly misleading asm debug comment This patch fixes a small error that could occur in the

[gcc r14-10131] bpf: avoid issues with CO-RE and -gtoggle

2024-04-25 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:f175622d25e4146bb7450430831ec48615e6e4cb commit r14-10131-gf175622d25e4146bb7450430831ec48615e6e4cb Author: David Faust Date: Thu Apr 25 09:31:14 2024 -0700 bpf: avoid issues with CO-RE and -gtoggle Compiling a BPF program with CO-RE relocations (and BTF) whi

[gcc r14-10135] bpf: set PREFERRED_DEBUGGING_TYPE to BTF_DEBUG

2024-04-25 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:1604f7cebc49220e47d584615bcd91b1fdc1267f commit r14-10135-g1604f7cebc49220e47d584615bcd91b1fdc1267f Author: David Faust Date: Wed Apr 24 15:01:02 2024 -0700 bpf: set PREFERRED_DEBUGGING_TYPE to BTF_DEBUG BTF is the standard debug info used with BPF programs,

[gcc r15-2856] btf: Protect BTF_KIND_INFO against invalid kind

2024-08-09 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:d0bc1cbf6a8938220f42d8102031fd6f6644e171 commit r15-2856-gd0bc1cbf6a8938220f42d8102031fd6f6644e171 Author: Will Hawkins Date: Mon Jul 29 10:42:48 2024 -0400 btf: Protect BTF_KIND_INFO against invalid kind If the user provides a kind value that is more than 5

[gcc r15-5025] btf: check hash maps are non-null before emptying

2024-11-07 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:6571e8f863736b7705f59c9ab0f17b7c4fdbcf92 commit r15-5025-g6571e8f863736b7705f59c9ab0f17b7c4fdbcf92 Author: David Faust Date: Thu Nov 7 09:19:51 2024 -0800 btf: check hash maps are non-null before emptying These maps will always be non-null in btf_finalize und

[gcc r15-5026] bpf: avoid possible null deref in btf_ext_output [PR target/117447]

2024-11-07 Thread David Faust via Gcc-cvs
https://gcc.gnu.org/g:0e1382034246a594f1da8dbaee97c4a06743f31a commit r15-5026-g0e1382034246a594f1da8dbaee97c4a06743f31a Author: David Faust Date: Thu Nov 7 09:27:07 2024 -0800 bpf: avoid possible null deref in btf_ext_output [PR target/117447] The BPF-specific .BTF.ext section is