diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-08-02 16:28:50 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-08-02 16:28:50 -0400 |
commit | 6d0f3f0cc2931c2ad29b57f4fecdde3ccc210d8c (patch) | |
tree | bd646f57cd82b589bc975f1b09ff6b4018d4abaa /runtime/task_finder.c | |
parent | 1384b663414d5380e25b21457e71458078ded8d5 (diff) | |
download | systemtap-steved-6d0f3f0cc2931c2ad29b57f4fecdde3ccc210d8c.tar.gz systemtap-steved-6d0f3f0cc2931c2ad29b57f4fecdde3ccc210d8c.tar.xz systemtap-steved-6d0f3f0cc2931c2ad29b57f4fecdde3ccc210d8c.zip |
PR4225: signs of life
Diffstat (limited to 'runtime/task_finder.c')
-rw-r--r-- | runtime/task_finder.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/task_finder.c b/runtime/task_finder.c index b22a60a8..f6c13dcf 100644 --- a/runtime/task_finder.c +++ b/runtime/task_finder.c @@ -1,5 +1,15 @@ +#ifndef TASK_FINDER_C +#define TASK_FINDER_C + +#if ! defined(CONFIG_UTRACE) +#error "Need CONFIG_UTRACE!" +#endif + +#include <linux/utrace.h> #include <linux/list.h> #include <linux/binfmts.h> +#include <linux/mount.h> + #include "syscall.h" #include "task_finder_vma.c" @@ -915,6 +925,7 @@ stap_start_task_finder(void) struct task_struct *grp, *tsk; char *mmpath_buf; + debug_task_finder_report(); mmpath_buf = _stp_kmalloc(PATH_MAX); if (mmpath_buf == NULL) { _stp_error("Unable to allocate space for path"); @@ -1034,3 +1045,6 @@ stap_stop_task_finder(void) debug_task_finder_report(); atomic_set(&__stp_task_finder_state, __STP_TF_STOPPED); } + + +#endif /* TASK_FINDER_C */ |