summaryrefslogtreecommitdiffstats
path: root/tapset/timestamp.stp
Commit message (Collapse)AuthorAgeFilesLines
* Disallow embedded C in tapset functions ifor unprivileged users unless ↵Dave Brolley2009-06-251-1/+1
| | | | tagged by /* unprivileged */.
* fixed format of non-grabbable comments (for Tapset Reference Guide), added ↵ddomingo2009-03-161-1/+5
| | | | tapsetdescription for man page generator (in development)
* Add selective use of _stp_time_init/kill (PR9822)Josh Stone2009-02-231-43/+0
| | | | | | | | Our gettimeofday runtime has frequent wakeups to stay in sync with kernel time, but this is wasted effort if gettimeofday is not used in the script. This patch moves the calls to _stp_time_init and _stp_time_kill into begin and end/error probes, which only get pulled in if one of the gettimeofday variants is called.
* Add context, timestamp, memory, and networking tapsets.William Cohen2008-11-251-47/+25
|
* Include id in <formalpara to allow crossreferences.William Cohen2008-11-111-5/+5
|
* Document timestamp.stp.William Cohen2008-11-111-6/+46
|
* 2006-09-20 Josh Stone <joshua.i.stone@intel.com>jistone2006-09-201-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | PR 3233 ./ * stapfuncs.5.in: Document new gettimeofday_ns. runtime/ * time.c (stp_time_t): Use ns for the base time, and freq is now kHz. (__stp_estimate_cpufreq): Compute kHz instead of MHz. (__stp_time_timer_callback, __stp_init_time): Compute base in ns. (__stp_time_cpufreq_callback): Record kHz instead of MHz. (_stp_init_time): Record kHz, and disable preemption to avoid a race in the cpufreq notifier. (_stp_gettimeofday_ns): Converted from _stp_gettimeofday_us. tapset/ * timestamp.stp (gettimeofday_ns): New function (gettimeofday_us, gettimeofday_ms, gettimeofday_s): Use gettimeofday_ns as the base unit. testsuite/ * buildok/timestamp.stp: add gettimeofday_ns test.
* 2006-06-21 Josh Stone <joshua.i.stone@intel.com>jistone2006-06-221-13/+10
| | | | | | | | | | | | | runtime/ * time.c: Time-estimation with minimal dependency on xtime. runtime/transport/ * transport/transport.c (_stp_handle_start): Initialize timer functions. * transport.c (_stp_cleanup_and_exit): Teardown timer functions. tapset/ * timestamp.stp (gettimeofday_us, gettimeofday_ms, gettimeofday_s): Convert to using the runtime-provided _stp_gettimeofday_us().
* 2006-04-25 Frank Ch. Eigler <fche@elastic.org>fche2006-04-251-4/+4
| | | | | | | | | | | | | | | | | 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.
* Reverting change - xtime_lock is not exported on FC5 kerneljistone2006-04-071-54/+9
|
* 2006-04-07 Josh Stone <joshua.i.stone@intel.com>jistone2006-04-071-9/+54
| | | | | | | PR2525 * timestamp.stp (__check_xtime_lock): check if xtime is available (gettimeofday_s, gettimeofday_ms, gettimeofday_us): error out if called when xtime is not available, to avoid deadlock
* 2006-02-22 Frank Ch. Eigler <fche@elastic.org>fche2006-02-221-1/+8
| | | | | | | | | * stapfuncs.5.in: Document get_cycles(). * testsuite/buildok/timestamp.stp: Build it and its friends. 2006-02-22 Frank Ch. Eigler <fche@elastic.org> * timestamp.stp (get_cycles): New function.
* gpl headersfche2005-09-281-0/+9
|
* 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-03 Frank Ch. Eigler <fche@elastic.org>fche2005-09-031-2/+2
| | | | | | | | | | 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 Frank Ch. Eigler <fche@elastic.org>fche2005-09-021-0/+19
* tapset/*.stp: Renamed several files to simplify names.