Debian Codegraph @

tapset/dyninst/tzinfo.stp

raw
1 // timezone tapset
2 // Copyright (C) 2013 Red Hat Inc.
3 //
4 // This file is part of systemtap, and is free software. You can
5 // redistribute it and/or modify it under the terms of the GNU General
6 // Public License (GPL); either version 2, or (at your option) any
7 // later version.
8
9 // NB: functionally equivalent to linux/tzinfo.stp
10
11 function tz_gmtoff()
12 %{ /* pure */ /* unprivileged */
13 STAP_RETVALUE = stp_session_attributes()->tz_gmtoff;
14 %}
15
16 function tz_name()
17 %{ /* pure */ /* unprivileged */
18 strlcpy(STAP_RETVALUE, stp_session_attributes()->tz_name, MAXSTRINGLEN);
19 %}