instrum size
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 29 Mar 2006 20:20:11 +0000 (20:20 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 29 Mar 2006 20:20:11 +0000 (20:20 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1735 04897980-b3bd-0310-b5e0-8ef037075253

tests/kernel/Makefile
tests/kernel/test-instrument-size-big.c [new file with mode: 0644]
tests/kernel/test-instrument-size-big.mod.c [new file with mode: 0644]
tests/kernel/test-instrument-size-med.c [new file with mode: 0644]
tests/kernel/test-instrument-size-med.mod.c [new file with mode: 0644]
tests/kernel/test-instrument-size-small.c [new file with mode: 0644]
tests/kernel/test-instrument-size-small.mod.c [new file with mode: 0644]
tests/kernel/test-time-probe.mod.c [new file with mode: 0644]

index 894283113f1f01e7cd9a4d7e7580075bede11208..a2f40d351b84817fe9eb7a5666141a3a0305bccf 100644 (file)
@@ -2,7 +2,10 @@ ifneq ($(KERNELRELEASE),)
 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
diff --git a/tests/kernel/test-instrument-size-big.c b/tests/kernel/test-instrument-size-big.c
new file mode 100644 (file)
index 0000000..56d8888
--- /dev/null
@@ -0,0 +1,21 @@
+/* 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;
+}
+
diff --git a/tests/kernel/test-instrument-size-big.mod.c b/tests/kernel/test-instrument-size-big.mod.c
new file mode 100644 (file)
index 0000000..9159fdf
--- /dev/null
@@ -0,0 +1,16 @@
+#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";
+
diff --git a/tests/kernel/test-instrument-size-med.c b/tests/kernel/test-instrument-size-med.c
new file mode 100644 (file)
index 0000000..5251966
--- /dev/null
@@ -0,0 +1,21 @@
+/* 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;
+}
+
diff --git a/tests/kernel/test-instrument-size-med.mod.c b/tests/kernel/test-instrument-size-med.mod.c
new file mode 100644 (file)
index 0000000..9159fdf
--- /dev/null
@@ -0,0 +1,16 @@
+#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";
+
diff --git a/tests/kernel/test-instrument-size-small.c b/tests/kernel/test-instrument-size-small.c
new file mode 100644 (file)
index 0000000..7e802e7
--- /dev/null
@@ -0,0 +1,19 @@
+/* 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;
+}
+
diff --git a/tests/kernel/test-instrument-size-small.mod.c b/tests/kernel/test-instrument-size-small.mod.c
new file mode 100644 (file)
index 0000000..9159fdf
--- /dev/null
@@ -0,0 +1,16 @@
+#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";
+
diff --git a/tests/kernel/test-time-probe.mod.c b/tests/kernel/test-time-probe.mod.c
new file mode 100644 (file)
index 0000000..1202190
--- /dev/null
@@ -0,0 +1,20 @@
+#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";
+
This page took 0.02681 seconds and 4 git commands to generate.