| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
canonicalizing /lib/modules/KVER/systemtap.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
* loc2c.c (alloc_location, location_from_address, c_translate_constant):
Initialize ops and nops fields.
|
| |
| |
| |
| |
| | |
* runtime/sym.c (_stp_tf_mmap_cb): Only look for first load of whole module
that is executable. Add check for detecting reloading of module.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
group owner of the uprobes buld directory to build uprobes.ko.
- When building uprobes.ko, make all generated files writable by the group
owner of the uprobes build directory.
- Don't change the group owner of the uprobes build directory during
'make install'
|
|\| |
|
| |\ |
|
| | |
| | |
| | |
| | | |
limited to members of stapusr.
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | | |
Conflicts:
configure
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* doc/SystemTap_Tapset_Reference/Makefile.am: Check for file existence
before doing compare.
* doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated.
* tapset/ioblock.stp: Fixed comment so that docs can be built.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
* testsuite/systemtap.base/cu-decl.exp: Check utrace.
* testsuite/lib/stap_compile.exp: Make catch after wait.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* tapset/ioblock.stp: Update comment and variables.
* testsuite/buildok/ioblock_test.stp: Add parameters.
* testsuite/buildok/ioscheduler.stp: Remove redundant parameters.
|
| | |
| | |
| | |
| | |
| | | |
Added testcases for these probes.
Also, modified comments in ioblock.stp so that tapset docmentation can be automatically generated for this tapset.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In 2.6.32-rc7, there are two power.h tracepoints headers, and only the
one in trace/events/ is valid. In general, we can expect that
trace/events/ has newer headers, so we should search those first.
* tapsets.cxx (tracepoint_builder::init_dw): Search /events/ first.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* tapset/networking.stp: Made 'netdev.change_rx_flag' and
'netdev.get_stats' optional, since those functions don't exist on
RHEL5.
* testsuite/buildok/netdev.stp: Ditto.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* testsuite/systemtap.pass1-4/buildok.exp: On rhel5 and rawhide, the
buildok/sched_test.stp and buildok/process_test.stp tests pass
sucessfully, so there is no reason to kfail them.
|
| |/
| |
| |
| |
| |
| |
| | |
* tapset/nfs_proc.stp: Made 'nfs.proc.read', 'nfs.proc.write', and
'nfs.proc.commit' optional for newer kernels without those functions.
* testsuite/systemtap.pass1-4/buildok.exp: Expect nfs-all-probes.stp to
pass.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Check that we can dereference a type declaration that is
defined in a separate CU from the function.
|
| | |
|
| |
| |
| |
| |
| | |
* configure.ac (PROCFLAGS): Don't define it.
* Makefile.am: Don't use it.
|
| | |
|
| |
| |
| |
| |
| | |
* testsuite/systemtap.pass1-4/buildok.exp: Test twentyseven.stp should
pass now.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* dwflpp.h (declaration_resolve_other_cus): New method.
(iterate_over_globals): Mark as static and takes a CU to iterate over.
(global_alias_caching_callback_cus): New method.
* dwflpp.cxx (global_alias_caching_callback_cus): New method.
(declaration_resolve_other_cus): New method.
(declaration_resolve): Call iterate_over_globals() with current cu.
Call declaration_resolve_other_cus() when name not found.
(iterate_over_globals): Takes cu_die to iterate over as argument.
|
| |
| |
| |
| |
| | |
* tapset/aux_syscalls.stp: Only define entries for IRQF_* flags if they
exist.
|
| |
| |
| |
| |
| | |
* tapset/aux_syscalls.stp: Only define entries for
IRQF_NOBALANCING/IRQF_IRQPOLL if they exist.
|
| |
| |
| |
| |
| |
| |
| |
| | |
If there is a DW_AT_MIPS_linkage_name it encodes the actual name of
the variable as used in the symbol table.
* dwflpp.cpp (vardie_from_symtable): Check whether there is a
DW_AT_MIPS_linkage_name attribute and use its value if so.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Caching of the address is only safe for kernel addresses that can never
change. For kernel module or dynamic shared library addresses it isn't
safe to cache the address since they can be unloaded, reloaded or mapped
differently in separate executables.
* dwflpp.cxx (emit_address): Remove static from addr definition for
kernel and dynamic modules.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We are abusing the "first" section address here to indicate where the
module (actually first segment) is loaded (which is why we are ignoring
the offset). It would be good to redesign the stp_module/stp_section
data structures to better align with the actual memory mappings we are
interested in (especially the "section" naming is slightly confusing
since what we really seem to mean are elf segments (which can contain
multiple elf sections).
* runtime/sym.c (_stp_tf_mmap_cb): Add cheat comment.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* tapset/nfs.stp(nfs.fop.fsync): Added support for nfs_file_fsync.
(nfs.fop.fsync.return): Ditto.
(nfs.aop.readpages.return): Fixed 'size' bug.
(nfs.aop.write_begin): Renamed to make 'nfs.*.*' probes work correctly.
(nfs.aop.write_end): Ditto.
(__nfs.aop.write_begin): Ditto.
(__nfs.aop.write_end): Ditto.
(__nfs.aop.prepare_write): Ditto.
(__nfs.aop.commit_write): Ditto.
(nfs.fop.aio_read.return): Always sets 'units'.
(nfs.fop.aio_write.return): Ditto.
(nfs.fop.sendfile.return): Ditto.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Explicit testcase for PR10010 and PR10622.
* testsuite/systemtap.base/externalvar.c: New file.
* testsuite/systemtap.base/externalvar.exp: New file.
* testsuite/systemtap.base/externalvar.stp: New file.
* testsuite/systemtap.base/externalvar_lib.c: New file.
|
| |
| |
| |
| |
| |
| |
| |
| | |
* dwflpp.cxx (dwflpp::emit_address): Enable task finder and emit a
_stp_module_relocate for the ".dynamic" section when seeing a
user-space dso address.
* runtime/sym.c (_stp_mod_sec_lookup): Remove .dynamic section addr cheat.
(_stp_tf_mmap_cb): Add cheat here.
|
| |
| |
| |
| |
| |
| |
| | |
* runtime/sym.h: Define _stp_need_vma_tracker.
* translate.cxx (emit_symbol_data_done): Output _stp_need_vma_tracker value.
(c_unparser::emit_module_init): If STP_NEED_VMA_TRACKER isn't defined
check _stp_need_vma_tracker to call _stp_sym_init().
|
| |
| |
| |
| |
| | |
* tapset/nfs.stp: Added support for nfs_write_begin()/nfs_write_end(),
which replaced nfs_prepare_write()/nfs_commit_write().
|
| |
| |
| |
| |
| | |
* tapset/ansi.stp: Add documentation for every function.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add chapter on ansi.
|
| |
| |
| |
| |
| |
| |
| |
| | |
* dwflpp.h (vardie_from_symtable): New method.
* dwflpp.cxx (vardie_from_symtable): New method.
(literal_stmt_for_local): Use vardie_from_symtable when no location
attribute and DW_AT_external.
* testsuite/buildok/xtime.stp: New testcase from PR10622.
|
| |
| |
| |
| |
| |
| |
| | |
IRQF_ONESHOT was only introduced in 2.6.32. It doesn't hurt defining it
if it isn't already there. It will just never show up on older kernels.
* tapset/aux_syscalls.stp: Define IRQF_ONESHOT if not already defined.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add chapter on ctime.stp.
* tapset/ctime.stp: Turn documentation into proper reference markup.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When using relative (non-canonical) paths for user modules one would get
a confusing WARNING: missing unwind/symbol data for module 'bin/test'.
Also unless the path started with '/' the task_finder wouldn't start.
By checking that the given file can be made absolute (canonicalized)
both issues are resolved and the user module will be correctly identified
at both translation and runtime.
* main.cxx (main): case 'd' try canonicalize_file_name() the argument
first to identify user modules.
|
| | |
|