diff options
author | David Smith <dsmith@redhat.com> | 2010-03-05 13:31:12 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2010-03-05 13:31:12 -0600 |
commit | cc268f7fd934f47b428a8256519678ff5dcf5b43 (patch) | |
tree | 0e9486b88c1d271b50486b0ec37d93f83bd95791 /tapset/context.stp | |
parent | ae34ff1086e98f986c2f62b8c4666adf57663f11 (diff) | |
download | systemtap-steved-cc268f7fd934f47b428a8256519678ff5dcf5b43.tar.gz systemtap-steved-cc268f7fd934f47b428a8256519678ff5dcf5b43.tar.xz systemtap-steved-cc268f7fd934f47b428a8256519678ff5dcf5b43.zip |
Improved 'mm_struct' casting for RHEL5.
* tapset/context.stp: Improved casting to 'mm_struct' on RHEL5 by changing
the header file referenced from '<linux/mm_types.h>' to
'<linux/sched.h>' (since mm_types.h doesn't exist on RHEL5). On newer
kernels, sched.h includes mm_types.h.
* tapset/proc_mem.stp: Ditto.
Diffstat (limited to 'tapset/context.stp')
-rw-r--r-- | tapset/context.stp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/context.stp b/tapset/context.stp index bf648db7..b18aa27f 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -320,8 +320,8 @@ function cmdline_args:string(n:long, m:long, delim:string) mm = @cast(task_current(), "task_struct", "kernel<linux/sched.h>")->mm; if (mm) { - arg_start = @cast(mm, "mm_struct", "kernel<linux/mm_types.h>")->arg_start; - arg_end = @cast(mm, "mm_struct", "kernel<linux/mm_types.h>")->arg_end; + arg_start = @cast(mm, "mm_struct", "kernel<linux/sched.h>")->arg_start; + arg_end = @cast(mm, "mm_struct", "kernel<linux/sched.h>")->arg_end; if (arg_start != 0 && arg_end != 0) { nr = 0; |