This first version is less efficient than the native ust. Moreover, all
java events share the same native event name.
libinterfork/Makefile
ustd/Makefile
ust/Makefile
+ java/Makefile
])
AC_OUTPUT
--- /dev/null
+INCLUDES = -I$(top_builddir)/share -I$(top_builddir)/libust $(KCOMPAT_CFLAGS) $(URCU_CFLAGS)
+
+lib_LTLIBRARIES = libustjava.la
+libustjava_la_SOURCES = UST.c UST.h
+noinst_DATA = UST.java
+libustjava_la_LIBADD = -lc -L$(top_builddir)/libust/.libs -lust
+
+all: UST.class
+
+clean-local:
+ rm -rf UST.h UST.class
+
+UST.class: UST.java
+ javac UST.java
+
--- /dev/null
+import java.util.*;
+
+class UST {
+ public static native void ust_java_event(String name, String arg);
+ static {
+ System.loadLibrary("ustjava");
+ }
+}
+