| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
* tapset/context-symbols.stp: Fixed probefunc() by looking for '"' as the
end of the function name along with '@'.
|
|
|
|
|
| |
* tapset/nd_syscalls2.stp: Updated/fixed rt_sigaction32, compat_select,
and sigaction32 probes.
|
| |
|
| |
|
|
|
|
|
| |
* tapset/x86_64/nd_syscalls.stp: Made 'sys32_mmap2' probe point optional,
since it doesn't exist on newer kernels.
|
|
|
|
|
| |
* tapset/nd_syscalls2.stp: Removed '.call' from
'kprobe.function("sys_ia64_pipe")'.
|
|
|
|
|
| |
* tapset/atomic.stp: If we don't have ATOMIC_LOGN_INIT(), ifdef out the
function.
|
|
|
|
|
|
| |
* tapset/i386/nd_syscalls.stp: Add support for 'sys_mmap_pgoff' (which is
what the mmap syscall uses).
* tapset/x86_64/nd_syscalls.stp: Ditto.
|
|
|
|
|
|
| |
* tapset/i386/syscalls.stp: Add support for 'sys_mmap_pgoff' (which is
what the mmap syscall uses).
* tapset/x86_64/syscalls.stp: Ditto.
|
|
|
|
|
| |
* tapset/aux_syscalls.stp: On systems where inotify isn't supported, don't
include inotify.h.
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_sys_pipe2_flag_str): Separate O_NONBLOCK and
O_CLOEXEC support.
(_sys_open_flag_str): Added O_CLOEXEC support.
|
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_signalfd4_flags_str): New utility function.
* tapset/syscalls2.stp (syscall.signalfd[.return]): Handle signalfd4 variant
when available.
* testsuite/systemtap.syscall/signalfd.c: New test.
|
|
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_inotify_watch_mask_str): New helper function.
(_inotify_init1_flag_str): Likewise.
* tapset/syscalls.stp (inotify_add_watch): Stringify watch mask.
(syscall.inotify_init[.return]): Add inotify_init1() support.
* testsuite/systemtap.syscall/inotify.c: New test.
|
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_eventfd2_flag_str): New utility function.
* tapset/syscalls.stp (syscall.eventfd[.return]): Add alternatives to
handle eventfd2.
* testsuite/systemtap.syscall/eventfd.c: New test.
|
|
|
|
|
| |
* testsuite/systemtap.syscall/futimes.c: utimensat was only available since
2.6.22, but libc headers might already define __NR_utimensat.
|
|
|
|
|
| |
* tapset/x86_64/syscalls.stp (syscall.pipe32[.return]): Define same
variables and match argstr with regular syscall.pipe.
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_dup3_flag_str): New helper function.
* tapset/syscalls.stp (syscall.dup2): Add alternatives to handle dup3 also.
* testsuite/systemtap.syscall/dup.c: New testcase.
|
| |
|
| |
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_epoll_create1_flag_str): New helper function.
* tapset/syscalls.stp (syscall.epoll_create[.return]): Match epoll_creat1
if available.
|
|
|
|
| |
* dwflpp.cxx (build_blacklist): Add special_mapping_*
|
|
|
|
|
|
|
|
|
|
|
|
| |
When we start seeing tapsets provided by third parties, any errors in
their files should not be fatal to us. Since we don't really know which
tapsets are our own, this leniency applies to all.
* main.cxx (main): Warn on tapset errors, but continue unless -W.
* testsuite/parseko/bad_tapset/foo.stp: New bogus tapset.
* testsuite/parseko/bad_tapset.stp: Check that "-W -I bad_tapset" fails.
* testsuite/parseok/bad_tapset.stp: Check that "-I bad_tapset" succeeds.
* testsuite/parseok/all_tapsets.stp: Check -W with the default tapsets.
|
| |
|
|
|
|
|
|
| |
* tapset/syscalls2.stp (syscall.pipe.return): ia64 provides pipe0, pipe1
results through (user) registers.
* testsuite/systemtap.syscall/pipe.c: Only expect zero as input fildes.
|
|
|
|
|
|
|
| |
We still require the block for parsing, but the optimizer likes to fold
singleton blocks away, so any statement is possible. PR11341 masks such
issues at compile time, but I'm a little surprised that we've gotten
away with this at runtime...
|
|
|
|
|
|
| |
* testsuite/systemtap.examples/profiling/thread-times.stp: Prefer
perf.sw.cpu_clock to timer.profile. Prettify output by including
comm string.
|
| |
|
| |
|
|
|
|
|
| |
* tapset/syscalls2.stp (syscall.pipe[2][.return]): Merge into syscall.pipe
and syscall.pipe.return. Set name according to flags.
|
|
|
|
| |
See commit c0c1cc.
|
|
|
|
|
|
|
|
|
| |
The pipe2() was added to Linux in version 2.6.27. It is a variant of the
normal pipe syscall, but takes an extra flags argument which can be the
ORed value of O_NONBLOCK and O_CLOEXEC.
* tapset/aux_syscalls.stp (_sys_pipe2_flag_str:string): New helper function.
* tapset/syscalls2.stp (syscall.pipe2, syscall.pipe2.return): New probes.
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (_sys_open_flag_str): If O_CLOEXEC is defined
recognize and return it.
|
|
|
|
|
|
|
|
|
|
|
| |
The actual value of the pipe file descriptors can be interesting,
especially in the syscall.pipe.return probe. This can be done without
any embedded C now using @cast. So don't use _fildes_u() anymore.
_fildes_u in aux_syscall.stp is still retained because it is used in
nd_syscalls2.stp for pipe.
* tapset/syscalls2.stp (syscall.pipe, syscall.pipe.return): Add pipe1
pipe2 convenience variables. Don't use _fildes_u for argstr anymore.
|
|
|
|
|
|
| |
* tapset/aux_syscalls.stp (syscall.pipe): Remove architecture dependent
probe definitions. Newer gcc make $fildes available on more arches.
Use @defined($fildes) to select on which ones.
|
|
|
|
|
|
| |
* runtime/stack.c (_stp_stack_print_tsk): Static.
(_stp_stack_snprint_tsk): Static.
* runtime/task_finder.c (__stp_utrace_task_finder_ops): Static.
|
|
|
|
|
|
| |
* tapset-perfmon.cxx (perf_derived_probe_group::emit_module_decls):
Just pass an index from the individual entry handlers, and let
handle_perf_probe figure out the pp and ph.
|
|
|
|
|
|
|
|
|
|
| |
* perf.h (stap_perf_probe): Define one structure for all our needs.
* perf.c (_stp_perf_init): Use the new struct, return errors directly.
(_stp_perf_exit): Use the new struct.
* tapset-perfmon.cxx (perf_derived_probe_group::emit_module_decls): Use
the stap_perf_probe definition from perf.h now.
(perf_derived_probe_group::emit_module_init): Adapt.
(perf_derived_probe_group::emit_module_exit): Adapt.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The const_folder is where we prune constant expressions, like
conditionals based on a @defined($foo), so we want to give this a chance
to work before skip-badvars comes in and throws a warning.
As an added bonus, this makes skip-badvars more generic, so it will work
even for non-dwarf $target variables.
* elaborate.cxx (const_folder::visit_target_symbol): Enact skip-badvars.
* tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol): Don't
worry about badvars here anymore. Save the error now, clean up later.
* testsuite/semok/badvar_undefined.stp: Test that @defined with
skip-badvars doesn't throw any warnings.
|
| |
|
|
|
|
|
|
| |
* tapset/perf.stp: Add 'em.
* man/tapset::perf.3stap: Document 'em a little.
* stapprobes.3stap.in: Fix .sample (not .samples) probe point typo.
|
|
|
|
|
| |
* tapset/nd_syscalls2.stp: Added support for 'sys_ia64_pipe' so that the
syscall.pipe probe works correctly under RHEL5.5.
|
|
|
|
|
| |
* tapset/syscalls2.stp: Added support for 'sys_ia64_pipe' so that the
syscall.pipe probe works correctly under RHEL5.5.
|
| |
|
|
|
|
|
| |
* elaborate.cxx (const_folder::visit_if_statement, visit_binary_expression,
visit_ternary_expression): Print constant value in -vvv diagnostics.
|
|
|
|
|
| |
* runtime/sym.c: Removed <asm/segment.h> include. That file doesn't exist
on ppc, and it appears to be empty everywhere else.
|
|
|
|
|
| |
* buildrun.cxx (output_cpu_khz): Replace with generalized
output_exportconf().
|
| |
|
|
|
|
|
|
|
| |
* session.h (kernel_exports): New field.
* main.cxx (parse_kernel_exports): Fill it.
* tapset-perfmon.cxx (perf_builder::build): Check it for our pal
perf_event_create_kernel_counter.
|
|
|
|
|
| |
* tapset-perfmon.cxx (perf_builder::build): Check for CONFIG_PERF_EVENTS here.
(register_tapset_perf): ... instead of here.
|
|
|
|
|
|
| |
* tapset/perf.stp: New file.
* tapset-perfmon.cxx (perf_derived_probe): Drop event_name field throughout.
Listen to type(N).config(M) instead.
|