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

2024-07-10 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 2/3] debuginfod: add archive entry size, mtime, and uncompressed offset to database

2024-07-10 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

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

2024-07-10 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 0/3] debuginfod: speed up extraction from kernel debuginfo packages by 200x

2024-07-10 Thread Omar Sandoval
From: Omar Sandoval drgn [1] currently uses debuginfod with great success for debugging userspace processes. However, for debugging the Linux kernel (drgn's main use case), we have had some performance issues with debuginfod, so we intentionally avoid using it. Specifically, it sometimes takes

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

2024-07-10 Thread Aaron Merey
Hi Ying, On Wed, Jul 10, 2024 at 4:33 AM Ying Huang wrote: > > Hi, > > I did test on mips64el and x86_64, the test results all were failed as > follows: > > 1. x86-64: > > $ uname -a > Linux swecovm-s01 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 > (2023-12-30) x86_64 GNU/Linux > > $