tests prettify_perf.data: Add regression test for 'pahole --prettify'

This feature is documented in the pahole manpage, plenty of examples
there, basically uses DWARF or BTF type info to parse raw data, for
instance a perf.data file and from type info go on pretty printing it,
finding out about offsets, record types, record sizes found in its
headers, etc.

Add a regression test for this set of features, where enums are joined
together to find out about record types and from there to parse
different kinds of records, etc.

It checks if perf is available and has debugging info needed, and since
pahole has support for debuginfod, it may even fetch the perf debuginfo
data needed.

Testing it:

  acme@number:~/git/pahole$ tests/tests
    1: Pretty printing of files using DWARF type information: Ok
    2: Parallel reproducible DWARF Loading/Serial BTF encoding: Ok
  acme@number:~/git/pahole$ tests/tests

Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 file changed