diff options
Diffstat (limited to 'kmtrace/ksotrace.cpp')
-rw-r--r-- | kmtrace/ksotrace.cpp | 11 |
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; + + |