[PATCH] backends: allocate enough stace for null terminator

2024-07-15 Thread Sergei Trofimovich
`gcc-15` added a new warning in https://gcc.gnu.org/PR115185: i386_regs.c:88:11: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization] 88 | "ax", "cx", "dx", "bx", "sp", "bp", "si", "di", "ip" | ^~~~ `elfut

[PATCH v2 5/5] debuginfod: populate _r_seekable on request

2024-07-15 Thread Omar Sandoval
From: Omar Sandoval Since the schema change adding _r_seekable was done in a backward compatible way, seekable archives that were previously scanned will not be in _r_seekable. Whenever an archive is going to be extracted to satisfy a request, check if it is seekable. If so, populate _r_seekabl

[PATCH v2 4/5] debuginfod: populate _r_seekable on scan

2024-07-15 Thread Omar Sandoval
From: Omar Sandoval Whenever a new archive is scanned, check if it is seekable with a little liblzma magic, and populate _r_seekable if so. With this, newly scanned seekable archives will used the optimized extraction path added in the previous commit. Signed-off-by: Omar Sandoval --- debugin

[PATCH v2 3/5] debuginfod: optimize extraction from seekable xz archives

2024-07-15 Thread Omar Sandoval
From: Omar Sandoval The kernel debuginfo packages on Fedora, Debian, and Ubuntu, and many of their downstreams, are all compressed with xz in multi-threaded mode, which allows random access. We can use this to bypass the full archive extraction and dramatically speed up kernel debuginfo requests

[PATCH v2 1/5] debuginfod: factor out common code for responding from an archive

2024-07-15 Thread Omar Sandoval
From: Omar Sandoval handle_buildid_r_match has two very similar branches where it optionally extracts a section and then creates a microhttpd response. In preparation for adding a third one, factor it out into a function. Signed-off-by: Omar Sandoval --- debuginfod/debuginfod.cxx | 213 ++

[PATCH v2 0/5] debuginfod: speed up extraction from kernel debuginfo packages by 200x

2024-07-15 Thread Omar Sandoval
From: Omar Sandoval This is v2 of my patch series optimizing debuginfod for kernel debuginfo. v1 is here [7]. The main change from v1 is reworking the database changes to be backward compatible and therefore not require reindexing. Patch 1 is a preparatory refactor. Patch 2 makes the schema c

[PATCH v2 2/5] debugifod: add new table and views for seekable archives

2024-07-15 Thread Omar Sandoval
From: Omar Sandoval In order to extract a file from a seekable archive, we need to know where in the uncompressed archive the file data starts and its size. Additionally, in order to populate the response headers, we need the file modification time (since we won't be able to get it from the archi

Re: [PATCH v2 3/3] tests: add test for eu-stack --sysroot

2024-07-15 Thread Michal Sekletar
On Fri, Jul 12, 2024 at 5:38 PM Aaron Merey wrote: > > Hi Ying, > > On Wed, Jul 10, 2024 at 2:06 PM Aaron Merey wrote: > > > > On Wed, Jul 10, 2024 at 4:33 AM Ying Huang wrote: > > > > > > + testrun diff /tmp/tmp.bCCbATKu43/stack.out - > > > + built_testrun diff /tmp/tmp.bCCbATKu43/stack.out - >