| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
* tapset/context.stp: Improved casting to 'mm_struct' on RHEL5 by changing
the header file referenced from '<linux/mm_types.h>' to
'<linux/sched.h>' (since mm_types.h doesn't exist on RHEL5). On newer
kernels, sched.h includes mm_types.h.
* tapset/proc_mem.stp: Ditto.
|
|
|
|
|
| |
* tapset/context.stp: Add cmdline_str, cmdline_arg and cmdline_args.
* testsuite/buildok/context_test.stp: Add tests for new functions.
|
|
|
|
|
|
|
|
|
|
| |
* runtime/copy.c: Can use ppc64's code.
* runtime/regs.h: Ditto.
* runtime/string.h: Ditto.
* tapset/context.stp: Ditto.
* tapset/errno.stp: Ditto.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Several problems: some invalid <command> etc. directives
in the tapset embedded docs; some analysis about the
non-generation of the pdf; some cleanup of the generated
man pages.
* configure.ac (BUILD_PDFREFDOCS): Correct condition typo, but still
leave disabled.
* doc/SystemTap_Tapset_Reference/Makefile.am (XMLTOMANPARMS): Add,
to disable noise "AUTHORS" / "COPYRIGHT" sections.
* tapset/*.stp: Removed several docbook-y markup that is not valid
in kerneldoc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add /* unprivileged */ to a variety of tapset embedded-c functions,
together with uid-assertion-checking code as needed. This is only
an initial set, and may need to grow or shrink after further testing.
Prototyped-By: Dave Brolley <brolley@redhat.com>
* runtime/runtime.h (is_myproc, assert_is_myproc): New macros.
* runtime/addr-map.c (lookup_bad_addr): Reject if !is_myproc
in unprivileged mode.
* runtime/print.c (_stp_print_kernel_info): Add unprivileged
mode info.
* tapset/DEVGUIDE: Document /* pure */ and /* unprivileged */.
* tapset/*.stp: Add /* unprivileged */ here and there, in
questionable cases along with an assert_is_myproc().
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* tapset/context.stp: Add pgrp() function.
* testsuite/buildok/context_test.stp: Add pgrp() call.
* stapfuncs.3stap.in: Describe pgrp() and sid().
Signed-off-by: Josh Stone <jistone@redhat.com>
|
| |
|
| |
|
|
|
|
|
|
| |
PR10117 fix.
* tapset/context.stp: Added ppc64 task_pt_regs() definition if it dooesn't
already exist.
|
|
|
|
|
| |
* tapset/context.stp (uaddr): Marked as experimental. Add FIXME for vdso
tracking bug #10080.
|
|
|
|
|
| |
* tapset/context.stp (uaddr): New sfunction.
* testsuite/buildok/uaddr.stp: New test.
|
| |
|
| |
|
|
|
|
| |
tapsetdescription for man page generator (in development)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* context.stp (module_name): New. Returns the current
module name.
* tcp.stp (tcp_sendmsg): For 2.6.23, parameters change.
|
|
|
|
| |
* context.stp (cpuid, cpu): Use smp_processor_id().
|
|
|
|
|
| |
* context.stp (print_backtrace): If no regs, just
print the probe point.
|
|
|
|
|
|
|
|
| |
* context.stp (print_backtrace): Modify for new
_stp_stack_print.
(backtrace): Just use _stp_stack_snprint().
(print_stack): Use new _stp_print* functions.
(probefunc): Use _stp_symbol_snprint.
|
|
|
|
| |
* context.stp (caller_addr): Declare return type.
|
|
|
|
|
| |
* context.stp: Added proper handling of statement
* probe in probefunc() for IA64 (bz# 3423)
|
|
|
|
|
|
|
|
|
|
|
|
| |
* context.stp (print_backtrace): Pass in new
kretprobe instance arg.
(backtrace): Ditto.
(is_return): Rewrite.
(stack_size): New.
(stack_used): New.
(stack_unused): New.
(called_addr): New.
(caller): New.
|
|
|
|
|
| |
* context.stp (probefunc): Return empty string for
userspace (< PAGE_OFFSET) pointers.
|
|
|
|
|
|
| |
* tapset/context.stp (probemod): New function.
* stapfuncs.5.in: Document it.
* testsuite/buildok/probemod.stp: Test it.
|
| |
|
|
|
|
|
|
| |
* context.stp: Removed returnval() function. Use $return
instead.
* return.stp: Removed. Use $return instead.
|
|
|
|
|
|
|
| |
PR 2677
* sym.c (_stp_symbol_sprint_basic): New function that returns
just the symbol name, and doesn't bother with String.
* context.stp (probefunc): Use _stp_symbol_sprint_basic
|
|
|
|
| |
And some minor changes to current tapsets
|
|
|
|
| |
* context.stp (probefunc): remove use of labels
|
|
|
|
| |
* context.stp (probefunc): define our own exit label
|
| |
|
|
|
|
|
|
|
| |
PR 2594
From Thang P Nguyen <thang.p.nguyen@intel.com>
* context.stp (probefunc): expands ability to detect the function
for different types of probes.
|
|
|
|
| |
* context.stp, errno.stp: Note/eliminate some retval() duplication.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 2427.
* staptree.cxx (varuse_collecting_visitor::visit_embeddedcode):
Support /* pure */ declaration. Stop using __tvar_ naming hack.
(v_c_u::visit_print_format): Mark sprint and sprintf as
side-effect-free.
(deep_copy_visitor::visit_print_format): Propagate raw_components.
* stap.1.in: Document declaration.
* elaborate.cxx (semantic_pass_opt2): Verbose message tweak.
(dead_stmtexpr_remover): Extend for more aggressive optimization.
* tapsets.cxx (dwarf,mark_var_expanding_copy_visotor): Add
/* pure */ declaration to rvalue expansions.
* tapset/*.stp: Added /* pure */ declarations to many functions.
* testsuite/parseok/unparsers.stp: Propagate guru mode flag.
* testsuite/buildok/twentyfour.stp: New test.
|
|
|
|
|
| |
* context.stp: Fix definition of returnval(). Now the same as retval().
Cleanup needed. Only one can survive.
|
|
|
|
|
|
| |
* stapfuncs.5.in (cpu): Document contextinfo function.
* context.stp (cpu): Clone undocumented cpuid() function.
|
|
|
|
|
|
|
| |
* syscalls.stp: New syscall file.
* syscall2.stp: More syscalls.
* i686/syscalls.stp: x86-specific calls.
* x86_64/syscalls.stp: x86_64-specific calls.
|
|
|
|
|
|
| |
* context.stp (probefunc): New function.
(is_return): New function.
(returnval): New function.
|