summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroland <roland>2005-10-26 00:00:46 +0000
committerroland <roland>2005-10-26 00:00:46 +0000
commit01ed06fa4b9466dc39f4a37301a74a2b551fa015 (patch)
tree26a9b970b20474e7fc19d853807be97d59df68a6
parent57b73400d06052b179335059c2f440350fd28c99 (diff)
downloadsystemtap-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.c2
-rwxr-xr-xtestsuite/buildok/twentythree.stp9
-rwxr-xr-xtestsuite/buildok/twentytwo.stp8
3 files changed, 18 insertions, 1 deletions
diff --git a/loc2c.c b/loc2c.c
index fee66d04..10063eb2 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -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))
+}