summaryrefslogtreecommitdiffstats
path: root/kmtrace/ksotrace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmtrace/ksotrace.cpp')
-rw-r--r--kmtrace/ksotrace.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/kmtrace/ksotrace.cpp b/kmtrace/ksotrace.cpp
new file mode 100644
index 00000000..9f379414
--- /dev/null
+++ b/kmtrace/ksotrace.cpp
@@ -0,0 +1,11 @@
+#include "ktrace.h"
+#include <stdlib.h>
+
+class KTraceActivate
+{
+public:
+ KTraceActivate() { setenv("LD_PRELOAD","",1); ktrace(); }
+ ~KTraceActivate() { kuntrace(); }
+} kTraceActivateInstance;
+
+