summaryrefslogtreecommitdiffstats
path: root/tapset/aux_syscalls.stp
diff options
context:
space:
mode:
authorzhaolei <zhaolei>2007-09-26 00:57:37 +0000
committerzhaolei <zhaolei>2007-09-26 00:57:37 +0000
commit3f728ca446a1dd563c3a87829c38b91860d94758 (patch)
treec9e81999abf3246969cb39c186a16d17f0422017 /tapset/aux_syscalls.stp
parent4e6cc599843a7abbe22518b25428167558facc30 (diff)
downloadsystemtap-steved-3f728ca446a1dd563c3a87829c38b91860d94758.tar.gz
systemtap-steved-3f728ca446a1dd563c3a87829c38b91860d94758.tar.xz
systemtap-steved-3f728ca446a1dd563c3a87829c38b91860d94758.zip
2007-09-26 Zhaolei <zhaolei@cn.fujitsu.com>
* syscalls.stp (adjtimex.return): Improve retstr. * aux_syscalls.stp: Add a function(_adjtimex_return_str) for adjtimex.return.
Diffstat (limited to 'tapset/aux_syscalls.stp')
-rw-r--r--tapset/aux_syscalls.stp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index 94444d7a..25984d57 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -1798,3 +1798,24 @@ function _at_flag_str(f) {
if (f == 0x400) return "AT_SYMLINK_FOLLOW"
return sprintf("0x%x", f)
}
+
+function _adjtimex_return_str(ret) {
+ if (ret == 0)
+ val = "OK"
+ else if (ret == 1)
+ val = "INS"
+ else if (ret == 2)
+ val = "DEL"
+ else if (ret == 3)
+ val = "OOP"
+ else if (ret == 4)
+ val = "WAIT"
+ else if (ret == 5)
+ val = "BAD"
+
+ if (val != "")
+ return sprintf("%d (TIME_%s)", ret, val)
+ else
+ return returnstr(1)
+}
+