summaryrefslogtreecommitdiff
path: root/tools/perf/config/feature-tests.mak
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/config/feature-tests.mak')
-rw-r--r--tools/perf/config/feature-tests.mak9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/config/feature-tests.mak b/tools/perf/config/feature-tests.mak
index 7f550c1..d5a8dd4 100644
--- a/tools/perf/config/feature-tests.mak
+++ b/tools/perf/config/feature-tests.mak
@@ -61,6 +61,15 @@ int main(void)
}
endef
+define SOURCE_ELF_GETPHDRNUM
+#include <libelf.h>
+int main(void)
+{
+ size_t dst;
+ return elf_getphdrnum(0, &dst);
+}
+endef
+
ifndef NO_SLANG
define SOURCE_SLANG
#include <slang.h>