--- /dev/null
+INCLUDES = -I$(top_builddir)/share -I$(top_builddir)/libust \
+ $(KCOMPAT_CFLAGS) $(URCU_CFLAGS)
+
+noinst_PROGRAMS = basic
+basic_SOURCES = basic.c
+basic_LDADD = $(top_builddir)/libust/libust.la $(URCU_LIBS)
+
+noinst_SCRIPTS = run
+EXTRA_DIST = run
--- /dev/null
+#include <stdio.h>
+#include <unistd.h>
+
+#include "marker.h"
+
+
+int main()
+{
+ int i;
+
+ printf("Basic test program\n");
+
+ for(i=0; i<50; i++) {
+ trace_mark(ust, bar, "str %s", "FOOBAZ");
+ trace_mark(ust, bar2, "number1 %d number2 %d", 53, 9800);
+ usleep(100000);
+ }
+
+ return 0;
+}
+
+MARKER_LIB;
--- /dev/null
+#!/bin/sh
+
+# Run with nothing
+
+
+#LD_LIBRARY_PATH=../../libust/.libs:../../../liburcu $1 .libs/basic
+#UST_AUTOPROBE="/foo" LD_LIBRARY_PATH=../../libust/.libs:../../../liburcu $1 .libs/basic
+UST_AUTOPROBE=1 UST_TRACE=1 LD_LIBRARY_PATH=../../libust/.libs:../../../liburcu $1 .libs/basic
--- /dev/null
+INCLUDES = -I$(top_builddir)/share -I$(top_builddir)/libust \
+ $(KCOMPAT_CFLAGS) $(URCU_CFLAGS)
+
+noinst_PROGRAMS = fork
+fork_SOURCES = fork.c
+fork_LDADD = $(top_builddir)/libust/libust.la $(URCU_LIBS)
+
+noinst_SCRIPTS = run
+EXTRA_DIST = run
--- /dev/null
+#include <stdio.h>
+#include <unistd.h>
+
+#include "marker.h"
+
+
+int main()
+{
+ int result;
+
+ printf("Fork test program\n");
+ trace_mark(ust, before_fork, MARK_NOARGS);
+
+ sleep(5);
+
+ result = fork();
+ if(result == -1) {
+ perror("fork");
+ return 1;
+ }
+ if(result == 0) {
+ trace_mark(ust, after_fork_child, MARK_NOARGS);
+ }
+ else {
+ trace_mark(ust, after_fork_parent, MARK_NOARGS);
+ }
+
+ return 0;
+}
+
+MARKER_LIB;
--- /dev/null
+#!/bin/sh
+
+# Run with nothing
+
+#UST_AUTOPROBE=1 UST_TRACE=1 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../../libust/.libs:../../../liburcu $1 .libs/fork
+#UST_AUTOPROBE=1 UST_TRACE=1 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../../libust/.libs:../../../liburcu LD_PRELOAD=../../libinterfork/.libs/libinterfork.so $1 .libs/fork
+#LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../../libust/.libs:../../../liburcu .libs/fork