summaryrefslogtreecommitdiffstats
path: root/tapset
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 2005-09-02 Martin Hunt <hunt@redhat.com>hunt2005-09-021-5/+2
| | | | * tapset/logging.stp: Make log() be same as print().
* 2005-09-02 Frank Ch. Eigler <fche@elastic.org>fche2005-09-023-0/+0
| | | | * tapset/*.stp: Renamed several files to simplify names.
* 2005-09-01 Martin Hunt <hunt@redhat.com>hunt2005-09-011-0/+8
| | | | * tapset/builtin_logging.stp: Add print.
* 2005-09-01 Martin Hunt <hunt@redhat.com>hunt2005-09-011-0/+102
| | | | | * tapset/context.stp: New file. First cut at some context info.
* 2005-08-24 Frank Ch. Eigler <fche@elastic.org>fche2005-08-241-2/+1
| | | | | | | | | | | | | | | | | | | * tapsets.cxx (*::emit_probe_entries): Treat NULL and "" last_errors both as clean early returns, not errors. * translate.cxx: Revamp last_error handling logic. Remove all "goto out" paths from expression context. (visit_statement): Handle last_error exit one nesting level at a time. (visit_return_statement, visit_functioncall): Set/reset last_error="". (c_tmpcounter::visit_for_loop): New routine. (c_unparser::visit_foreach, visit_for_loop): Rewrite to properly support continue/breaks, non-local exits, (foreach) locks. (emit_global): Emit lock variable. (varlock ctor, dtor): Lock/unlock global variable. (varlock_w, varlock_r): New concrete subclasses. Update all users. * tapset/builtin_logging.stp (exit): Don't set last_error. * src/testsuite/buildok/sixteen.stp: New test. * tapsets.cxx: Temporarily rolled back graydon's changes.
* 2005-08-21 Frank Ch. Eigler <fche@redhat.com>fche2005-08-211-2/+3
| | | | | | | | | | | | | | | | | PR systemtap/1195, systemtap/1193 * elaborate.cxx (alias_expansion_builder): Set new block token. * parse.cxx (parse_symbol): Set new target_symbol token. * runtest.sh: Store more pertinent failure data. * tapsets.cxx (emit_probe_entries): Rewrite error-handling path. * translate.cxx (emit_common_header): Goodbye errorcount, hello last_error & last_stmt. (c_unparser::visit_statement): New "header" for all other stmts. (c_assignop, visit_binary_expression): Adapt to last_error. * tapset/builtin_logging.stp: Adapt to last_error. 2005-08-21 Frank Ch. Eigler <fche@redhat.com> * arith.c (*): Adapt to last_error context variable.
* 2005-08-12 Frank Ch. Eigler <fche@elastic.org>fche2005-08-121-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | PR systemtap/1122 et alii * parse.cxx (parse_literal): Parse and range-limit 64-bit numbers. (parse_unary): Correct precedence glitch. * staptree.h (literal_number): Store an int64_t. * staptree.cxx: Corresponding changes. * translate.cxx (check_dbz): Remove - insufficient. (emit_function): Define CONTEXT macro sibling for THIS. (c_typename): pe_long -> int64_t. (visit_literal_number): Format literal rigorously and uglily. (c_assignop, visit_binary_expression): Handle div/mod via new helper functions in runtime. * tapset/builtin_logging.stp: Add error, exit builtins. * testsuite/buildok/ten,eleven.stp: New tests. * testsuite/parse{ko,ok}/six.stp: Modify for larger numbers. * testsuite/transok/one.stp: Add more ";"s, maybe unnecessarily. 2005-08-12 Frank Ch. Eigler <fche@elastic.org> * arith.c: New file to contain arithmetic helper functions. * builtin_functions.h: Remove, unused. * runtime.h: Include it.
* 2005-08-11 Frank Ch. Eigler <fche@elastic.org>fche2005-08-118-35/+54
| | | | | | | | * translate.cxx (emit_function): Add an extra { } around the function body visitation. * tapset/timestamp_functions.stp: New file. * tapset/builtin_conversions.stp: Aggregated from [hex]string. * tapset/builtin_logging.stp: Aggregated from log/warn/printk.
* 2005-08-10 Frank Ch. Eigler <fche@elastic.org>fche2005-08-103-3/+3
| | | | | | | | | | | PR translator/1186 * elaborate.cxx (resolve_2types): Accept a flag to tolerate unresolved expression types. (visit_functioncall): Call it thusly. * translate.cxx (emit_function): Tolerate void functions. * stap.1.in: Document possibility of void functions. * tapset/builtin_{log,printk,warn}.stp: Make these void functions. * testsuite/buildok/nine.stp, semok/eighteen.stp: New tests.
* 2005-08-03 Frank Ch. Eigler <fche@elastic.org>fche2005-08-031-0/+7
| | | | | | * README: Be more specific about prerequisites. * tapset/builtin_string.stp: New builtin. * testsuite/buildok/seven.stp, semko/eighteen.stp: New tests.
* 2005-08-02 Frank Ch. Eigler <fche@elastic.org>fche2005-08-021-0/+7
| | | | | | | | | * loc2.c (emit_loc_address): Emit interleaved declaration into its own nested { } block. * tapsets.cxx (literal_stmt_for_local): Emit deref_fault block unconditionally. * tapset/builtin_hexstring.stp: New builtin. * testsuite/buildok/six.stp: New test.
* 2005-07-28 Frank Ch. Eigler <fche@redhat.com>fche2005-07-283-0/+21
translator/1120 * main.cxx (main): Preset -R and -I options from environment variables (if set). Pass guru mode flags to parser. * parse.cxx (privileged): New parser operation flag. Update callers. (parse_embeddedcode): Throw an error if !privileged. (parse_functiondecl): Change signature. Prevent duplicates. (parse_globals): Ditto. * parse.h: Corresponding changes. * tapset/*.stp: Beginnings of real tapset library, to replace previous builtins. * tapsets.cxx: Greatly reduce verbose mode output. * Makefile.am: Install & dist it. * runtest.sh: Refer to it. * Makefile.in, aclocal.m4: Regenerated. * testsuite/*/*.stp: Set guru mode via /bin/sh if needed. * testusite/*/*ko.stp: Homogenize shell scripts.