summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-libtraceevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/feature/test-libtraceevent.c')
-rw-r--r--tools/build/feature/test-libtraceevent.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/build/feature/test-libtraceevent.c b/tools/build/feature/test-libtraceevent.c
new file mode 100644
index 000000000..416b11ffd
--- /dev/null
+++ b/tools/build/feature/test-libtraceevent.c
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <traceevent/trace-seq.h>
+
+int main(void)
+{
+ int rv = 0;
+ struct trace_seq s;
+ trace_seq_init(&s);
+ rv += !(s.state == TRACE_SEQ__GOOD);
+ trace_seq_destroy(&s);
+ return rv;
+}