summaryrefslogtreecommitdiffstats
path: root/tapset
Commit message (Collapse)AuthorAgeFilesLines
* Avoid sign extension in syscall return values.David Smith2009-04-171-9/+15
| | | | | | | | 2009-04-17 David Smith <dsmith@redhat.com> * tapset/utrace.stp: Cast the return value of syscall_get_return_value() to an unsigned long to avoid sign extension.
* PR9953: split up the two process.* tapsetsJosh Stone2009-04-142-18/+18
| | | | | | | The overlapping process.* tapsets are now separated. Those probe points documented in stapprobes(3stap) remain the same. Those that were formerly in stapprobes.process(3stap) have been renamed to kprocess, to reflect their kernel perspective on processes.
* Add new TCP and IP functionsAndre Detsch2009-04-142-0/+140
| | | | | | | | | | | | | | | | | | | This patch adds some basic functions to the IP and TCP tapsets. Mainly, it's possible to get the iphdr and tcphdr from a sk_buff structure. As a consequence, a TCP probe called tcp.receive() was created and is probed every time a TCP packet is received, and a lot of useful fields is available, as the TCP flags. Also a small example that works like tcpdump for received TCP packets was created. This patch was tested on x86 and ppc machines, on 2.6.18 kernel and also on mainline one. Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com> Signed-off-by: Andre Detsch <adetsch@br.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* Uses <asm/syscall.h> when available.David Smith2009-04-091-3/+5
| | | | | | | | | | | | | | | | | | | | 2009-04-09 David Smith <dsmith@redhat.com> * buildrun.cxx (compile_pass): Compile autoconf test for <asm/syscall.h>. * runtime/autoconf-asm-syscall.c: New "autoconf" test the presence of <asm/syscall.h>. * runtime/syscall.h: If <asm/syscall.h> exists, use it. Otherwise, use our private copy of the functions for each architecture. (syscall_get_nr): Renamed from __stp_user_syscall_nr(). (syscall_get_return_value): Renamed from __stp_user_syscall_return_value(). (syscall_get_arguments): Renamed from __stp_user_syscall_arg(). * runtime/task_finder.c (__stp_utrace_task_finder_target_syscall_exit): Uses new syscall.h functions. * tapset/utrace.stp: Ditto.
* Add uaddr() context tapset function.Mark Wielaard2009-04-081-0/+25
| | | | | * tapset/context.stp (uaddr): New sfunction. * testsuite/buildok/uaddr.stp: New test.
* Create usymname and usymdata variant that trigger STP_NEED_VMA_TRACKER.Mark Wielaard2009-04-072-2/+54
| | | | | | | | | * tapset/context-symbols.stp (syname, symdata): Pass NULL for kernel address. * tapset/ucontext-symbols.stp: New file defining usymname and usymdata. * testsuite/systemtap.context/usymbols.exp: Use usymname, remove STP_NEED_VMA_TRACKER hack. * testsuite/buildok/usymdata.stp: New test. * testsuite/buildok/usymname.stp: Likewise.
* New ANSI escape sequences tapsetEugene Teo2009-04-031-0/+70
| | | | | | | This adds a new tapset for ANSI escape sequences. It is based on an existing tapset that was written by Masami Hiramatsu for the stapgames project. This also adds a version of ansi_color.stp script that displays other attributes other than the bold effect.
* Improvements to errno tapsetEugene Teo2009-04-031-3/+11
| | | | | | This adds an errno_p() function that will return an absolute errno if it is valid, or zero if it is not. It also simplifies the if statement in the errno_str() function.
* PR6580: Implement symname, symdata and modname context functions.Mark Wielaard2009-04-022-8/+54
| | | | | | | | | | | | | | | | | | This adds a couple of the suggested context/stack revamp functions from PR6580. In particular it replaces the symbolname() function that sneaked in with the pr6866 branch merge with the suggested symname(). * runtime/sym.c (_stp_mod_sec_lookup): Make section optional. (_stp_symbol_snprint): Provide a way to get optional module info. * tapset/context-symbols.stp: Replace symbolname() with symname(), add modname() and symdata(). (probemod): Implement pc based fallback. * tapset/context-unwind.stp (caller): Adjust for _stp_symbol_snprint change. * testsuite/systemtap.context/usymbols.exp: Use new symname. * testsuite/buildok/modname.stp: New test. * testsuite/buildok/symdata.stp: Likewise. * testsuite/buildok/symname.stp: Likewise.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapMark Wielaard2009-04-011-1/+1
|\
| * PR10020 sys_sigaltstack param changeFrank Ch. Eigler2009-04-011-1/+1
| | | | | | | | | | | | The new code uses a %( kernel_v < "2.6.29" %) conditional to look at the passed pt_regs instead of named *bx parameters. A more general solution will be needed at some point.
* | Merge branch 'master' into pr6866Mark Wielaard2009-04-013-19/+40
|\|
| * Add missing socket function argument descriptions.Mark Wielaard2009-03-311-0/+6
| | | | | | | | * tapsets/socket.stp: Add descriptions for proto, family and state.
| * PR9998: adapt tapset/i686/registers.stp to latest kernelWenji Huang2009-03-301-18/+32
| | | | | | | | | | | | | | | | | | * buildrun.cxx (compile_pass): Add autoconf-x86-gs.c. * tapset/i686/registers.stp (_stp_register_regs): Update offsets. (test_x86_gs): Auxiliary function. * runtime/autoconf-x86-gs.c : New file. * testsuite/systemtap.base/x86_gs.exp : New test case. * testsuite/systemtap.base/x86_gs.stp : Ditto.
| * Make aux_tapset.stp "long long" size agnostic so ia64 works.William Cohen2009-03-251-1/+2
| |
* | Merge branch 'master' into pr6866Mark Wielaard2009-03-222-0/+66
|\|
| * Added functions to grab IP source and destination from a socket, andBreno Leitao2009-03-202-0/+66
| | | | | | | | | | | | | | functions to grab TCP source and destination port from a socket. Also, used this function inside some TCP probe functions, as recvmsg, to provide a richer set of fields.
* | Merge branch 'master' into pr6866Mark Wielaard2009-03-201-7/+0
|\|
| * Removed #if defined. Format '%llx' works fine for all ArchMahesh J Salgaonkar2009-03-201-7/+0
| |
* | Merge branch 'master' into pr6866Mark Wielaard2009-03-181-8/+7
|\|
| * minor editsddomingo2009-03-181-8/+7
| |
* | Merge branch 'master' into pr6866Mark Wielaard2009-03-1726-1239/+1773
|\| | | | | | | | | Resolved conflicts: runtime/task_finder.c: name vs path.
| * Remove trailing 'g' from scsi.stp file.Mark Wielaard2009-03-171-1/+0
| | | | | | | | * tapset/scsi.stp: Remove 'g' at end of file.
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapddomingo2009-03-171-0/+24
| |\
| | * Add pid-based data lookup function.Wenji Huang2009-03-161-0/+24
| | | | | | | | | | | | Two functions pid2task and pid2execname.
| * | minor editsddomingo2009-03-171-38/+32
| | |
| * | minor editsddomingo2009-03-171-1/+1
| | |
| * | minor editsddomingo2009-03-176-21/+20
| | |
| * | further cleanup for formattingddomingo2009-03-171-4/+4
| | |
| * | further cleanup for formattingddomingo2009-03-171-21/+21
| | |
| * | minor editsddomingo2009-03-171-48/+22
| |/
| * Edit signal.stp documentation comments.William Cohen2009-03-161-69/+105
| |
| * minor edits to ensure uniformity in manpage generatorddomingo2009-03-161-4/+4
| |
| * minor editddomingo2009-03-161-4/+3
| |
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-6/+8
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+3
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+3
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+3
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+3
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-3/+5
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-3/+5
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-9/+11
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+4
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | | | | | tapsetdescription for man page generator (in development)
| * fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | | | | | tapsetdescription for man page generator (in development)
| * Merge sequential casts in the vfs tapsetJosh Stone2009-03-101-35/+19
| | | | | | | | | | | | | | | | | | A few places in this tapset were using a pattern like this: i_sb = @cast(foo, "inode")->i_sb return @cast(foo, "super_block")->bar The type of i_sb is already known, so I just merged this to: return @cast(foo, "inode")->i_sb->bar
| * PR9932: use @cast module search pathJosh Stone2009-03-103-60/+35
| | | | | | | | | | | | | | | | | | The nfs, rpc, and scsi tapsets use @cast on types that may be compiled into a kernel module or into the main kernel binary. The @cast search path separated with colons lets us search both the kernel and the module. For a couple of cases, I also merged sequential @casts that work just fine as a single cast with a multiple-level dereference.
| * Add safety checks to _stp_get_register_by_offset()Josh Stone2009-03-094-1/+41
| | | | | | | | | | This now checks that CONTEXT->regs actually exists, and that the requested offset is in the correct range.