ifneq ($(CONFIG_LTT),)
obj-m += ltt-facility-loader-tests.o
obj-m += test-time-probe.o
- #test-l1-hit-probe.o test-instrument-size-small.o test-instrument-size-med.o test-instrument-size-big.o
+ obj-m += test-instrument-size-small.o
+ obj-m += test-instrument-size-med.o
+ obj-m += test-instrument-size-big.o
+ #test-l1-hit-probe.o
endif
else
--- /dev/null
+/* test-time-probe.c
+ *
+ * size of instrumented object.
+ */
+
+
+#define CONFIG_LTT_FACILITY_TESTS
+#include "ltt-facility-tests.h"
+
+#include <linux/init.h>
+#include <linux/module.h>
+#include <linux/ltt-core.h>
+
+void ltt_test_init(void)
+{
+ struct lttng_tests_write_struct_data2 test_str;
+
+ trace_tests_write_struct(5, &test_str);
+ return;
+}
+
--- /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
+/* test-time-probe.c
+ *
+ * size of instrumented object.
+ */
+
+
+#define CONFIG_LTT_FACILITY_TESTS
+#include "ltt-facility-tests.h"
+
+#include <linux/init.h>
+#include <linux/module.h>
+#include <linux/ltt-core.h>
+
+void ltt_test_init(void)
+{
+ char mystring;
+
+ trace_tests_write_string(&mystring);
+ return;
+}
+
--- /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
+/* test-time-probe.c
+ *
+ * size of instrumented object.
+ */
+
+
+#define CONFIG_LTT_FACILITY_TESTS
+#include "ltt-facility-tests.h"
+
+#include <linux/init.h>
+#include <linux/module.h>
+#include <linux/ltt-core.h>
+
+void ltt_test_init(void)
+{
+ trace_tests_write_4bytes(5000);
+ return;
+}
+
--- /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,
+ .init = init_module,
+#ifdef CONFIG_MODULE_UNLOAD
+ .exit = cleanup_module,
+#endif
+};
+
+static const char __module_depends[]
+__attribute_used__
+__attribute__((section(".modinfo"))) =
+"depends=ltt-facility-loader-tests";
+