From fc5a2d42b6cc46a9d4f7f3919ddc74ce70ad2a66 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 20 May 2008 21:58:04 +0200 Subject: PR5001: Remove _stp_ctime and always use ctime. --- tapset/syscalls2.stp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tapset/syscalls2.stp') 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" -- cgit