summaryrefslogtreecommitdiffstats
path: root/tapset/endian.stp
diff options
context:
space:
mode:
authorfche <fche>2006-04-25 17:40:53 +0000
committerfche <fche>2006-04-25 17:40:53 +0000
commit1b07c728305a32a8d1fa1bb5da9d428e34dddf4e (patch)
treef86471e86673dbd7ce49f755f7d980aec43a5a58 /tapset/endian.stp
parentfe7e582fac54df14452fa017529bf642f2047e5f (diff)
downloadsystemtap-steved-1b07c728305a32a8d1fa1bb5da9d428e34dddf4e.tar.gz
systemtap-steved-1b07c728305a32a8d1fa1bb5da9d428e34dddf4e.tar.xz
systemtap-steved-1b07c728305a32a8d1fa1bb5da9d428e34dddf4e.zip
2006-04-25 Frank Ch. Eigler <fche@elastic.org>
PR 2427. * staptree.cxx (varuse_collecting_visitor::visit_embeddedcode): Support /* pure */ declaration. Stop using __tvar_ naming hack. (v_c_u::visit_print_format): Mark sprint and sprintf as side-effect-free. (deep_copy_visitor::visit_print_format): Propagate raw_components. * stap.1.in: Document declaration. * elaborate.cxx (semantic_pass_opt2): Verbose message tweak. (dead_stmtexpr_remover): Extend for more aggressive optimization. * tapsets.cxx (dwarf,mark_var_expanding_copy_visotor): Add /* pure */ declaration to rvalue expansions. * tapset/*.stp: Added /* pure */ declarations to many functions. * testsuite/parseok/unparsers.stp: Propagate guru mode flag. * testsuite/buildok/twentyfour.stp: New test.
Diffstat (limited to 'tapset/endian.stp')
-rw-r--r--tapset/endian.stp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tapset/endian.stp b/tapset/endian.stp
index ddcc2546..fc2c8937 100644
--- a/tapset/endian.stp
+++ b/tapset/endian.stp
@@ -2,30 +2,30 @@
# val: 0 - native (default)
# 1 - little endian
# 2 - big endian
-function set_endian:long (val:long) %{
+function set_endian:long (val:long) %{ /* pure */
_stp_endian = THIS->val;
%}
-function big_endian2:long (val:long) %{
+function big_endian2:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_be16(THIS->val);
%}
-function big_endian4:long (val:long) %{
+function big_endian4:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_be32(THIS->val);
%}
-function big_endian8:long (val:long) %{
+function big_endian8:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_be64(THIS->val);
%}
-function little_endian2:long (val:long) %{
+function little_endian2:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_le16(THIS->val);
%}
-function little_endian4:long (val:long) %{
+function little_endian4:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_le32(THIS->val);
%}
-function little_endian8:long (val:long) %{
+function little_endian8:long (val:long) %{ /* pure */
THIS->__retvalue = cpu_to_le64(THIS->val);
%}