| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Patch from Prerna Saxena.
|
| |
|
|
|
|
|
|
|
|
| |
+ and * are metacharacters, but should always be used
as metacharacters in the expressions, don't escape them.
* testsuite/systemtap.syscall/test.tcl (run_one_test): Remove escaping
of + and *.
|
|
|
|
|
|
|
|
|
| |
Newer gcc (4.4) places more DW_TAG_subprograms with DW_AT_declaration
at call sites. iterate_over_labels should only be concerned about
complete declarations.
* tapsets.cxx (dwflpp::iterate_over_labels): Skip DW_TAG_subprogram
that has attribute DW_AT_declaration.
|
|
|
|
| |
* testsuite/systemtap.base/alternatives.exp (local1_script): Fix typo.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The syscall testsuite uses embedded "// TEXT" markers in the .c files
to designate expected output, kind of like the "dg-" bunch in the gcc
test suite. Unfortunately, "//" is not a unique prefix to systemtap
tests, and in particular it can occur in the system headers that will
be picked up with the "gcc -E -C ..." invocation in test.tcl.
So let's switch to "//staptest//". test.tcl is also modified to
escape a few more mischevious regexp metacharacters that might sneak
past.
|
| |
|
|
|
|
|
|
| |
* buildrun.cxx (run_make_cmd, kernel_built_uprobes,
copy_uprobes_symbols, run_pass, make_typequery_umod):
Print strerror after a failed stap_system() if verbose.
|
|
|
|
|
|
| |
PR10117 fix.
* tapset/context.stp: Added ppc64 task_pt_regs() definition if it dooesn't
already exist.
|
|
|
|
| |
While there, fix minor issues with the s390x syscall tapset.
|
| |
|
|
|
|
|
|
|
|
| |
Using timeval had problems on big-endian multi-arch platforms (ppc64),
because the user tv_sec used in the @cast didn't match the kernel tv_sec
used to provide a pointer. Hopefully reading from a sockaddr should be
more robust, as that type doesn't appear to need any compat wrappers for
multi-archs.
|
|
|
|
|
|
|
| |
* testsuite/systemtap.base/flightrec2.exp: Use stat instead of ls for checking
file size.
* testsuite/systemtap.base/flightrec2.stp: Increase timer interval for some
architecture on which the minimum interval is more than 1 ms (e.g. xen)
|
|
|
|
|
|
| |
* elaborate.cxx: Early return for mismatched optional probe.
* testsuite/systemtap.base/optionalprobe.exp: New test case.
* testsuite/systemtap.base/optionalprobe.stp: Ditto.
|
| |
|
| |
|
|
|
|
| |
... rather than exiting with MAXACTIONS exceeded
|
|
|
|
|
|
| |
* tapset/conversions.stp (user_string_n2): Explicitly null terminate
return string.
(user_string_n_warn): Likewise.
|
|
|
|
|
|
|
| |
Instead of just structs and unions, we now also process typedefs, enums,
and base types in iterate_over_globals, so declaration_resolve can find
more variations. This especially useful to let @casts reference typedef
names.
|
|
|
|
|
| |
In translate_components, give a cleaner warning about trying to
dereference an enum type, rather than "unexpected type tag".
|
|
|
|
|
|
|
|
|
|
| |
PR10091 fix.
* runtime/itrace.c: Includes ptrace_compatibility.h.
(usr_itrace_report_quiesce): Corrected return value for original version
of utrace.
* runtime/ptrace_compatibility.h: Defines arch_has_single_step() and
arch_has_block_step() in terms of ARCH_HAS_SINGLE_STEP and
ARCH_HAS_BLOCK_STEP.
|
|
|
|
|
|
|
| |
Output debuginfo file name and build-id if verification
failed.
* runtime/sym.c: Print more info if not matched.
|
|
|
|
|
|
|
|
|
|
| |
This patch will make %M directive dump the variable width
buffer in hex format instead of returning uint64_t number
as before.
* runtime/vsprintf.c: Modify %M directive.
* stap.1.in: Update description.
* testsuite/systemtap.printf/memory1.stp: Add test case.
|
|
|
|
|
|
| |
* tapset/string.stp: New function stringat.
* testsuite/systemtap.printf/char1.exp: Update test case.
* testsuite/systemtap.printf/char1.stp: Ditto.
|
|
|
|
|
|
|
|
| |
Older (2.6.18) based kernels defined struct kprobes symbol_name as char *,
but newer (2.6.27) based kernels defined the same field as const char *.
* tapsets.cxx (kprobe_derived_probe_group::emit_module_init):
Always cast to char * when assigning to kprobes.symbol_name field.
|
|
|
|
|
| |
* tapsets.cxx (kprobe_derived_probe): Use enter_k[ret]probe>>2<<_probe.
* testsuite/buildok/thirtyone.stp: Test this.
|
| |
|
| |
|
|
|
|
| |
* tapset/syscalls.stp: Rename fs variable to fd.
|
|
|
|
|
| |
The code to emit maxactive was almost there; it just needed to enable
the maxactive probe component and pass the value down.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
All of our other kprobe types will let the script continue after a
registration failure, as per PR6749. The dwarfless kprobes should be
no exception.
Also, the way they were exiting was causing an unclean shutdown, so I
added tests to badkprobe.exp to make sure that cleanup is always allowed
to run.
|
| |
|
|
|
|
|
| |
Resynch uprobes1 2-byte-opcode table with uprobes2 x86. Mostly changes a
bunch of mmx instructions from rejected to accepted.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* runtime/task_finder.c (__stp_utrace_task_finder_target_syscall_entry):
New function that caches syscall arguments for mmap(), munmap(), and
mprotect() for use in __stp_utrace_task_finder_target_syscall_exit().
(__stp_utrace_task_finder_target_syscall_exit): Uses cached syscall
argument info when making callbacks.
(stap_start_task_finder): Initializes map subsytem for storing syscall
argument data.
* runtime/task_finder_map.c: New file containing functions to save and
retrieve syscall arguments.
|
|
|
|
| |
HEAD for old gits
|
| |
|
| |
|
| |
|
|
|
|
| |
to make sdt.exp pass
|
|
|
|
|
| |
* sdt.h (STAP_NOP): New.
(STAP_PROBE): Use it.
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| | |
This reverts commit 52bc8b53c4bf03d51edf02d088aa04af809b9005.
|