summaryrefslogtreecommitdiffstats
path: root/tapset/task.stp
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-11-03 16:22:36 -0500
committerDave Brolley <brolley@redhat.com>2009-11-03 16:22:36 -0500
commit899b66209b0146560f0efc33efe58a4be3577df3 (patch)
tree7b64764b917c359a99d0adcf6c68a2d73cd52be7 /tapset/task.stp
parentd4ad7984018ff769cbb662342be7e501632c0bea (diff)
parent89651893a8ec51ee4d77ddfd57019e350ad7b169 (diff)
downloadsystemtap-steved-899b66209b0146560f0efc33efe58a4be3577df3.tar.gz
systemtap-steved-899b66209b0146560f0efc33efe58a4be3577df3.tar.xz
systemtap-steved-899b66209b0146560f0efc33efe58a4be3577df3.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Conflicts: Makefile.in configure doc/Makefile.in doc/SystemTap_Tapset_Reference/Makefile.in grapher/Makefile.in testsuite/configure
Diffstat (limited to 'tapset/task.stp')
-rw-r--r--tapset/task.stp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tapset/task.stp b/tapset/task.stp
index 3bb65413..90579d5d 100644
--- a/tapset/task.stp
+++ b/tapset/task.stp
@@ -45,21 +45,21 @@ function task_parent:long (task:long) %{ /* pure */
// EXIT_DEAD 32
function task_state:long (task:long)
{
- return @cast(task, "task_struct", "kernel")->state
+ return @cast(task, "task_struct", "kernel<linux/sched.h>")->state
}
// Return the name of the given task
function task_execname:string (task:long)
{
- return kernel_string(@cast(task, "task_struct", "kernel")->comm)
+ return kernel_string(@cast(task, "task_struct", "kernel<linux/sched.h>")->comm)
}
// Return the process id of the given task
function task_pid:long (task:long)
{
- return @cast(task, "task_struct", "kernel")->tgid
+ return @cast(task, "task_struct", "kernel<linux/sched.h>")->tgid
}
@@ -95,7 +95,7 @@ function pid2execname:string (pid:long) {
// Return the thread id of the given task
function task_tid:long (task:long)
{
- return @cast(task, "task_struct", "kernel")->pid
+ return @cast(task, "task_struct", "kernel<linux/sched.h>")->pid
}
@@ -181,11 +181,11 @@ function task_nice:long (task:long) %{ /* pure */
function task_cpu:long (task:long)
{
%( kernel_v >= "2.6.22" %?
- ti = @cast(task, "task_struct", "kernel")->stack
+ ti = @cast(task, "task_struct", "kernel<linux/sched.h>")->stack
%:
- ti = @cast(task, "task_struct", "kernel")->thread_info
+ ti = @cast(task, "task_struct", "kernel<linux/sched.h>")->thread_info
%)
- return @cast(ti, "thread_info", "kernel")->cpu
+ return @cast(ti, "thread_info", "kernel<linux/sched.h>")->cpu
}
// Return the number of open file handlers for the given task