summaryrefslogtreecommitdiffstats
path: root/tapset/syscalls2.stp
diff options
context:
space:
mode:
authorMark Wielaard <mwielaard@redhat.com>2008-05-20 21:58:04 +0200
committerMark Wielaard <mwielaard@redhat.com>2008-05-20 21:58:04 +0200
commitfc5a2d42b6cc46a9d4f7f3919ddc74ce70ad2a66 (patch)
tree9ed4c1e26b51d6e3a861f878d622971de157f79b /tapset/syscalls2.stp
parent3bf6ac451c7eecc5184e7823f29a293b7df53fa0 (diff)
downloadsystemtap-steved-fc5a2d42b6cc46a9d4f7f3919ddc74ce70ad2a66.tar.gz
systemtap-steved-fc5a2d42b6cc46a9d4f7f3919ddc74ce70ad2a66.tar.xz
systemtap-steved-fc5a2d42b6cc46a9d4f7f3919ddc74ce70ad2a66.zip
PR5001: Remove _stp_ctime and always use ctime.
Diffstat (limited to 'tapset/syscalls2.stp')
-rw-r--r--tapset/syscalls2.stp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tapset/syscalls2.stp b/tapset/syscalls2.stp
index 558e89bb..31e1830d 100644
--- a/tapset/syscalls2.stp
+++ b/tapset/syscalls2.stp
@@ -2900,8 +2900,10 @@ probe syscall.utime = kernel.function("sys_utime") ? {
filename_uaddr = $filename
filename = user_string($filename)
buf_uaddr = $times
- buf_str = _struct_utimbuf_u($times)
- argstr = sprintf("%s, %s", user_string_quoted($filename), buf_str)
+ actime = _struct_utimbuf_actime(buf_uaddr)
+ modtime = _struct_utimbuf_modtime(buf_uaddr)
+ argstr = sprintf("%s, [%s, %s]", user_string_quoted($filename),
+ ctime(actime), ctime(modtime))
}
probe syscall.utime.return = kernel.function("sys_utime").return ? {
name = "utime"
@@ -2914,8 +2916,10 @@ probe syscall.compat_utime = kernel.function("compat_sys_utime") ? {
filename_uaddr = $filename
filename = user_string($filename)
buf_uaddr = $t
- buf_str = _struct_compat_utimbuf_u($t)
- argstr = sprintf("%s, %s", user_string_quoted($filename), _struct_compat_utimbuf_u($t))
+ actime = _struct_compat_utimbuf_actime(buf_uaddr)
+ modtime = _struct_compat_utimbuf_modtime(buf_uaddr)
+ argstr = sprintf("%s, [%s, %s]", user_string_quoted($filename),
+ ctime(actime), ctime(modtime))
}
probe syscall.compat_utime.return = kernel.function("compat_sys_utime").return ? {
name = "utime"