<description>Write a 4 bytes int</description>
<field name="data"><int size="4"></field>
</event>
+
+ <event name="write_string">
+ <description>Write a string</description>
+ <field name="data"><string></field>
+ </event>
+
+ <event name="write_struct">
+ <description>Write a structure (big)</description>
+ <field name="data1"><int size="4"></field>
+ <field name="data2">
+ <struct>
+ <field name="data3"><string></field>
+ <field name="data4"><int size="4"></field>
+ <field name="data5">
+ <sequence>
+ <uint>
+ <int_fixed size="8">
+ </sequence>
+ </field>
+ <field name="data6"><int size="8"></field>
+ </struct>
+ </field>
+ </event>
</facility>
+++ /dev/null
-#include <linux/module.h>
-#include <linux/vermagic.h>
-#include <linux/compiler.h>
-
-MODULE_INFO(vermagic, VERMAGIC_STRING);
-
-struct module __this_module
-__attribute__((section(".gnu.linkonce.this_module"))) = {
- .name = KBUILD_MODNAME,
-};
-
-static const char __module_depends[]
-__attribute_used__
-__attribute__((section(".modinfo"))) =
-"depends=ltt-facility-loader-tests";
-
+++ /dev/null
-#include <linux/module.h>
-#include <linux/vermagic.h>
-#include <linux/compiler.h>
-
-MODULE_INFO(vermagic, VERMAGIC_STRING);
-
-struct module __this_module
-__attribute__((section(".gnu.linkonce.this_module"))) = {
- .name = KBUILD_MODNAME,
-};
-
-static const char __module_depends[]
-__attribute_used__
-__attribute__((section(".modinfo"))) =
-"depends=ltt-facility-loader-tests";
-
+++ /dev/null
-#include <linux/module.h>
-#include <linux/vermagic.h>
-#include <linux/compiler.h>
-
-MODULE_INFO(vermagic, VERMAGIC_STRING);
-
-struct module __this_module
-__attribute__((section(".gnu.linkonce.this_module"))) = {
- .name = KBUILD_MODNAME,
-};
-
-static const char __module_depends[]
-__attribute_used__
-__attribute__((section(".modinfo"))) =
-"depends=ltt-facility-loader-tests";
-
#TEST PROGRAMS
-tests: test-usertrace-time
+tests: test-usertrace-time test-usertrace-time-slow
test-usertrace-time: test-usertrace-time.c ltt-facility-loader-user_tests.c
$(CC) $(CFLAGS) -lltt-usertrace-fast -o $@ $^
+test-usertrace-time-slow: test-usertrace-time-slow.c ltt-facility-loader-user_tests.c
+ $(CC) $(CFLAGS) -o $@ $^
+
#LIBRAIRIES
.PHONY : clean tests
#include <stdio.h>
#include <unistd.h>
-#include <sys/timex.h>
+#include <asm/timex.h>
#define LTT_TRACE
#define LTT_TRACE_FAST