diff options
author | hunt <hunt> | 2007-08-15 19:17:35 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-08-15 19:17:35 +0000 |
commit | 4d5b9fbb6c1ef63869ff84d6565a168125355f84 (patch) | |
tree | bd0463335cb7d8aef047314da2a7142ae2facb1e /tapset/s390x | |
parent | 4d66d71756f43e4cc1a0b31b4228b400a58d795d (diff) | |
download | systemtap-steved-4d5b9fbb6c1ef63869ff84d6565a168125355f84.tar.gz systemtap-steved-4d5b9fbb6c1ef63869ff84d6565a168125355f84.tar.xz systemtap-steved-4d5b9fbb6c1ef63869ff84d6565a168125355f84.zip |
2007-08-15 Martin Hunt <hunt@redhat.com>
* x86_64/syscalls.stp: Add support for sys32_mmap[2],
sys32_vm86_warning, and sys32_pipe.
* s390x/syscalls.stp (get_mmap_args): Move to aux_syscalls.
* aux_syscalls.stp (get_mmap_args): Moved here.
* syscalls.stp: Add sys32_alarm.
* syscalls2.stp: Add sys32_uname.
Diffstat (limited to 'tapset/s390x')
-rw-r--r-- | tapset/s390x/syscalls.stp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/tapset/s390x/syscalls.stp b/tapset/s390x/syscalls.stp index a544e463..39236d79 100644 --- a/tapset/s390x/syscalls.stp +++ b/tapset/s390x/syscalls.stp @@ -100,60 +100,6 @@ probe syscall.sysctl32.return = kernel.function("sys32_sysctl").return ? { retstr = returnstr(1) } -function get_mmap_args:string (args:long) -%{ - struct mmap_arg_struct { - unsigned long addr; - unsigned long len; - unsigned long prot; - unsigned long flags; - unsigned long fd; - unsigned long offset; - }a; - - char proto[60]; - char flags[256]; - - if(_stp_copy_from_user((char *)&a, - (char *)THIS->args, sizeof(a))== 0){ - - /* _mprotect_prot_str */ - proto[0] = '\0'; - if(a.prot){ - if(a.prot & 1) strcat (proto, "PROT_READ|"); - if(a.prot & 2) strcat (proto, "PROT_WRITE|"); - if(a.prot & 4) strcat (proto, "PROT_EXEC|"); - } else { - strcat (proto, "PROT_NONE"); - } - if (proto[0] != '\0') proto[strlen(proto)-1] = '\0'; - - /* _mmap_flags */ - flags[0]='\0'; - if (a.flags & 1) strcat (flags, "MAP_SHARED|"); - if (a.flags & 2) strcat (flags, "MAP_PRIVATE|"); - if (a.flags & 0x10) strcat (flags, "MAP_FIXED|"); - if (a.flags & 0x20) strcat (flags, "MAP_ANONYMOUS|"); - if (a.flags & 0x100) strcat (flags, "MAP_GROWSDOWN|"); - if (a.flags & 0x800) strcat (flags, "MAP_DENYWRITE|"); - if (a.flags & 0x1000) strcat (flags, "MAP_EXECUTABLE|"); - if (a.flags & 0x2000) strcat (flags, "MAP_LOCKED|"); - if (a.flags & 0x4000) strcat (flags, "MAP_NORESERVE|"); - if (a.flags & 0x8000) strcat (flags, "MAP_POPULATE|"); - if (a.flags & 0x10000) strcat (flags, "MAP_NONBLOCK|"); - if (flags[0] != '\0') flags[strlen(flags)-1] = '\0'; - - sprintf(THIS->__retvalue,"0x%lx, %ld, %s, %s, %ld, %ld", - a.addr, - a.len, - proto, - flags, - a.fd, - a.offset); - }else{ - strlcpy (THIS->__retvalue, "UNKNOWN", MAXSTRINGLEN); - } -%} /* compat */ function get_32mmap_args:string (args:long) |