diff options
author | ddomingo <ddomingo@redhat.com> | 2008-09-03 09:44:45 +1000 |
---|---|---|
committer | ddomingo <ddomingo@redhat.com> | 2008-09-03 09:44:45 +1000 |
commit | 404939a6c4f982062116f05aa22f7dff0b0ce24e (patch) | |
tree | 53015ff483f6ed2d1e9cdabc9289358ade12a0e3 /runtime/task_finder.c | |
parent | aac23edfa124a016581871770af84d10efc38239 (diff) | |
parent | f02dd36464a34542d5f853d8643cc473af59c5b2 (diff) | |
download | systemtap-steved-404939a6c4f982062116f05aa22f7dff0b0ce24e.tar.gz systemtap-steved-404939a6c4f982062116f05aa22f7dff0b0ce24e.tar.xz systemtap-steved-404939a6c4f982062116f05aa22f7dff0b0ce24e.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
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 f1c2c41b..9c0dd55b 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 "utrace_compatibility.h" #include "task_finder_vma.c" @@ -1110,6 +1120,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"); @@ -1217,3 +1228,6 @@ stap_stop_task_finder(void) debug_task_finder_report(); atomic_set(&__stp_task_finder_state, __STP_TF_STOPPED); } + + +#endif /* TASK_FINDER_C */ |