summaryrefslogtreecommitdiffstats
path: root/tapset/errno.stp
Commit message (Collapse)AuthorAgeFilesLines
* Share ppc64 and ppc32 code where possibleAnton Vorontsov2009-12-011-1/+1
| | | | | | | | | | * 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>
* 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.
* Use 'static' as much as possibleJosh Stone2009-01-281-2/+2
| | | | | | | | | | This change just inserts 'static' on runtime, tapset, and generated C functions and globals, so the compiler can do a better job of optimizing. My tests with small scripts show ~10% reduction in compile time and ~20% reduction in module size. Larger scripts may show less benefit, but I expect purely positive results.
* Factored returnval() out of returnstr(), for use in dwarfless probing.Jim Keniston2008-05-131-16/+28
|
* 2008-02-28 Will Cohen <wcohen@redhat.com>wcohen2008-02-281-1/+3
| | | | | PR433780 * errno.stp (returnstr): Handle unified i386/x86_64 reg names.
* 2007-08-15 Wenji Huang <wenji.huang@oracle.com>wenji2007-08-161-1/+1
| | | | * errno.stp: Fix Typo for EADV
* 2007-06-15 Martin Hunt <hunt@redhat.com>hunt2007-06-151-0/+2
| | | | | | | * syscalls.stp: Add sys_fcntl64, sys_oabi_fstat64, sys_oabi_lstat64. * syscalls2.stp: Fix sys_send. Add sys_sendfile64. * errno.stp: Add arm support.
* 2007-02-06 Josh Stone <joshua.i.stone@intel.com>jistone2007-02-071-19/+21
| | | | | | | | | | | | | | | | | | | | | | | | | * aux_syscalls.stp, inet_sock.stp, ioblock.stp, ioscheduler.stp, nfs.stp, nfs_proc.stp, nfsd.stp, rpc.stp, scsi.stp, signal.stp, socket.stp, task.stp, tcp.stp, vfs.stp: Protect pointer dereferences with kread wherever possible. Some places still have hazards, as marked with FIXMEs. * errno.stp (returnstr): Don't use return in tapset C functions. * aux_syscalls.stp (__uget_timex_m): Ditto. * nfsd.stp (__get_fh): Ditto. * nfs.stp, vfs.stp (<many functions>): Ditto. * string.stp (substr): Ditto. Also make sure start index is valid. * syscalls.stp (syscall.execve): Change __string to kernel_string. LKET/ * nfs.stp, nfs_proc.stp, nfsd.stp, process.stp, tskdispatch.stp: Protect pointer dereferences with kread wherever possible. Some places still have hazards, as marked with FIXMEs. * aio.stp (log_io_getevents): Don't use return in tapset C functions. * timestamp.stp (set_timing_method): Ditto. * utils.stp (filter_by_pid): Ditto.
* Added s390x support in function errno_str.dwilder2007-01-181-0/+2
|
* 2006-05-26 Martin Hunt <hunt@redhat.com>hunt2006-05-261-1/+3
| | | | | | | | | | | | * errno.stp: Add octal option for returnstr. * [i686,x86_64]/syscalls.stp (umask): Print args and return in octal. (add_key): Comment out. This syscall is added by a xen patch and may not be present. (tux): Ditto. * syscalls.stp (accept): Fix arg name.
* 2006-05-03 Frank Ch. Eigler <fche@elastic.org>fche2006-05-031-0/+2
| | | | * context.stp, errno.stp: Note/eliminate some retval() duplication.
* 2006-04-25 Frank Ch. Eigler <fche@elastic.org>fche2006-04-251-2/+2
| | | | | | | | | | | | | | | | | 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.
* *** empty log message ***hunt2006-03-131-1/+1
|
* 2006-03-01 Martin Hunt <hunt@redhat.com>hunt2006-03-011-140/+379
| | | | | | | | | | * aux_syscalls.stp (_struct_sockaddr_u): Parse sockaddr. * syscalls.stp (bind): Call _struct_sockaddr_u(). * errno.stp (errno_str): Complete rewrite in C for speed and accuracy. (returnstr): New function for syscall tapet.
* 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