| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
* futimes.c (main): Add utimensat tests.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* aux_syscalls.stp (_utimensat_flag_str): New.
(_dfd_str): New.
(_struct_timeval2_u): Deleted.
(_struct_timeval_u): Take a number of structs to decode.
(_struct_compat_timeval2_u): Deleted
(_struct_compat_timeval_u): Take a number of structs to decode.
(_struct_timespec_u): Take a number of structs to decode.
Recognize UTIME_NOW and UTIME_OMIT.
(_struct_compat_timespec_u): Ditto.
* syscalls.stp (compat_sys_old_getrlimit): Removed.
(sys_migrate_pages): New.
(sys_move_pages): New.
* syscalls2.stp (compat_sys_sigprocmask): Removed. Calls
sys_sigprocmask.
(compat_sys_sysinfo): New.
(compat_sys_rt_sigtimedwait): New.
(sys_utimensat, compat_sys_utimensat): New.
* ppc64/syscalls.stp (compat_sys_sigpending): Removed.
Calls sys_ func.
(compat_sys_setrlimit): Ditto.
(compat_sys_getrlimit): Ditto.
(compat_sys_old_getrlimit): Ditto.
(compat_sys_getrusage): Ditto.
(compat_sys_wait4): Ditto.
(compat_sys_sched_setaffinity): Ditto.
(compat_sys_sched_getaffinity): Ditto.
|
|
|
|
|
|
|
| |
* nfsd.stp (nfsd.proc?.*): Modify evaluating client_ip
with function addr_from_rqst to make it compatible in kernel>=2.6.19
(nfsd.proc4.compound,nfsd.read,nfsd.write): Fix typo.
(nfsd.unlink): Fix reference to variable iap.
|
|
|
|
|
|
|
|
|
|
| |
* nfs.stp (__iov_length): Updated, Temporary here.
* nfs_proc.stp (__i2n_ip_proto): Add type cast to sockaddr_in.
(nfs.proc?.*): Modify evaluating count and offset.
(nfs.proc?.read.return): Delete evaluating size and units.
(nfs.proc?.write.return): Modify evaluating size.
(nfs.proc?.create): Modify evaluating filename and filelen.
(nfs.proc?.rename): Fix typo.
|
|
|
|
|
| |
* syscalls2.stp (syscall.setdomainname): Add argstr content
(argstr = "" -> argstr = sprintf("%p, %d", $name, $len).
|
|
|
|
|
|
|
|
|
|
|
| |
* foreach_limit.stp: Added test for sorting numeric arrays by
value.
* foreach_limit.exp: Ditto.
PR 2305
* foreach_limit2.stp: New file. Tests sorting aggregate arrays by
value.
* foreach_limit2.exp: Ditto.
|
|
|
|
|
|
|
| |
PR 2305
* translate.cxx (c_unparser::visit_foreach_loop): When the user
requested sorting an array of aggregates by value, sort by
@count.
|
|
|
|
|
|
| |
From Cai Fei <caifei@cn.fujitsu.com>:
* syscalls2.stp, syscalls.stp: Added several missing argstr/retstr
variables.
|
|
|
|
|
| |
* mainloop.c (start_cmd): Send SIGINT to target_cmd,
not stapio.
|
|
|
|
|
| |
PR 4942
* systemtap.base/kmodule.stp: Add "never" probe for type inference.
|
|
|
|
|
| |
* aux_syscalls.stp (_recvflags_str): Add support for MSG_DONTWAIT
used in recv, recvfrom, recvmsg, compat_sys_recvmsg
|
|
|
|
|
| |
* syscalls2.stp (syscall.select): Fixed variable name error
(timeout_uaddr = $tv->$tvp).
|
|
|
|
|
| |
* syscalls2.stp (syscall.selec): Fixed variable name error
(timeout_uaddr = $tv->$tvp).
|
| |
|
|
|
|
| |
* stack.c (_stp_kta): Removed.
|
|
|
|
|
|
|
| |
* ioblock.stp: Fix __bio_ino() not to access i_ino if the page is not
assigned to any inode.
* stack-x86_64.c: Fix backtrace to use the value of stack register
instead of its address.
|
|
|
|
|
|
|
|
|
| |
PR2424
From Lai Jiangshan <laijs@cn.fujitsu.com>
* util.cxx (cmdstr_quoted): New. Properly quote
command string.
* buildrun.cxx (run_pass): Call cmdstr_quoted().
|
|
|
|
|
| |
* systemtap.base/cmd_parse.exp: New file. Test
command parsing for "-c".
|
|
|
|
|
| |
From Satoru MORIYA <satoru.moriya.br@hitachi.com>
* staplog.c: Updated.
|
|
|
|
|
|
| |
* parseko/cmdline15.stp: Added new test to make sure options '-c
cmd' and '-x pid' are mutually exclusive.
* parseko/cmdline16.stp: Ditto.
|
|
|
|
|
|
| |
From Lai Jiangshan <laijs@cn.fujitsu.com>
* main.cxx (main): Make sure the '-c' and '-x' options can't be
specified together.
|
|
|
|
|
|
| |
From Lai Jiangshan <laijs@cn.fujitsu.com>
* common.c (parse_args): Make sure the '-c' and '-x' options can't
be specified together.
|
|
|
|
|
|
|
| |
* nfs.stp (nfs.fop.aio_read, nfs.fop.aio_write): Modify evaluating count.
(__iov_length): New function.
(nfs.fop.sendfile, nfs.aop.set_page_dirty, nfs.aop.prepare_write,
nfs.aop.release_page): Fix typo.
|
| |
|
|
|
|
|
|
|
|
| |
PR3857
From Masami Hiramatsu
* utt.c (utt_subbuf_start_callback): Use overwrite flag.
* control.c (_stp_ctl_open_cmd): Set overwrite_flag off.
(_stp_ctl_close_cmd): Set overwrite flag on.
|
|
|
|
|
|
|
| |
As suggested by "Zhaolei" <zhaolei@cn.fujitsu.com>:
* elaborate.cxx (semantic_pass_optimize[12],
unresolved, invalid, mismatch): Use stringstream and
print_error(semantic_error) instead of ad-hoc cerr.
|
|
|
|
| |
* bench2/bench.rb: Send HUP to stapio, instead of staprun.
|
|
|
|
|
| |
From Lai Jiangshan <laijs@cn.fujitsu.com>
* syscalls.stp (creat): Fix argstr.
|
|
|
|
|
|
|
| |
* ioscheduler.stp (ioscheduler.elv_add_request,
ioscheduler.elv_completed_request): Add checking $rq.
* memory.stp (_IS_ZERO_PAGE): Modify reference to arguments.
|
|
|
|
|
|
|
| |
* ioscheduler.stp (ioscheduler.elv_add_request,
ioscheduler.elv_completed_request): Add checking $rq.
* memory.stp (_IS_ZERO_PAGE): Modify reference to arguments.
|
|
|
|
|
|
|
|
|
| |
PR 1315.
* target_set.stp: New tapset file.
* stapfuncs.5.in: Document new target_set tapset.
* buildok/fortyfive.stp: New test.
|
|
|
|
|
|
| |
* Makefile.am (install-exec-hook): Only make staprun setuid if
"make install" is being run as root.
* Makefile.in: Regenerated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 4591
* parse.cxx (parser::parse_symbol): Tweak 'print' matching to allow
all the new variants with printd and println.
* staptree.h (struct print_format): Add fields for the new print
variants, and parse_print() to help matching.
* staptree.cxx (print_format::parse_print): New static method to
match the print variants and determine their properties.
(print_format::print): Handle the new print types.
(deep_copy_visitor::visit_print_format): Copy the new fields.
* translate.cxx (c_unparser::visit_print_format): Insert delims and
newlines where appropriate for new print functions.
* stap1.in: Document the new print functions.
testsuite/
* lib/stap_run.exp: Make sure to match the entire output, in case
there are multiple pass/fail messages.
* buildok/printf.stp: Add lines for new print variants.
* parseko/printd01.stp: Make sure that bad printd calls are handled.
* parseko/printd02.stp: Ditto.
* parseko/printd03.stp: Ditto.
* parseko/printd04.stp: Ditto.
* systemtap.base/print.stp: Try a bunch of different print calls.
* systemtap.base/print.exp: Driver for above.
|
|
|
|
| |
* all_syscalls.stp: New file. Useful for debugging.
|
|
|
|
|
|
|
|
| |
* aux_syscalls.stp (_sock_family_str):
Add PF_IUCV, PF_RXRPC, PF_TIPC.
From zhaolei@cn.fujitsu.com
Remove PF_UNIX. PF_LOCAL is correct.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* aux_syscalls.stp (__get_argv): Add parameter to
optionally skip the first argv (argv[0]).
(__get_compat_argv): Ditto.
* syscalls.stp (execve): Set args to the whole argv.
For argstr use filename plus argv starting at [1].
(compat_execve): Ditto.
* ppc64/syscalls.stp (sys32_exevve): Ditto.
From Cai Fei <caifei@cn.fujitsu.com>
* syscalls.stp (sts_getpgid): Add pid arg.
|
|
|
|
| |
* errno.stp: Fix Typo for EADV
|
|
|
|
|
|
| |
* aux_syscalls.stp(_reboot_flag_str,_futex_op_str,_mprotect_prot_str,
_fcntl_cmd_str, _quotaclt_cmd_str, _sock_type_str, _rlimit_resource_str,
_rusage_who_str): Add new entries, modify default return string."
|
|
|
|
|
|
|
|
|
| |
* x86_64/syscalls.stp: Add support for sys32_mmap[2],
sys32_vm86_warning, and sys32_pipe.
* s390x/syscalls.stp (get_mmap_args): Move to aux_syscalls.
* aux_syscalls.stp (get_mmap_args): Moved here.
* syscalls.stp: Add sys32_alarm.
* syscalls2.stp: Add sys32_uname.
|
|
|
|
| |
* staprun.c (main): Quit if effective uid is not root.
|
|
|
|
|
|
|
|
|
|
|
| |
* systemtap.spec.in: Updated %pre to latest Fedora group creation
guidelines.
* stap.1.in: Changed '/usr' to '@prefix@' so the values will be
updated correctly.
* stapfunc.5.in: Ditto.
* README.security: Typo fix.
|
|
|
|
|
|
|
|
|
| |
* systemtap.spec.in: Updated %pre to latest Fedora group creation
guidelines.
* stap.1.in: Changed '/usr' to '@prefix@' so the values will be
updated correctly.
* stapfunc.5.in: Ditto.
|
| |
|
|
|
|
|
|
| |
PR4736
* staprun.c (cleanup): Set priority back to normal
before removing module.
|
|
|
|
| |
* context.stp (cpuid, cpu): Use smp_processor_id().
|
|
|
|
|
| |
* Makefile.am: Removed stap_merge.
* Makefile.in: Rebuilt.
|
|
|
|
| |
* stap_merge.tcl: New.
|
|
|
|
| |
* systemtap.printf/*b.exp: Use stap_merge.tcl.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Merge from setuid-branch. Changes also by Martin Hunt
<hunt@redhat.com>.
* staprun.c (init_staprun): Drop CAP_SYS_ADMIN when we're done
with it.
(main): Calls parse_modpath instead of path_parse_modname. Just
call parse_modpath with argv[optind]. Let it allocate and set
modpath and modname. If no modulename was given, display usage
and exit. Drop CAP_SYS_NICE when we're done with it. Set
atexit(exit_cleanup) so cleanup always gets called and modules get
removed. Call handle_symbols.
(run_stapio): Set argv[0] to stapio so that it executes as itself
instead of staprun.
(cleanup): Only do cleanups once and only try to remove module
when appropriate.
(exit_cleanup): New. Calls cleanup().
(mountfs): Sets uid to root before making directory and then
restores uid.
(setup_ctl_channel): Uses DEBUGFS define and improved
error message.
(setup_relayfs): Ditto.
(setup_oldrelayfs): Uses DEBUGFS and RELAYFS defines.
(run_stp_check): Replaced by mountfs().
(mountfs): New function. Replaces an external script with C code.
(init_staprun): Calls mountfs() instead of run_stp_check().
* staprun.h: Renamed path_parse_modname to parse_modpath. Added
MODULE_NAME_LEN define. Added [_][p]err macros. Removed
VERSION_CMD.
* mainloop.c (cleanup_and_exit): Make sure initialized is 2
before exiting with code 2.
(stp_main_loop): Set initialized to 2 when STP_TRANSPORT
is received. Call cleanup_and_exit() with proper status.
(start_cmd): exit 1 instead of -1.
(system_cmd): Ditto.
(init_staprun): Renamed init_stapio.
(cleanup_and_exit): Set exit status.
* cap.c: New file.
* common.c: New file.
* stapio.c: New file.
* staprun_funcs.c: New file.
* Makefile: Removed.
* symbols.c (get_sections): Move the filter code up so that
uninteresting section names are filtered out before
attempting to open them.
(do_kernel_symbols): Better detect overfow conditions and realloc
new space.
(do_module): After sending all modules, send a null message to
indicate we are finished.
* ctl.c (init_ctl_channel): When attempting to attach, if the
control channel doesn't exist, print a better error message.
* relay_old.c (init_oldrelayfs): Errors out if
open_relayfs_files() couldn't open any files.
PR 4795
* mainloop.c (send_request): Fixed buffer overflow check.
* staprun.h: Added buffer overflow checking versions of
strcpy/sprintf/snprintf.
* common.c (path_parse_modname): Checks for overflows on
strcpy/sprintf/snprintf.
(read_buffer_info): Ditto.
* ctl.c (init_ctl_channel): Ditto.
* relay.c (init_relayfs): Ditto.
* relay_old.c (open_relayfs_files): Ditto.
(init_oldrelayfs): Ditto.
* staprun_funcs.c (insert_module): Ditto.
(check_path): Ditto.
* symbols.c (get_sections): Ditto.
|