]> git.ipfire.org Git - thirdparty/elfutils.git/commit
eu-stacktrace [2/5]: configure.ac: initial version (x86/sysprof only)
authorSerhei Makarov <serhei@serhei.io>
Fri, 11 Oct 2024 21:14:41 +0000 (17:14 -0400)
committerSerhei Makarov <serhei@serhei.io>
Thu, 17 Oct 2024 23:30:53 +0000 (19:30 -0400)
commitb8df4dae2c29559eed9cf2f84f482c76dd57ad15
treee05600892ea44f94f19efbff4bc29eed7273f7de
parent3f1f22d3c58fb98715e71d78a484c27ce3c51371
eu-stacktrace [2/5]: configure.ac: initial version (x86/sysprof only)

Due to the x86-specific code in the initial version the configury has
significant restrictions. If --enable-stacktrace is not explicitly
provided, then eu-stacktrace will be disabled by default.

The way we test for x86 is a bit unusual. What we actually care about
is that the register file provided by perf_events on the system is an
x86 register file; this is done by checking that <asm/perf_regs.h> is
Linux kernel arch/x86/include/uapi/asm/perf_regs.h.

Once eu-stacktrace is properly portable across architectures,
these grody checks can be simplified. Enablement of the feature
by default depends on a released Sysprof version we can point to
for the patches.

* configure.ac: Add configure checks and conditionals for stacktrace tool.
* src/Makefile.am: Add stacktrace tool conditional on ENABLE_STACKTRACE.

Signed-off-by: Serhei Makarov <serhei@serhei.io>
configure.ac
src/Makefile.am