This is the mail archive of the
systemtap-cvs@sourceware.org
mailing list for the systemtap project.
[SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.6-311-g2ec6b38
- From: dsmith at sourceware dot org
- To: systemtap-cvs at sourceware dot org
- Date: 13 Oct 2011 21:25:04 -0000
- Subject: [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.6-311-g2ec6b38
- Reply-to: systemtap at sourceware dot org
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "systemtap: system-wide probe/trace tool".
The branch, master has been updated
via 2ec6b38c60450db5d94323284d53978ea9c2bf1f (commit)
from 720c435f4135efc9cef5d25cde1dd43cab88850d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2ec6b38c60450db5d94323284d53978ea9c2bf1f
Author: David Smith <dsmith@redhat.com>
Date: Thu Oct 13 16:24:43 2011 -0500
(More PR13289 fixes) Added better %m/%M error handling.
* runtime/print.c (_stp_unreserve_bytes): New function.
* runtime/print.h: Added _stp_unreserve_bytes() declaration.
* runtime/vsprintf.c (_stp_vsprint_memory): Only change the input pointer
to "<NULL>" when we're formatting a string (%s), not when we're
formatting raw memory (%m/%M). Also, return NULL on errors.
(_stp_vsprint_memory_size): Only change the input pointer to "<NULL>"
when we're formatting a string (%s), not when we're formatting raw
memory (%m/%M).
(_stp_vsnprintf): If _stp_vsprint_memory() returns NULL, unreserve bytes
in the print buffer, when necessary.
* translate.cxx (c_unparser::emit_compiled_printfs): If
_stp_vsprint_memory() returns NULL, unreserve bytes in the print buffer,
when necessary. Also improve error message if _stp_vsprint_memory()
fails by setting 'last_stmt'.
* testsuite/systemtap.stress/conversions.stp: Added tests for '%M' and for
using sprintf() with '%m' and '%M'.
* testsuite/systemtap.stress/conversions.exp: Updated error count.
-----------------------------------------------------------------------
Summary of changes:
runtime/print.c | 10 ++++++++++
runtime/print.h | 1 +
runtime/vsprintf.c | 25 +++++++++++++++----------
testsuite/systemtap.stress/conversions.exp | 2 +-
testsuite/systemtap.stress/conversions.stp | 3 +++
translate.cxx | 11 +++++++++--
6 files changed, 39 insertions(+), 13 deletions(-)
hooks/post-receive
--
systemtap: system-wide probe/trace tool