summaryrefslogtreecommitdiffstats
path: root/runtime/autoconf-find-task-pid.c
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-07-20 15:25:01 -0500
committerDavid Smith <dsmith@redhat.com>2009-07-20 15:25:01 -0500
commitc8a44dea9630e500f1eb44cb7934217fb2212f4e (patch)
treedfd55664328796a060bee36b79c127fb00c69eb0 /runtime/autoconf-find-task-pid.c
parentc3d506aed4f651a98d1afde2fe700822edf9e78e (diff)
downloadsystemtap-steved-c8a44dea9630e500f1eb44cb7934217fb2212f4e.tar.gz
systemtap-steved-c8a44dea9630e500f1eb44cb7934217fb2212f4e.tar.xz
systemtap-steved-c8a44dea9630e500f1eb44cb7934217fb2212f4e.zip
Fixed PR 10386 by removing the need to convert a pid to a task.
* runtime/itrace.c (usr_itrace_init): Changed prototype to take a task_struct instead of a pid. * tapset-itrace.cxx (emit_module_decls): Updated usr_itrace_init() call. * runtime/autoconf-find-task-pid.c: Removed, since only user_itrace_init() was using it. * buildrun.cxx (compile_pass): Removed autoconf-find-task-pid.c test.
Diffstat (limited to 'runtime/autoconf-find-task-pid.c')
-rw-r--r--runtime/autoconf-find-task-pid.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/autoconf-find-task-pid.c b/runtime/autoconf-find-task-pid.c
deleted file mode 100644
index 549d5ac3..00000000
--- a/runtime/autoconf-find-task-pid.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <linux/sched.h>
-
-void foo (pid_t k) {
- struct task_struct *tsk = find_task_by_pid (k);
- (void) tsk;
-}