| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tapsets.cxx (tracepoint_arg): New
(tracepoint_derived_probe): Add declaring header name and arg vector
(dwarf_type_name): Build a type string for a given type DIE
(tracepoint_derived_probe::build_args): Scan the function DIE for
the name and type of formal parameters required by the tracepoint.
(tracepoint_derived_probe::tracepoint_derived_probe): Call
build_args and determine the relevant header to include.
(tracepoint_derived_probe_group::emit_module_decls): For each
tracepoint, include its header and declare a probe entry point with
the right function signature.
(tracepoint_derived_probe_group::emit_module_init): Call the
registration for each tracepoint, and handle error unwinding.
(tracepoint_derived_probe_group::emit_module_exit): Unregister each.
|
|
|
|
|
|
| |
* tapsets.cxx (tracepoint_derived_probe): Create a skeleton probe
(tracepoint_derived_probe_group): Create a skeleton group
(tracepoint_query::handle_query_func): build a probe
|
|
|
|
|
|
|
| |
* tapsets.cxx (tracepoint_query): Iterate over the modules, CUs, and
functions in tracequery.ko looking for our hijacked tracepoint
declarations.
(tracepoint_builder::build): Run a tracepoint_query
|
|
|
|
|
|
|
|
|
|
| |
* session.h (systemtap_session): add tracepoint_derived_probes
* buildrun.cxx (make_tracequery): New - builds a kernel module that
hijacks the tracepoint declarations, so we can query debuginfo.
* buildrun.h: declare above
* tapsets.cxx (tracepoint_builder): New builder for tracepoint
probes. For now it just handles the initialization to build the
tracequery kernel module.
|
|
|
|
|
|
|
|
|
|
| |
* tapsets.cxx (dwflpp::iterate_over_functions): Change arg from
void* to base_query*, and add explicit function-search parameters.
(query_cu): update caller
(query_dwarf_func): update callback signature
(Note: instead of passing around callback functions, it might be nicer
to use a virtual method in base_query...)
|
|
|
|
|
|
|
|
|
| |
We used to check & init module_cache in a few inconsistent places. Now
it is always handled in dwflpp::setup_user/setup_kernel.
* tapsets.cxx (dwflpp::setup_user): add module_cache check
(dwarf_builder::build): remove module_cache check
(dwarf_cast_expanding_visitor::visit_cast_op): ditto
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* tapset/inet_sock.stp (inet_get_local_port): Fix kernel version check.
(inet_get_ip_source): Likewise.
|
|
|
|
|
|
|
|
|
|
| |
* buildrun.cxx (compile_pass): Add autoconf line for stack trace
test, which defines STAPCONF_KERNEL_STACKTRACE.
* runtime/autoconf-save-stack-trace.c: New file.
* runtime/stack.c : Use STAPCONF_KERNEL_STACKTRACE instead of
tests for kernel configuration and versions.
* runtime/stack-i386.c : ditto
* runtime/stack-x86_64.c : ditto
|
|
|
|
| |
* translate.cxx (visit_arrayindex): Update last_stmt.
|
| |
|
|
|
|
| |
* tapsets.cxx (dwflpp::build): Use .label for .so instead of .statement(N)
|
|
|
|
|
| |
It also adds a private copy of access_process_vm to runtime/itrace.c
since that function is not consistently exported by all distros.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Impact: cleanup
Since sdt.h is in git tree, sduprobes is no longer needed.
* Makefile.am: Remove sduprobes.
* Makefile.in: Regenerated.
* doc/Makefile.in: Ditto.
* runtime/sduprobes.c: Removed.
Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
|
|
|
|
|
| |
* dtrace (provider): Add STAP_PROBE10.
* includes/sys/sdt.h: Likewise. Convert labels to __label__
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
* tapset/inet_sock.stp: Remove includes.
(inet_get_local_port): No embedded C, use @cast.
(inet_get_ip_source): Likewise.
(daddr_to_string): New function, still some embedded C used.
|
| |
| |
| |
| | |
* tapset/networking.stp: Remove include.
|
| |
| |
| |
| |
| | |
* tapset/aux_syscalls.stp (_struct_sigaction_u): Only needed and compiles
when CONFIG_COMPAT defined.
|
| |
| |
| |
| | |
The gcc on Ubuntu doesn't like fprintf() without format arguments
|
| |
| |
| |
| |
| |
| |
| |
| | |
Impact: trivial cleanup.
Avoid emitting empty struct global code that is harmless.
Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
|
|\| |
|
| |
| |
| |
| |
| | |
* translate.cxx (dump_unwindsyms): Adjust extra_offset always
against module base as workaround for buggy elfutils < 0.138.
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This test simply checks that _gettimeofday_init and _gettimeofday_kill
are pulled in when gettimeofday is used, and also that they are NOT
pulled in when gettimeofday is not used.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Our gettimeofday runtime has frequent wakeups to stay in sync with
kernel time, but this is wasted effort if gettimeofday is not used in
the script. This patch moves the calls to _stp_time_init and
_stp_time_kill into begin and end/error probes, which only get pulled in
if one of the gettimeofday variants is called.
|
| |/
| |
| |
| |
| |
| |
| | |
* tapsets.cxx (dwflpp::build): Improve c+ method navigation.
Use .label for listing mode.
* systemtap.base/static_uprobes.exp: Test multiple invocations of the same
probe per block. (SW9770)
|
| |
| |
| |
| | |
* tapsets.cxx (iterate_over_cu_labels): Check dwarf_child result.
|
| |
| |
| |
| |
| |
| |
| | |
2009-02-23 David Smith <dsmith@redhat.com>
* translate.cxx (translate_pass): Made probe_start()/probe_exit()
function definitions match their declarations.
|
| | |
|
|/ |
|
| |
|
|
|
|
|
| |
This was leftover from my initial draft of autoconf caching.
It's not used at all anymore...
|
|
|
|
|
| |
* translate.cxx (dump_unwindsyms): Adjust sym_addr for ET_DYN always
against module base as workaround for buggy elfutils < 0.138.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
2009-02-20 David Smith <dsmith@redhat.com>
* debugfs.c: Added inclusion of linux/debugfs.h.
* relayfs.h: Removed inclusion of linux/debugfs.h.
|
|/
|
|
|
|
| |
client/server.
Ensure that tests run with/without the server have unique names.
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
ChangeLog
testsuite/ChangeLog
|
| |
| |
| |
| |
| |
| |
| | |
2009-02-20 David Smith <dsmith@redhat.com>
* systemtap.base/cache.exp (stap_compile): Better cleanup.
* static_uprobes.exp: Ditto.
|
| |
| |
| |
| |
| |
| |
| | |
translate.cxx (dump_unwindsyms): Augment the test for creating the
stap-symbols to be STT_FUNC && !(SHN_UNDEF || SHN_ABS). The combination
STT_FUNC && SHN_ABS only seems to occur on older i386 kernels and covers
the vDSO "functions" we were seeing.
|
| |\ |
|