summaryrefslogtreecommitdiff
path: root/tools/perf/util/bpf-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/bpf-utils.h')
-rw-r--r--tools/perf/util/bpf-utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/bpf-utils.h b/tools/perf/util/bpf-utils.h
index eafc43b8731f..a8bc1a232968 100644
--- a/tools/perf/util/bpf-utils.h
+++ b/tools/perf/util/bpf-utils.h
@@ -14,6 +14,11 @@
(LIBBPF_MAJOR_VERSION > (major) || \
(LIBBPF_MAJOR_VERSION == (major) && LIBBPF_MINOR_VERSION >= (minor)))
+#if LIBBPF_CURRENT_VERSION_GEQ(1, 7)
+// libbpf 1.7+ support the btf_dump_type_data_opts.emit_strings option.
+#define HAVE_LIBBPF_STRINGS_SUPPORT 1
+#endif
+
/*
* Get bpf_prog_info in continuous memory
*