summaryrefslogtreecommitdiffstats
path: root/tapset
Commit message (Collapse)AuthorAgeFilesLines
...
* more generic documentationfche2006-02-071-2/+5
|
* Correct opening comment typo.wcohen2006-02-061-1/+1
|
* Remove closing comment typos.wcohen2006-02-061-3/+0
|
* updated- still need more workshien2006-02-041-2324/+2215
|
* Remove inadventently checked in change.hunt2006-02-011-17/+1
|
* 2006-02-01 Martin Hunt <hunt@redhat.com>hunt2006-02-0111-12813/+2506
| | | | | | | * syscalls.stp: New syscall file. * syscall2.stp: More syscalls. * i686/syscalls.stp: x86-specific calls. * x86_64/syscalls.stp: x86_64-specific calls.
* 2006-01-30 Martin Hunt <hunt@redhat.com>hunt2006-01-312-0/+31
| | | | | | * context.stp (probefunc): New function. (is_return): New function. (returnval): New function.
* 2006-01-24 Frank Ch. Eigler <fche@elastic.org>fche2006-01-241-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR 2060 etc. * tapsets.cxx (visit_target_symbol): Tolerate failed resolution by letting target_symbol instance pass through to optimizer and type checker. * elaborate.cxx (semantic_pass_optimize): New family of functions and associated visitor classes. (visit_for_loop): Tolerate absent init/incr clauses. (semantic_pass): Invoke unless unoptimized (-u) option given. * main.cxx, session.h: Add support for flag. * staptree.cxx (visit_for_loop): Tolerate absent init/incr clauses. (traversing_visitor::visit_arrayindex): Visit the index expressions. (functioncall_traversing_visitor): New class. (varuse_tracking_visitor): New class. * staptree.h: Corresponding changes. * parse.cxx (parse_for_loop): Represent absent init/incr expressions with null statement pointer instead of optimized-out dummy numbers. * stap.1.in: Document optimization. * testsuite/{semko,transko}/*.stp: Added "-u" or other code to many tests to check bad code without optimizer elision. * testsuite/semok/optimize.stp: New test. * elaborate.cxx (unresolved, invalid, mismatch): Standardize error message wording. * stapfuncs.5.in: Tweak print/printf docs. * tapset/logging.stp: Remove redundant "print" auxiliary function, since it's a translator built-in. * testsuite/transok/five.stp: Extend test. * translate.cxx (emit_symbol_data): Put symbol table into a separate temporary header file, to make "-p3" output easier on the eyes. * buildrun.cxx (compile_pass): Eliminate test-mode support throughout. * main.cxx, session.h, translate.cxx: Ditto. * main.cxx (main): For last-pass=2 runs, print post-optimization ASTs.
* 2006-01-15 Frank Ch. Eigler <fche@elastic.org>fche2006-01-152-1/+5
| | | | | | | | PR 2148 * translate.cxx (MAXERRORS): Actually the max should be 0, so first error aborts session. * Revert last stp_exit change.
* 2006-01-10 Martin Hunt <hunt@redhat.com>hunt2006-01-102-1/+6
| | | | | * logging.stp: Don't set STAP_SESSION_STOPPING. That it done in _stp_exit().
* 2006-01-03 Frank Ch. Eigler <fche@redhat.com>fche2006-01-031-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR 1144, 1379 * tapsets.cxx (emit_probe_prologue, _epilogue): New routines. Call from existing derived_probe spots. Implement soft errors in epilogue code. Implement reentrancy detection in prologue code. (dwarf_derived_probe::emit_deregistration): Add kprobes layer "nmissed" to skipped_count. * translate.cxx (varlock): Use nsleep(TRYLOCKDELAY) in lock contention loop. (emit_module_exit): Report number of soft errors and skipped probes. (emit_function, _probe): Add __restrict__ marker to context pointer. (translate_pass): Define new MAXTRYLOCK, TRYLOCKDELAY, MAXERRORS, MAXSKIPPED parameters. * tapset/logging.stp (error): Don't stp_error, just set context state. * stap.1.in, stapfuncs.5.in: Document soft errors. * elaborate.h: Corresponding changes. 2006-01-03 Frank Ch. Eigler <fche@redhat.com> * io.c (_stp_softerror): New function. 2006-01-03 Frank Ch. Eigler <fche@redhat.com> * systemtap.base/timers.exp: Extend the test run duration. Accept skipped probe warnings at shutdown.
* * formatting/typo fixesfche2006-01-031-0/+0
|
* 2005-12-23 Kevin Stafford <krstaffo@us.ibm.com>kevinrs2005-12-236-0/+5107
| | | | | | | | | | | | | | | | | | | | | SCRIPTS: run.sh - This is the driver for automated testing. To run: ./run.sh stpdirectory c_binaries_directory Result: log/timestamp.log discerpancy report ctostp.sh - This script generates corresponding stp probe script files for every C file found in the input directory. To Run: ctostp.sh input output where input is the directory containing the C files to convert. Output is the directory to store the corresponding stp files. build.sh - This script expedites the process of compiling all of the c files. When the "compile" flag is given it creates a directory called bin, which stores the compiled C programs. ./build.sh clean removes the binaries, and ./build.sh run attempts to execute all of the programs in cfiles/bin.
* 2005-12-23 Kevin Stafford <krstaffo@us.ibm.com>kevinrs2005-12-233-0/+5447
| | | | | | | | | * tapset/2.6.9-20.ELsmp/syscalls.stp: added kernel version tapset * tapset/2.6.9-20.ELsmp/i686/syscalls.stp: added kernel version arch specific tapset * tapset/doc/dicrepancies.txt: log of kernel version discrepancies.
* Added cpuid().hien2005-12-151-0/+3
|
* 2005-12-14 Kevin Stafford <krstaffo@us.ibm.com>kevinrs2005-12-153-560/+5413
| | | | | | | | | | * 2.6.14/syscalls.stp: added 2.6.14 syscalls to tapset * 2.6.14/i686/syscalls.stp: added i386 arch specific syscalls to tapset for kernel 2.6.14 * 2.6.9-24.ELsmp/syscalls.stp: added 2.6.9-24.ELsmp/ syscalls to tapset * system_calls.stp: removed generic system_calls.stp tapset.
* 2005-12-12 Kevin Stafford <krstaffo@us.ibm.com>kevinrs2005-12-151-0/+214
| | | | | * syscalls.stp: added x86_64 arch specific syscalls to tapset for kernel 2.6.9-24.ELsmp
* 2005-12-14 Martin Hunt <hunt@redhat.com>hunt2005-12-141-4/+7
| | | | | | | * tapset/system_calls.stp (epoll.ctl): Temporarily remove references to $op and $event because gcc 4.0.2 can't find them. (epoll.wait): Ditto for $maxevents.
* 2005-12-12 Josh Stone <joshua.i.stone@intel.com>jistone2005-12-121-36/+9
| | | | | | * tapset/context.stp (execname,pid,tid,ppid,pexecname,gid,egid,uid,euid): Removed in_interrupt checks and other pointer checks. We now operate on the assumption that "current" and its related data are always valid.
* Stop additional systemtap probes from collecting data when exit()wcohen2005-12-121-0/+1
| | | | occurs.
* * system_calls.stpkevinrs2005-12-071-1/+1
| | | | * trivial mispelling corrected
* * system_calls.stp:kevinrs2005-12-072-4072/+4469
| | | | | | | | | | | | | * alphabatized for easier navigation * removed comments from reference to void pointer args * removed reference to some unsafe copy_from_user funcs * added final aliases for i386 * aux_syscalls.stp * commented out embedded C functions that made use of copy_from_user(), a function that might sleep and that was causing Oops on my machine when sleep was called from invalid context.
* * commented pciconfig_* system calls that failed to resolve to probekevinrs2005-11-281-10/+16
| | | | | | | | | | | points. * commented reference to arg stack_start in clone, fork, vfork that were unable to resolve properly. * commented arg reference to pt_regs in execve, it is an unsupported type. * commented arg reference to union semun arg in semctl, it is an unsupported type. * This tapset tested for i386.
* 2005-11-18 Martin Hunt <hunt@redhat.com>hunt2005-11-181-4/+0
| | | | | | | | | | | | | | | | | | | | | | | PR 1837 * testsuite/buildko/one.stp: Replace printk. * testsuite/buildok/one.stp: Ditto. * testsuite/buildok/two.stp: Ditto. * testsuite/semko/fifteen.stp: Ditto. * testsuite/semko/fourteen.stp: Ditto. * testsuite/semko/thirteen.stp: Ditto. * testsuite/transok/eight.stp: Ditto. * testsuite/transok/seven.stp: Ditto. * testsuite/transok/six.stp: Ditto. * tapsets.cxx (*::emit_probe_entries): Replace printk() calls with _stp_warn(). * stap.1.in: Replace printk with printf in example. * stapfuncs.5.in: Remove docs for printk and add for print and printf. * tapset/logging.stp (printk): Deleted.
* * system_calls.stpkevinrs2005-11-102-6196/+4819
| | | | | | | | | | Polished entry point aliases, no more pointer-deref faults (instead the user-space address is given for pointer arguments). Return probe aliases still dont do much. Tested on vanilla 2.6.13 and 2.6.14. * aux_syscalls.stp Any helpers for the syscall tapset are now in this file. More to come.
* 2005-11-09 Frank Ch. Eigler <fche@elastic.org>fche2005-11-091-2/+9
| | | | | | Reported by Guang Lei Li <liguangl@cn.ibm.com>: * tapset/context.stp (pid,ppid,tid): Correctly pick tgid vs pid. * testsuite/buildok/context_test.stp: Print out tid() too.
* 2005-11-08 Frank Ch. Eigler <fche@redhat.com>fche2005-11-081-4/+4
| | | | | | | * tapsets.cxx (blacklisted_p): Add blacklist for some .return probes to kludge around bug #1345. * tapset/system_calls.stp: Add some %( %? %) conditionals to get closer to using tapset on 2.6.9 kernel.
* tapset/systemcall.stp:kevinrs2005-10-122-234/+418
| | | | | | | | | | * Tested the first 15 aliases on fc4. Cleaned up some code. tapset/aux_syscalls.stp: * Added file to contain aux helper functions that are used by the system call tapset. Added embed- ded C functions to extract values from user- space pointers.
* * tapset/system_calls.stp: All 281 syscalls *prototyped*. Theykevinrs2005-10-071-0/+735
| | | | | are still untested. Many of the aliases useability are contin- gent upon resolution of namely: bz #1295 & bz #1382.
* 240 syscalls prototypedkevinrs2005-10-051-0/+702
|
* 200+ syscalls prototypedkevinrs2005-10-051-0/+836
|
* 150 syscalls prototyped.kevinrs2005-10-031-71/+1193
|
* 2005-09-30 Frank Ch. Eigler <fche@elastic.org>fche2005-09-301-50/+53
| | | | | * tapset/system_calls.stp (*_str): Simplified boolean test logic throughout, fixed some typos.
* More syscalls profiledkevinrs2005-09-301-0/+219
|
* Removed mask_string.stp, integrated into system_calls.stpkevinrs2005-09-292-151/+189
|
* mask_string.stpkevinrs2005-09-293-109/+166
| | | | | | | | | function uses different algorithm to build symbolic flag string from int. Now uses locals to do so. SMP safe. string.stp add isinstr(s1,s2) - return 1 if s1 contains s2 else return 0
* gpl headersfche2005-09-285-2/+40
|
* tapset/mask_string.stp:kevinrs2005-09-283-44/+320
| | | | | | | | | | | | wrote a few aux functions that can be used by tapsets to derive a bitmask symbolic string from a given number tapset/string.stp: strlen: Returns the length of the string argument substr: Returns a substring starting at start/ending at stop stapfuncs.5.in: Added a STRING category with aforementioned functions tapset/system_calls.stp Exported more variable for more system calls
* 2005-09-26 Frank Ch. Eigler <fche@elastic.org>fche2005-09-271-131/+131
| | | | | * stapfuncs.5.in: Extend errno_str verbiage. * tapset/errno.stp: Canonicalize script code slightly.
* all script equivalent of errno.stpkevinrs2005-09-261-142/+142
|
* This function returns the errno string associated with the error code.kevinrs2005-09-261-0/+142
|
* system call tapset.kevinrs2005-09-261-0/+3144
|
* removing unnecessary testfche2005-09-241-2/+1
|
* Arch agnostic function to get at return vals until $retval built-in is working.kevinrs2005-09-241-0/+20
|
* 2005-09-06 Frank Ch. Eigler <fche@elastic.org>fche2005-09-071-1/+9
| | | | | | | | * stap.1.in: Clarify absence of short-circuiting in && and ||. * translate.cxx (emit_function): Improve "array locals" message. * tapset/timestamp.stp: Add gettimeofday_us function. Correct arithmetic typing in other functions. * stapfuncs.5.in: Document new function.
* 2005-09-06 Martin Hunt <hunt@redhat.com>hunt2005-09-061-0/+5
| | | | | | | | | | | | * tapset/context.stp: Add function target(). * stapfuncs.5.in (target): Document it. * elaborate.h (struct systemtap_session): Add cmd and target_pid to the struct. * main.cxx (usage): Add secriptions of "-c" and "-x" options. (main): Set s.cmd and s.target_pid. * buildrun.cxx (stringify): Copy this utility func here too. (run_pass): Add new options to set cmd and pid to the stpd command line.
* 2005-09-05 Frank Ch. Eigler <fche@elastic.org>fche2005-09-051-0/+4
| | | | | | | | | | | | | | | | | PR 1172. * staptree.h, staptree.cxx: Make all ::print*(), operator<< functions take const staptree objects. (literal_string::print): \-prefix double-quotes. * translate.cxx (emit_common_header): Add context probe_point field. Switch to atomic_t busy flags. (emit_module_exit): Use atomic operations for busy flag. (visit_*): Use lex_cast_qstring for last_stmt strings. * tapsets.cxx (lex_cast_quoted): \-prefix double-quotes too. (*::emit_probe_entries): Populate probe_point. Use atomic operations for busy flag. * tapset/context.stp (pp): New function. * stapfuncs.5.in: Document it. * testsuite/buildok/context_test.stp: Test it.
* 2005-09-04 Martin Hunt <hunt@redhat.com>hunt2005-09-042-7/+6
| | | | | | | * testsuite/buildok/context_test.stp: New test. * tapset/logging.stp (log): Call _stp_printf(). * stapfuncs.5.in: Add contextinfo funcs. * tapset/context.stp: Minor cleanup.
* 2005-09-03 Frank Ch. Eigler <fche@elastic.org>fche2005-09-032-1/+31
| | | | | | | | PR 1187 prime * tapset.cxx (literal_stmt_for_local): Don't automgaically copy target char*'s to systemtap strings. * tapset/conversions.stp (user_string, kernel_string): New functions. * stapfuncs.5.in: Document new functions.
* 2005-09-03 Frank Ch. Eigler <fche@elastic.org>fche2005-09-034-64/+29
| | | | | | | | | | PR 1292, by popular request. * parse.cxx (parse_functiondecl): Allow optional value/param type declarations. * stap.1.in: Document this. * tapset/*.stp: Convert most functions accordingly. * testsuite/parseok/twelve.stp, semok/seven.stp, semko/twenty.stp: Test this.