I followed instructions provided by the existing Stackoverflow question/answer Building Perf with Babeltrace (for Perf to CTF Conversion)
Building linux/tools/perf with Babeltrace conversion support fails with the following error:
LINK perf
libperf.a(libperf-in.o): In function event_class_add_field:
/tools/perf/util/data-convert-bt.c:988: undefined reference to bt_ctf_validate_identifier
collect2: error: ld returned 1 exit status
Makefile.perf:567: recipe for target 'perf' failed
I tried building linux/tools/perf with Babeltrace installed from packages on Debian Linux distribution and also building Babeltrace from source code.
In both cases, Babeltrace was successfully installed and available before an attempt at building linux/tools/perf with Babeltrace CTF support.