From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25132 invoked by alias); 23 Jun 2010 05:02:20 -0000 Received: (qmail 25006 invoked by uid 9586); 23 Jun 2010 05:02:17 -0000 Date: Wed, 23 Jun 2010 05:02:00 -0000 Message-ID: <20100623050217.24994.qmail@sourceware.org> From: jistone@sourceware.org To: systemtap-cvs@sourceware.org Subject: [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.2-327-g2d76777 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 7d81de2e27fa7694ad7d487e0da56e76d1c7e19d X-Git-Newrev: 2d767770c8f63cdc3e835a67dac3be7a05507ad5 Mailing-List: contact systemtap-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-cvs-owner@sourceware.org List-Archive: Reply-To: systemtap@sourceware.org X-SW-Source: 2010-q2/txt/msg00229.txt.bz2 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 2d767770c8f63cdc3e835a67dac3be7a05507ad5 (commit) via faea5e164f790a663930e72a7578dbabf5d3a7f3 (commit) via c3df9bce8a33bca599fd86b60b0f2e0db1e60a9f (commit) via f9938cbcc225595f788c04a732686bca14424ea0 (commit) via 74e2cc551da06aee9b803cb6654c81f5bbf1b8cc (commit) from 7d81de2e27fa7694ad7d487e0da56e76d1c7e19d (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 2d767770c8f63cdc3e835a67dac3be7a05507ad5 Author: Josh Stone Date: Tue Jun 22 17:44:35 2010 -0700 PR10830: Add pp1() for the high-level probe name This is a new function which should return the same high-level name that "stap -l" gives. (e.g. syscall.open instead of kernel.function...) * translate.cxx (c_unparser::emit_common_header): Add probe_point_listing. (translate_pass): Add pp1 to stap_probe, predicated on STP_NEED_PROBE_POINT_LISTING so we don't waste space. * tapsets.cxx (common_probe_init): Set pp1 to script_location(). (common_probe_entryfn_prologue): Write pp1 to the CONTEXT. * tapset-timers.cxx (profile_derived_probe_group::emit_module_decls): Fixup CONTEXT->probe_point_listing, since it loops individual probes manually. * tapset/context.stp (pp1): New, expose the location to scripts. * testsuite/buildok/context-embedded.stp: Build pp1(). * testsuite/systemtap.base/pp.{exp,stp}: Test the difference between pp() and pp1(). commit faea5e164f790a663930e72a7578dbabf5d3a7f3 Author: Josh Stone Date: Tue Jun 22 17:02:37 2010 -0700 Factor out common probe elements The probes in every tapset type all have a handler (ph) and a probe_point (pp), which are initialized and used in exactly the same way. Let's bring that out into a common stap_probe struct. This will also ease new fields, e.g. for PR10830. * translate.cxx (translate_pass): Define struct stap_probe, also making the decision of whether pp is better as char* or char[]. * tapsets.cxx (common_probe_init): Initialize a runtime stap_probe from any translator derived_probe. (common_probe_entryfn_prologue): Take a stap_probe instead of pp. * tapset*.cxx: Adjust all tapsets to use the features above. commit c3df9bce8a33bca599fd86b60b0f2e0db1e60a9f Author: Josh Stone Date: Tue Jun 22 13:01:10 2010 -0700 Add a function for getting a probe's script location * elaborate.cxx (derived_probe::script_location): New, factor out the code for grabbing the "friendly" location of a probe, as specified in the script. * main.cxx (printscript): Use it. commit f9938cbcc225595f788c04a732686bca14424ea0 Author: Josh Stone Date: Tue Jun 22 12:55:50 2010 -0700 Make probe->basest/almost_basest const commit 74e2cc551da06aee9b803cb6654c81f5bbf1b8cc Author: Josh Stone Date: Tue Jun 22 11:42:30 2010 -0700 Make probe::almost_basest() work * staptree.h (probe::almost_basest): Probes are the basest, not almost. * elaborate.h (derived_probe::almost_basest): If base says 0, then the almost_basest is this one. * main.cxx (printscript): Use p->almost_basest() instead of collecting the entire derivation chain. ----------------------------------------------------------------------- Summary of changes: elaborate.cxx | 15 ++++ elaborate.h | 6 +- main.cxx | 24 +------ runtime/perf.h | 3 +- runtime/procfs-probes.c | 10 +-- runtime/uprobes-common.c | 8 +- runtime/uprobes-common.h | 3 +- staptree.h | 3 +- tapset-been.cxx | 11 +-- tapset-itrace.cxx | 11 +-- tapset-mark.cxx | 20 ++---- tapset-perfmon.cxx | 9 +-- tapset-procfs.cxx | 38 +++-------- tapset-timers.cxx | 35 +++++----- tapset-utrace.cxx | 16 ++--- tapset/context.stp | 24 ++++++- tapsets.cxx | 118 +++++++++++++++++--------------- tapsets.h | 3 +- testsuite/buildok/context-embedded.stp | 1 + testsuite/systemtap.base/pp.exp | 15 ++++ testsuite/systemtap.base/pp.stp | 24 +++++++ translate.cxx | 58 ++++++++++++++-- 22 files changed, 265 insertions(+), 190 deletions(-) create mode 100644 testsuite/systemtap.base/pp.exp create mode 100644 testsuite/systemtap.base/pp.stp hooks/post-receive -- systemtap: system-wide probe/trace tool