Re: [PATCH 3/3 v5] src/readelf.c: Support concurrency for -w, --debug-dump

2025-08-05 Thread Mark Wielaard
On Mon, Aug 04, 2025 at 11:20:54PM -0400, Aaron Merey wrote: > Implement concurrent execution of print_debug_* functions during handling > of -w, --debug-dump using libthread.a. > > A new `-C, --concurrency=NUM` command line option controls the maximum > number of threads that may be used. This va

Re: [PATCH 2/3 v5] src/readelf.c: Add support for print_debug_* output buffering

2025-08-05 Thread Mark Wielaard
Hi Aaron, On Mon, Aug 04, 2025 at 11:20:53PM -0400, Aaron Merey wrote: > Safely handle stdout output during concurrent calls to print_debug_* > functions. > > For any print_debug_* function and any function that could be called > from print_debug_* which also prints to stdout: add a FILE * argume

Re: [PATCH 1/3 v5] src: Add threadlib library for parallel job execution

2025-08-05 Thread Mark Wielaard
Hi Aaron, On Mon, Aug 04, 2025 at 11:20:52PM -0400, Aaron Merey wrote: > Add new internal static library libthread.a that provides infrastructure > for eu-* tools to run functions concurrently using pthreads. > > threadlib.c manages per-job threads as well as per-job buffers for stdout > output.