diff options
author | zhaolei <zhaolei> | 2007-09-26 00:57:37 +0000 |
---|---|---|
committer | zhaolei <zhaolei> | 2007-09-26 00:57:37 +0000 |
commit | 3f728ca446a1dd563c3a87829c38b91860d94758 (patch) | |
tree | c9e81999abf3246969cb39c186a16d17f0422017 /tapset/aux_syscalls.stp | |
parent | 4e6cc599843a7abbe22518b25428167558facc30 (diff) | |
download | systemtap-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.stp | 21 |
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) +} + |