summaryrefslogtreecommitdiffstats
path: root/tapset/utrace.stp
Commit message (Collapse)AuthorAgeFilesLines
* PR10650: markup some unprivileged-safe tapset functionsFrank Ch. Eigler2009-09-161-6/+21
| | | | | | | | | | | | | | | | | Add /* unprivileged */ to a variety of tapset embedded-c functions, together with uid-assertion-checking code as needed. This is only an initial set, and may need to grow or shrink after further testing. Prototyped-By: Dave Brolley <brolley@redhat.com> * runtime/runtime.h (is_myproc, assert_is_myproc): New macros. * runtime/addr-map.c (lookup_bad_addr): Reject if !is_myproc in unprivileged mode. * runtime/print.c (_stp_print_kernel_info): Add unprivileged mode info. * tapset/DEVGUIDE: Document /* pure */ and /* unprivileged */. * tapset/*.stp: Add /* unprivileged */ here and there, in questionable cases along with an assert_is_myproc().
* 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.
* 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 $return context variables on per-process-syscall.return probesMasami Hiramatsu2008-09-091-0/+4
|
* Add $argN context variables on per-process-syscall probesMasami Hiramatsu2008-09-091-1/+4
|
* rework utrace $syscall var to expand to tapset fn, not synthetic hard-coded oneFrank Ch. Eigler2008-08-071-0/+11