summaryrefslogtreecommitdiffstats
path: root/runtime/autoconf-find-task-pid.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-03-20 09:35:44 +0100
committerMark Wielaard <mjw@redhat.com>2009-03-20 09:35:44 +0100
commit9ba817408c6eb81d9ed470314cff1d2d412c4b68 (patch)
tree81cdd381dc4a9c8007102ce4465a7a2c6c016a4e /runtime/autoconf-find-task-pid.c
parent5e94ef56760c087784e485c35521a6e438cfc3e5 (diff)
parent0cf9ea606eb7677a1241595f7568dd4a6c243ef2 (diff)
downloadsystemtap-steved-9ba817408c6eb81d9ed470314cff1d2d412c4b68.tar.gz
systemtap-steved-9ba817408c6eb81d9ed470314cff1d2d412c4b68.tar.xz
systemtap-steved-9ba817408c6eb81d9ed470314cff1d2d412c4b68.zip
Merge branch 'master' into pr6866
Diffstat (limited to 'runtime/autoconf-find-task-pid.c')
-rw-r--r--runtime/autoconf-find-task-pid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/autoconf-find-task-pid.c b/runtime/autoconf-find-task-pid.c
new file mode 100644
index 00000000..549d5ac3
--- /dev/null
+++ b/runtime/autoconf-find-task-pid.c
@@ -0,0 +1,6 @@
+#include <linux/sched.h>
+
+void foo (pid_t k) {
+ struct task_struct *tsk = find_task_by_pid (k);
+ (void) tsk;
+}