]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf tools: Add LZMA decompression from FILE
authorStephen Brennan <stephen.s.brennan@oracle.com>
Fri, 7 Mar 2025 23:22:02 +0000 (15:22 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 10 Mar 2025 21:37:02 +0000 (14:37 -0700)
commit71fa411fe8904b6fe62e2bf3c64af48fadf1abfb
tree5e270d4a56eb967b581de944cb2e7c5e7f4d5dfe
parent20ef723113cb1265bf187eef4cdbbd8d72a723ee
perf tools: Add LZMA decompression from FILE

Internally lzma_decompress_to_file() creates a FILE from the filename.
Add an API that takes an existing FILE directly. This allows
decompressing already-open files and even buffers opened by fmemopen().
It is necessary for supporting .gnu_debugdata in the next patch.

Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20250307232206.2102440-3-stephen.s.brennan@oracle.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/compress.h
tools/perf/util/lzma.c