diff options
author | roland <roland> | 2005-10-26 00:00:46 +0000 |
---|---|---|
committer | roland <roland> | 2005-10-26 00:00:46 +0000 |
commit | 01ed06fa4b9466dc39f4a37301a74a2b551fa015 (patch) | |
tree | 26a9b970b20474e7fc19d853807be97d59df68a6 | |
parent | 57b73400d06052b179335059c2f440350fd28c99 (diff) | |
download | systemtap-steved-01ed06fa4b9466dc39f4a37301a74a2b551fa015.tar.gz systemtap-steved-01ed06fa4b9466dc39f4a37301a74a2b551fa015.tar.xz systemtap-steved-01ed06fa4b9466dc39f4a37301a74a2b551fa015.zip |
2005-10-25 Roland McGrath <roland@redhat.com>
PR 1271 cont'd.
* testsuite/buildok/twentytwo.stp: New file.
* testsuite/buildok/twentythree.stp: New file.
* loc2c.c (discontiguify): Add missing ; in output.
-rw-r--r-- | loc2c.c | 2 | ||||
-rwxr-xr-x | testsuite/buildok/twentythree.stp | 9 | ||||
-rwxr-xr-x | testsuite/buildok/twentytwo.stp | 8 |
3 files changed, 18 insertions, 1 deletions
@@ -1139,7 +1139,7 @@ discontiguify (struct obstack *pool, int indent, struct location *loc, if (size > max_piece_bytes) size = max_piece_bytes; - obstack_printf (pool, "%*saddr = container_addr + " UFORMAT "\n", + obstack_printf (pool, "%*saddr = container_addr + " UFORMAT ";\n", indent * 2, "", offset); struct location *piece = new_synthetic_loc (pool, loc, false); piece->byte_size = size; diff --git a/testsuite/buildok/twentythree.stp b/testsuite/buildok/twentythree.stp new file mode 100755 index 00000000..95a6f071 --- /dev/null +++ b/testsuite/buildok/twentythree.stp @@ -0,0 +1,9 @@ +#! stap -gp4 + +# Test for writing 64-bit target variable, PR 1271 + +probe kernel.function("free_task") +{ + $tsk->timestamp = 22; + log("set to 22 => " . string($tsk->timestamp)); +} diff --git a/testsuite/buildok/twentytwo.stp b/testsuite/buildok/twentytwo.stp new file mode 100755 index 00000000..2cb87bb8 --- /dev/null +++ b/testsuite/buildok/twentytwo.stp @@ -0,0 +1,8 @@ +#! stap -p4 + +# Test for reading 64-bit target variable, PR 1271 + +probe kernel.function("free_task") +{ + log("timestamp " . string($tsk->timestamp)) +} |