perf archive: Add new option '--unpack' to expand tarballs
authorVeronika Molnarova <vmolnaro@redhat.com>
Tue, 12 Dec 2023 16:59:09 +0000 (17:59 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Dec 2023 16:20:45 +0000 (13:20 -0300)
commite43c64c971e48d11ee100c5a8b2eadbed056f924
tree2edf2bb54a84437f03a9c086ea73d7bd577ba22d
parent624dda101e03c3a3a155d51e37a7bb7607cb760b
perf archive: Add new option '--unpack' to expand tarballs

Archives generated by the command 'perf archive' have to be unpacked
manually.

Following the addition of option '--all' now there also exist a nested
structure of tars, and after further discussion with Red Hat Global
Support Services, they found a feature correctly unpacking archives of
'perf archive' convenient.

Option '--unpack' of 'perf archive' unpacks archives generated by the
command 'perf archive' as well as archives generated when used with
option '--all'.

The 'perf.data' file is placed in the current directory, while debug
symbols are unpacked in '~/.debug' directory. A tar filename can be
passed as an argument, and if not provided the command tries to find a
viable perf.tar file for unpacking.

Signed-off-by: Veronika Molnarova <vmolnaro@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Link: https://lore.kernel.org/r/20231212165909.14459-2-vmolnaro@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/perf-archive.sh