]> sourceware.org Git - systemtap.git/log
systemtap.git
16 years ago2007-08-24 Zhaolei <zhaolei@cn.fujitsu.com>
zhaolei [Fri, 24 Aug 2007 00:42:16 +0000 (00:42 +0000)]
2007-08-24  Zhaolei  <zhaolei@cn.fujitsu.com>

* syscalls2.stp(send): Add len argument into argstr.

16 years agoCorrect compat_sys_utimensat arg.
wcohen [Thu, 23 Aug 2007 15:30:38 +0000 (15:30 +0000)]
Correct compat_sys_utimensat arg.

16 years ago2007-08-23 Martin Hunt <hunt@redhat.com>
hunt [Thu, 23 Aug 2007 14:06:45 +0000 (14:06 +0000)]
2007-08-23  Martin Hunt  <hunt@redhat.com>

* syscalls2.stp (sys_tee.return): Make optional

16 years ago2007-08-23 Martin Hunt <hunt@redhat.com>
hunt [Thu, 23 Aug 2007 13:08:58 +0000 (13:08 +0000)]
2007-08-23  Martin Hunt  <hunt@redhat.com>

* aux_syscalls.stp (_struct_compat_timeval_u): Fix
array reference.
(_struct_compat_timespec_u): Cast args to long.

16 years ago2007-08-23 Martin Hunt <hunt@redhat.com>
hunt [Thu, 23 Aug 2007 13:05:49 +0000 (13:05 +0000)]
2007-08-23  Martin Hunt  <hunt@redhat.com>
From Cai Fei <caifei@cn.fujitsu.com>
* aux_syscalls.stp (_waitid_opt_str): New.
(_wait4_opt_str): Just handle wait4 options.
* syscalls2.stp (sys_waitid): Use _waitid_opt_str.

16 years ago2007-08-23 Wenji Huang <wenji.huang@oracle.com>
wenji [Thu, 23 Aug 2007 09:37:40 +0000 (09:37 +0000)]
2007-08-23  Wenji Huang  <wenji.huang@oracle.com>

        * rpc.stp (sunrpc.svc.process, sunrpc.svc.recv): Modify evaluating
        sv_name,sv_prog,sv_nrthreads in kernel>=2.6.19.
        (sunrpc.sched.delay,sunrpc.sched.delay): Fix typo.
        (sunrpc.*.return): Change name by adding "return".

16 years ago2007-08-23 Zhaolei <zhaolei@cn.fujitsu.com>
zhaolei [Thu, 23 Aug 2007 01:52:26 +0000 (01:52 +0000)]
2007-08-23  Zhaolei  <zhaolei@cn.fujitsu.com>

* aux_syscalls.stp (_send_flags_str): Add support for MSG_MORE
(used in send, sendto, sendmsg and compat_sys_sendmsg).
Change name of _send_flags_str to _sendflags_str for unify with
_recvflags_str.

* syscalls2.stp(send, sendto, sendmsg, compat_sys_sendmsg): Change
name of _send_flags_str to _sendflags_str for unify with _recvflags_str.

16 years ago2007-08-23 Zhaolei <zhaolei@cn.fujitsu.com>
zhaolei [Thu, 23 Aug 2007 01:47:36 +0000 (01:47 +0000)]
2007-08-23  Zhaolei  <zhaolei@cn.fujitsu.com>

* syscalls2.stp: Change name of _send_flags_str to _sendflags_str
for unify with _recvflags_str.

16 years ago2007-08-21 Zhaolei <zhaolei@cn.fujitsu.com>
zhaolei [Thu, 23 Aug 2007 01:46:33 +0000 (01:46 +0000)]
2007-08-21  Zhaolei  <zhaolei@cn.fujitsu.com>

* aux_syscalls.stp (_send_flags_str): Add support for MSG_MORE
(used in send, sendto, sendmsg and compat_sys_sendmsg).
Change name of _send_flags_str to _sendflags_str for unify with
_recvflags_str.

16 years ago2007-08-22 Martin Hunt <hunt@redhat.com>
hunt [Wed, 22 Aug 2007 20:41:32 +0000 (20:41 +0000)]
2007-08-22  Martin Hunt  <hunt@redhat.com>

* ppc64/syscalls.stp: Remove a bunch of
non-ppc64 specific probes.

* syscalls.stp (compat_sys_epoll_ctl): New.
(compat_sys_epoll_wait): New.
(sys_epoll_pwait): New.
(compat_sys_epoll_pwait): New.
(compat_sys_keyctl): New.
(compat_sys_mq_open): New.
(compat_sys_futex): New.
(compat_sys_mq_timedsend): New.
(compat_sys_mq_timedreceive): New.
(compat_sys_mq_notify): New.
(compat_sys_mq_getsetattr): New.
(init_module): Make optional and quote args.
(sys_eventfd): New.

* syscalls2.stp (sys_splice): New.
(sys_vmsplice): New.
(compat_sys_vmsplice): New.
(sys_tee): New.
(sys_signalfd): New.
(compat_sys_signalfd): New.
(sys_timerfd): New.
(compat_sys_timerfd): New.
(old32_readdir): New.

16 years ago*** empty log message ***
hunt [Wed, 22 Aug 2007 20:40:40 +0000 (20:40 +0000)]
*** empty log message ***

16 years ago2007-08-22 Martin Hunt <hunt@redhat.com>
hunt [Wed, 22 Aug 2007 18:28:31 +0000 (18:28 +0000)]
2007-08-22  Martin Hunt  <hunt@redhat.com>

* futimes.c (main): Add utimensat tests.

16 years ago2007-08-22 Martin Hunt <hunt@redhat.com>
hunt [Wed, 22 Aug 2007 15:12:22 +0000 (15:12 +0000)]
2007-08-22  Martin Hunt  <hunt@redhat.com>

* 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.

16 years ago2007-08-22 Wenji Huang <wenji.huang@oracle.com>
wenji [Wed, 22 Aug 2007 09:42:12 +0000 (09:42 +0000)]
2007-08-22  Wenji Huang  <wenji.huang@oracle.com>

        * 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.

16 years ago2007-08-22 Wenji Huang <wenji.huang@oracle.com>
wenji [Wed, 22 Aug 2007 03:41:17 +0000 (03:41 +0000)]
2007-08-22  Wenji Huang  <wenji.huang@oracle.com>

        * 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.

16 years ago2007-08-22 Zhaolei <zhaolei@cn.fujitsu.com>
zhaolei [Wed, 22 Aug 2007 03:23:09 +0000 (03:23 +0000)]
2007-08-22  Zhaolei  <zhaolei@cn.fujitsu.com>

* syscalls2.stp (syscall.setdomainname): Add argstr content
(argstr = "" -> argstr = sprintf("%p, %d", $name, $len).

16 years ago2007-08-21 David Smith <dsmith@redhat.com>
dsmith [Tue, 21 Aug 2007 21:30:55 +0000 (21:30 +0000)]
2007-08-21  David Smith  <dsmith@redhat.com>

* 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.

16 years ago2007-08-21 David Smith <dsmith@redhat.com>
dsmith [Tue, 21 Aug 2007 21:28:09 +0000 (21:28 +0000)]
2007-08-21  David Smith  <dsmith@redhat.com>

PR 2305
* translate.cxx (c_unparser::visit_foreach_loop): When the user
requested sorting an array of aggregates by value, sort by
@count.

16 years ago2007-08-21 Frank Ch. Eigler <fche@elastic.org>
fche [Tue, 21 Aug 2007 18:15:54 +0000 (18:15 +0000)]
2007-08-21  Frank Ch. Eigler  <fche@elastic.org>

From Cai Fei <caifei@cn.fujitsu.com>:
* syscalls2.stp, syscalls.stp: Added several missing argstr/retstr
variables.

16 years ago2007-08-21 Martin Hunt <hunt@redhat.com>
hunt [Tue, 21 Aug 2007 16:28:43 +0000 (16:28 +0000)]
2007-08-21  Martin Hunt  <hunt@redhat.com>

* mainloop.c (start_cmd): Send SIGINT to target_cmd,
not stapio.

16 years ago2007-08-21 Frank Ch. Eigler <fche@elastic.org>
fche [Tue, 21 Aug 2007 12:45:14 +0000 (12:45 +0000)]
2007-08-21  Frank Ch. Eigler  <fche@elastic.org>

PR 4942
* systemtap.base/kmodule.stp: Add "never" probe for type inference.

16 years ago2007-08-21 Zhaolei <zhaolei@cn.fujitsu.com>
zhaolei [Tue, 21 Aug 2007 02:11:36 +0000 (02:11 +0000)]
2007-08-21  Zhaolei  <zhaolei@cn.fujitsu.com>

* aux_syscalls.stp (_recvflags_str): Add support for MSG_DONTWAIT
used in recv, recvfrom, recvmsg, compat_sys_recvmsg

16 years ago2007-08-21 Zhaolei <zhaolei@cn.fujitsu.com>
zhaolei [Tue, 21 Aug 2007 01:39:40 +0000 (01:39 +0000)]
2007-08-21  Zhaolei  <zhaolei@cn.fujitsu.com>

* syscalls2.stp (syscall.select): Fixed variable name error
(timeout_uaddr = $tv->$tvp).

16 years ago2007-08-21 Zhaolei <zhaolei@cn.fujitsu.com>
zhaolei [Tue, 21 Aug 2007 01:35:55 +0000 (01:35 +0000)]
2007-08-21  Zhaolei  <zhaolei@cn.fujitsu.com>

* syscalls2.stp (syscall.selec): Fixed variable name error
(timeout_uaddr = $tv->$tvp).

16 years agoCorrect my email address in AUTHORS.
jistone [Mon, 20 Aug 2007 22:19:21 +0000 (22:19 +0000)]
Correct my email address in AUTHORS.

16 years ago2007-08-20 Martin Hunt <hunt@redhat.com>
hunt [Mon, 20 Aug 2007 18:50:02 +0000 (18:50 +0000)]
2007-08-20  Martin Hunt  <hunt@redhat.com>

* stack.c (_stp_kta): Removed.

16 years ago2007-08-20 Masami Hiramatsu <mhiramat@redhat.com>
hiramatu [Mon, 20 Aug 2007 18:25:14 +0000 (18:25 +0000)]
2007-08-20  Masami Hiramatsu <mhiramat@redhat.com>

* 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.

16 years ago2007-08-20 Martin Hunt <hunt@redhat.com>
hunt [Mon, 20 Aug 2007 17:55:03 +0000 (17:55 +0000)]
2007-08-20  Martin Hunt  <hunt@redhat.com>
PR2424
From Lai Jiangshan <laijs@cn.fujitsu.com>

* util.cxx (cmdstr_quoted): New. Properly quote
command string.
* buildrun.cxx (run_pass): Call cmdstr_quoted().

16 years ago2007-08-20 Martin Hunt <hunt@redhat.com>
hunt [Mon, 20 Aug 2007 17:45:38 +0000 (17:45 +0000)]
2007-08-20  Martin Hunt  <hunt@redhat.com>

* systemtap.base/cmd_parse.exp: New file.  Test
command parsing for "-c".

16 years ago2007-08-20 Frank Ch. Eigler <fche@elastic.org>
fche [Mon, 20 Aug 2007 15:58:33 +0000 (15:58 +0000)]
2007-08-20  Frank Ch. Eigler  <fche@elastic.org>

From Satoru MORIYA <satoru.moriya.br@hitachi.com>
* staplog.c: Updated.

16 years ago2007-08-20 David Smith <dsmith@redhat.com>
dsmith [Mon, 20 Aug 2007 15:00:33 +0000 (15:00 +0000)]
2007-08-20  David Smith  <dsmith@redhat.com>

* parseko/cmdline15.stp: Added new test to make sure options '-c
cmd' and '-x pid' are mutually exclusive.
* parseko/cmdline16.stp: Ditto.

16 years ago2007-08-20 David Smith <dsmith@redhat.com>
dsmith [Mon, 20 Aug 2007 14:03:56 +0000 (14:03 +0000)]
2007-08-20  David Smith  <dsmith@redhat.com>

From Lai Jiangshan <laijs@cn.fujitsu.com>
* main.cxx (main): Make sure the '-c' and '-x' options can't be
specified together.

16 years ago2007-08-20 David Smith <dsmith@redhat.com>
dsmith [Mon, 20 Aug 2007 14:02:47 +0000 (14:02 +0000)]
2007-08-20  David Smith  <dsmith@redhat.com>

From Lai Jiangshan <laijs@cn.fujitsu.com>
* common.c (parse_args): Make sure the '-c' and '-x' options can't
be specified together.

16 years ago2007-08-20 Wenji Huang <wenji.huang@oracle.com>
wenji [Mon, 20 Aug 2007 08:11:59 +0000 (08:11 +0000)]
2007-08-20  Wenji Huang  <wenji.huang@oracle.com>

        * 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.

16 years ago*** empty log message ***
hunt [Sun, 19 Aug 2007 13:04:08 +0000 (13:04 +0000)]
*** empty log message ***

16 years ago2007-08-17 Martin Hunt <hunt@redhat.com>
hunt [Fri, 17 Aug 2007 20:02:15 +0000 (20:02 +0000)]
2007-08-17  Martin Hunt  <hunt@redhat.com>
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.

16 years ago2007-08-17 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 17 Aug 2007 17:29:30 +0000 (17:29 +0000)]
2007-08-17  Frank Ch. Eigler  <fche@elastic.org>

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.

16 years ago2007-08-17 Martin Hunt <hunt@redhat.com>
hunt [Fri, 17 Aug 2007 16:46:17 +0000 (16:46 +0000)]
2007-08-17  Martin Hunt  <hunt@redhat.com>

* bench2/bench.rb: Send HUP to stapio, instead of staprun.

16 years ago2007-08-17 Martin Hunt <hunt@redhat.com>
hunt [Fri, 17 Aug 2007 15:05:11 +0000 (15:05 +0000)]
2007-08-17  Martin Hunt  <hunt@redhat.com>
From Lai Jiangshan <laijs@cn.fujitsu.com>
* syscalls.stp (creat): Fix argstr.

16 years ago2007-08-17 Wenji Huang <wenji.huang@oracle.com>
wenji [Fri, 17 Aug 2007 09:39:08 +0000 (09:39 +0000)]
2007-08-17  Wenji Huang  <wenji.huang@oracle.com>

        * ioscheduler.stp (ioscheduler.elv_add_request,
        ioscheduler.elv_completed_request): Add checking $rq.

        * memory.stp (_IS_ZERO_PAGE): Modify reference to arguments.

16 years ago2007-08-17 Wenji Huang <wenji.huang@oracle.com>
wenji [Fri, 17 Aug 2007 09:29:27 +0000 (09:29 +0000)]
2007-08-17  Wenji Huang  <wenji.huang@oracle.com>

        * ioscheduler.stp (ioscheduler.elv_add_request,
        ioscheduler.elv_completed_request): Add checking $rq.

        * memory.stp (_IS_ZERO_PAGE): Modify reference to arguments.

16 years ago2007-08-16 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 17 Aug 2007 02:25:22 +0000 (02:25 +0000)]
2007-08-16  Frank Ch. Eigler  <fche@elastic.org>

PR 1315.
* target_set.stp: New tapset file.

* stapfuncs.5.in: Document new target_set tapset.

* buildok/fortyfive.stp: New test.

16 years ago2007-08-16 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 17 Aug 2007 02:05:42 +0000 (02:05 +0000)]
2007-08-16  Frank Ch. Eigler  <fche@elastic.org>

* Makefile.am (install-exec-hook): Only make staprun setuid if
"make install" is being run as root.
* Makefile.in: Regenerated.

16 years ago2007-08-16 Josh Stone <joshua.i.stone@intel.com>
jistone [Fri, 17 Aug 2007 01:54:28 +0000 (01:54 +0000)]
2007-08-16  Josh Stone  <joshua.i.stone@intel.com>

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.

16 years ago2007-08-16 Martin Hunt <hunt@redhat.com>
hunt [Thu, 16 Aug 2007 15:58:19 +0000 (15:58 +0000)]
2007-08-16  Martin Hunt  <hunt@redhat.com>

* all_syscalls.stp: New file.  Useful for debugging.

16 years ago2007-08-16 Martin Hunt <hunt@redhat.com>
hunt [Thu, 16 Aug 2007 13:12:07 +0000 (13:12 +0000)]
2007-08-16  Martin Hunt  <hunt@redhat.com>

* 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.

16 years ago2007-08-16 Martin Hunt <hunt@redhat.com>
hunt [Thu, 16 Aug 2007 12:55:19 +0000 (12:55 +0000)]
2007-08-16  Martin Hunt  <hunt@redhat.com>

* 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.

16 years ago2007-08-15 Wenji Huang <wenji.huang@oracle.com>
wenji [Thu, 16 Aug 2007 09:11:20 +0000 (09:11 +0000)]
2007-08-15  Wenji Huang  <wenji.huang@oracle.com>

        * errno.stp: Fix Typo for EADV

16 years ago2007-08-15 Wenji Huang <wenji.huang@oracle.com>
wenji [Thu, 16 Aug 2007 02:27:46 +0000 (02:27 +0000)]
2007-08-15  Wenji Huang  <wenji.huang@oracle.com>

      * 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."

16 years ago2007-08-15 Martin Hunt <hunt@redhat.com>
hunt [Wed, 15 Aug 2007 19:17:35 +0000 (19:17 +0000)]
2007-08-15  Martin Hunt  <hunt@redhat.com>

* 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.

16 years ago2007-08-15 David Smith <dsmith@redhat.com>
dsmith [Wed, 15 Aug 2007 17:37:21 +0000 (17:37 +0000)]
2007-08-15  David Smith  <dsmith@redhat.com>

* staprun.c (main): Quit if effective uid is not root.

16 years ago2007-08-15 David Smith <dsmith@redhat.com>
dsmith [Wed, 15 Aug 2007 17:03:56 +0000 (17:03 +0000)]
2007-08-15  David Smith  <dsmith@redhat.com>

* 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.

16 years ago2007-08-15 David Smith <dsmith@redhat.com>
dsmith [Wed, 15 Aug 2007 17:01:19 +0000 (17:01 +0000)]
2007-08-15  David Smith  <dsmith@redhat.com>

* 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.

16 years ago*** empty log message ***
hunt [Wed, 15 Aug 2007 16:13:09 +0000 (16:13 +0000)]
*** empty log message ***

16 years ago2007-08-15 Martin Hunt <hunt@redhat.com>
hunt [Wed, 15 Aug 2007 14:44:21 +0000 (14:44 +0000)]
2007-08-15  Martin Hunt  <hunt@redhat.com>
PR4736
* staprun.c (cleanup): Set priority back to normal
before removing module.

16 years ago2007-08-15 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 15 Aug 2007 14:21:55 +0000 (14:21 +0000)]
2007-08-15  Frank Ch. Eigler  <fche@elastic.org>

* context.stp (cpuid, cpu): Use smp_processor_id().

16 years ago2007-08-15 Martin Hunt <hunt@redhat.com>
hunt [Wed, 15 Aug 2007 13:59:19 +0000 (13:59 +0000)]
2007-08-15  Martin Hunt  <hunt@redhat.com>

* Makefile.am: Removed stap_merge.
* Makefile.in: Rebuilt.

16 years ago2007-08-15 Martin Hunt <hunt@redhat.com>
hunt [Wed, 15 Aug 2007 13:56:04 +0000 (13:56 +0000)]
2007-08-15  Martin Hunt  <hunt@redhat.com>

* stap_merge.tcl: New.

16 years ago2007-08-15 Martin Hunt <hunt@redhat.com>
hunt [Wed, 15 Aug 2007 13:54:36 +0000 (13:54 +0000)]
2007-08-15  Martin Hunt  <hunt@redhat.com>

* systemtap.printf/*b.exp: Use stap_merge.tcl.

16 years ago2007-08-14 David Smith <dsmith@redhat.com>
dsmith [Tue, 14 Aug 2007 19:48:35 +0000 (19:48 +0000)]
2007-08-14  David Smith  <dsmith@redhat.com>

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.

16 years ago2007-08-14 David Smith <dsmith@redhat.com>
dsmith [Tue, 14 Aug 2007 19:46:54 +0000 (19:46 +0000)]
2007-08-14  David Smith  <dsmith@redhat.com>

Merge from setuid-branch.  Changes also by Martin Hunt
<hunt@redhat.com>.

* Makefile.am: Added staprun_funcs.c and cap.c to
staprun_SOURCES.  Added -lcap to staprun_LDADD.  Removed
stp_check reference. Added stapio program.  Staprun is now
setuid.
* Makefile.in: Rebuilt.

* configure.ac: Version increase to 0.6 and checks for libcap
availability.  Removed stp_check reference.
* configure: Regenerated.
* stp_check.in: Removed.

* systemtap.spec.in: Version increase to 0.6-1 and added
BuildReq for libcap-devl (and removed sudo requirement).
Added %pre script to create new groups.  Staprun is now
setuid.

* NEWS: Added info on new security model.
* INTERNALS: Removed sudo reference.

* README.security: New file.

* main.cxx (main): Make sure module name isn't too long.
* hash.cxx: Moved MODULE_NAME_LEN define to hash.h.
* hash.h: Moved MODULE_NAME_LEN define here from hash.cxx.

* buildrun.cxx (run_pass): No longer runs staprun with "sudo".

* stap.1.in: Removed sudo references and added information about
the stapdev/stapusr groups.
* staprun.8.in: Added information about module detaching and
attaching.  Removed sudo references and added information
about the stapdev/stapusr groups.  Removed reference to
staprun needing to be run as root.  Removed reference to
removed '-u USERNAME' option.

* .cvsignore: Removed stp_check and added stapio and stap_merge.

16 years ago2007-08-14 David Smith <dsmith@redhat.com>
dsmith [Tue, 14 Aug 2007 15:29:40 +0000 (15:29 +0000)]
2007-08-14  David Smith  <dsmith@redhat.com>

Merge from setuid-branch.  Changes also by Martin Hunt
<hunt@redhat.com>.

* Makefile.am: Added staprun_funcs.c and cap.c to
staprun_SOURCES.  Added -lcap to staprun_LDADD.  Removed
stp_check reference. Added stapio program.  Staprun is now
setuid.
* Makefile.in: Rebuilt.

* configure.ac: Version increase to 0.6 and checks for libcap
availability.  Removed stp_check reference.
* configure: Regenerated.
* stp_check.in: Removed.

* systemtap.spec.in: Version increase to 0.6-1 and added
BuildReq for libcap-devl (and removed sudo requirement).
Added %pre script to create new groups.  Staprun is now
setuid.

* NEWS: Added info on new security model.
* INTERNALS: Removed sudo reference.

* README.security: New file.

* main.cxx (main): Make sure module name isn't too long.
* hash.cxx: Moved MODULE_NAME_LEN define to hash.h.
* hash.h: Moved MODULE_NAME_LEN define here from hash.cxx.

* buildrun.cxx (run_pass): No longer runs staprun with "sudo".

* stap.1.in: Removed sudo references and added information about
the stapdev/stapusr groups.
* staprun.8.in: Added information about module detaching and
attaching.  Removed sudo references and added information
about the stapdev/stapusr groups.  Removed reference to
staprun needing to be run as root.  Removed reference to
removed '-u USERNAME' option.

* .cvsignore: Removed stp_check and added stapio and stap_merge.

16 years ago2007-08-14 David Smith <dsmith@redhat.com>
dsmith [Tue, 14 Aug 2007 15:28:47 +0000 (15:28 +0000)]
2007-08-14  David Smith  <dsmith@redhat.com>

Merge from setuid-branch.
* configure.ac: Version increase to 0.6.
* configure: Regenerated.

* parseko/cmdline09.stp: Added new test for staprun command line
options.
* parseko/cmdline10.stp: Ditto.
* parseko/cmdline11.stp: Ditto.
* parseko/cmdline12.stp: Ditto.
* parseko/cmdline13.stp: Ditto.
* parseko/cmdline14.stp: Ditto.

* systemtap.samples/args.exp: No longer necessary to use "sudo" to
run staprun.

16 years ago2007-08-14 David Smith <dsmith@redhat.com>
dsmith [Tue, 14 Aug 2007 15:27:58 +0000 (15:27 +0000)]
2007-08-14  David Smith  <dsmith@redhat.com>

Merge from setuid-branch.  Changes also by Martin Hunt
<hunt@redhat.com>.

* control.c (_stp_ctl_write): Make sure we don't overflow.
(_stp_ctl_open_cmd): Do not allow multiple opens of the control
file.
(_stp_ctl_write_cmd): Once STP_START is received, ignore
everything except STP_EXIT.  Create another state variable
"initialized". Don't respond to STP_SYMBOLS or STP_MODULES unless
initialized is 0. Also check that current pid is the same as the
pid that did insmod.
(_stp_register_ctl_channel): Bug fix - sets owner/group after
checking for NULL.

* procfs.c (_stp_ctl_write): Make sure we don't overflow.
(_stp_ctl_open_cmd): Do not allow multiple opens of the control
file.
(_stp_ctl_write_cmd): Once STP_START is received, ignore
everything except STP_EXIT.  Create another state variable
"initialized". Don't respond to STP_SYMBOLS or STP_MODULES unless
initialized is 0. Also check that current pid is the same as the
pid that did insmod.
(_stp_register_ctl_channel): Set ownership of cmd file and percpu
files for bulkmode.

* relayfs.c (utt_trace_setup): Set ownership of percpu files.
Improved error handling.
(utt_trace_remove): Improved error checking.

* utt.c (utt_remove_tree): Improved error checking.
(utt_trace_cleanup): Ditto.
(utt_create_buf_file_callback): Set file ownership.
(utt_create_global_buf_file_callback): Set file ownership.

* transport.h: Delcare _stp_uid, _stp_gid, and _stp_init_pid.
* transport.c (_stp_transport_init): Set _stp_uid, _stp_gid, and
_stp_init_pid.

16 years ago2007-08-14 David Smith <dsmith@redhat.com>
dsmith [Tue, 14 Aug 2007 15:23:59 +0000 (15:23 +0000)]
2007-08-14  David Smith  <dsmith@redhat.com>

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.

16 years agoadd entries to _sched_policy_str,_nfsctl_cmd_str
wenji [Mon, 13 Aug 2007 01:58:31 +0000 (01:58 +0000)]
add entries to _sched_policy_str,_nfsctl_cmd_str

16 years ago2007-08-10 Josh Stone <joshua.i.stone@intel.com>
jistone [Sat, 11 Aug 2007 02:19:25 +0000 (02:19 +0000)]
2007-08-10  Josh Stone  <joshua.i.stone@intel.com>

PR 4593
* translate.cxx (c_unparser::emit_common_header): Add an
error_buffer to the context to allow dynamic error messages.
* tapsets.cxx (dwflpp::express_as_string): Let deref / store_deref
fill in last_error with a detailed message.

runtime/
* loc2c-runtime.h (deref, store_deref): Set an error message with
the pointer value and name into last_error, since it's hard to
determine the details once you've already jumped to deref_fault.

tapset/
* conversions.stp (kernel_string, kernel_long, kernel_int,
kernel_short, kernel_char, user_string_warn): Use the
CONTEXT->error_buffer to create an error message instead of a static
local array.

16 years ago2007-08-10 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 10 Aug 2007 15:43:03 +0000 (15:43 +0000)]
2007-08-10  Frank Ch. Eigler  <fche@elastic.org>

From "Zhaolei" zhaolei@cn.fujitsu.com:
* syscalls.stp (msync.return): Correct name variable.

16 years ago2007-08-10 Frank Ch. Eigler <fche@elastic.org>
fche [Fri, 10 Aug 2007 15:39:42 +0000 (15:39 +0000)]
2007-08-10  Frank Ch. Eigler  <fche@elastic.org>

From "Zhaolei" zhaolei@cn.fujitsu.com:
* aux_syscalls.stp (_sockopt_optname_str): Add SO_SND/RCVBUFFORCE.

16 years ago2007-08-09 Frank Ch. Eigler <fche@elastic.org>
fche [Thu, 9 Aug 2007 16:27:21 +0000 (16:27 +0000)]
2007-08-09  Frank Ch. Eigler  <fche@elastic.org>

From Cai Fei <caifei@cn.fujitsu.com>:
* aux_syscalls.stp (__fork_flags): Decode CLONE_VM, NEWNS, DETACHED.

16 years ago2007-08-09 Frank Ch. Eigler <fche@elastic.org>
fche [Thu, 9 Aug 2007 16:21:43 +0000 (16:21 +0000)]
2007-08-09  Frank Ch. Eigler  <fche@elastic.org>

PR 4718, from Eugeniy Meshcheryakov <eugen@debian.org>:
* *.stp: Make all shell scripts lead with #! /usr/bin/stap

16 years ago2007-08-09 Frank Ch. Eigler <fche@elastic.org>
fche [Thu, 9 Aug 2007 16:11:28 +0000 (16:11 +0000)]
2007-08-09  Frank Ch. Eigler  <fche@elastic.org>

From Lai Jiangshan <laijs@cn.fujitsu.com>:
* translate.cxx (emit_module_exit): Use stp_warn for warning.

16 years ago2007-08-09 William Cohen <wcohen@redhat.com>
wcohen [Thu, 9 Aug 2007 14:11:43 +0000 (14:11 +0000)]
2007-08-09  William Cohen  <wcohen@redhat.com>

* tapset/syscalls.stp (syscall.compat_execve,
syscall.compat_execve.return):
* tapset/syscalls2.stp (syscall.compat_sys_semtimedop,
syscall.compat_sys_semtimedop.return):
* tapset/i686/syscalls.stp (syscall.set_zone_reclaim,
syscall.set_zone_reclaim.return): Make optional.

16 years ago* change License: tags to GPLv2+ to match the code
fche [Wed, 8 Aug 2007 20:30:36 +0000 (20:30 +0000)]
* change License: tags to GPLv2+ to match the code

16 years ago2007-08-08 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 8 Aug 2007 15:26:35 +0000 (15:26 +0000)]
2007-08-08  Frank Ch. Eigler  <fche@elastic.org>

From "Zhaolei" zhaolei@cn.fujitsu.com:
* aux_syscalls.stp (_sockopt_level_str): Correct level=1 string.

16 years ago2007-08-07 Frank Ch. Eigler <fche@redhat.com>
fche [Wed, 8 Aug 2007 03:36:25 +0000 (03:36 +0000)]
2007-08-07  Frank Ch. Eigler  <fche@redhat.com>

PR 4846
* parse.cxx (input_put): New function, sort of like stdio ungetc.
(input_get): Skip cursor position changing for input_put strings.
(scan): Rework $.../@... substitution into character pasting.
* parse.h: Corresponding changes.
* util.h (lex_cast_qstring): Octal-quote unprintable characters.
* stap.1.in, NEWS: Document new behaviour.

2007-08-07  Frank Ch. Eigler  <fche@redhat.com>

PR 4846
* parseko/preprocess13.stp, parseok/nineteen.stp,
semok/twentyfive.stp: New tests.

16 years ago2007-08-07 David Smith <dsmith@redhat.com>
dsmith [Tue, 7 Aug 2007 14:33:41 +0000 (14:33 +0000)]
2007-08-07  David Smith  <dsmith@redhat.com>

PR 4736 (partial fix)
* systemtap.printf/end1b.exp: Changed 'FAIL' to 'fail', so
the rest of the testsuite will continue.
* systemtap.printf/mixed_outb.exp: Ditto.
* systemtap.printf/out1b.exp: Ditto.
* systemtap.printf/out2b.exp: Ditto.
* systemtap.printf/out3b.exp: Ditto.

16 years agothread_info is renamed to stack since kernel 2.6.22
wenji [Sat, 4 Aug 2007 14:36:27 +0000 (14:36 +0000)]
thread_info is renamed to stack since kernel 2.6.22

16 years ago2007-08-03 Martin Hunt <hunt@redhat.com>
hunt [Fri, 3 Aug 2007 20:48:36 +0000 (20:48 +0000)]
2007-08-03  Martin Hunt  <hunt@redhat.com>

* aux_syscalls.stp (__get_compat_argv): Add cast.

16 years agoChanged limit check in foreach loop.
mmason [Thu, 2 Aug 2007 18:29:27 +0000 (18:29 +0000)]
Changed limit check in foreach loop.

16 years agoChanged pid to tid throughout. Changed delete method in decumulate().
mmason [Wed, 1 Aug 2007 16:01:32 +0000 (16:01 +0000)]
Changed pid to tid throughout.  Changed delete method in decumulate().

16 years ago2007-07-31 Martin Hunt <hunt@redhat.com>
hunt [Tue, 31 Jul 2007 18:24:37 +0000 (18:24 +0000)]
2007-07-31  Martin Hunt  <hunt@redhat.com>

* syscalls*: Move sys32_sysctl to arch dirs.

16 years ago2007-07-31 Martin Hunt <hunt@redhat.com>
hunt [Tue, 31 Jul 2007 18:19:17 +0000 (18:19 +0000)]
2007-07-31  Martin Hunt  <hunt@redhat.com>

* clock.c (main): Change flags to hex.

16 years ago2007-07-31 Martin Hunt <hunt@redhat.com>
hunt [Tue, 31 Jul 2007 17:30:32 +0000 (17:30 +0000)]
2007-07-31  Martin Hunt  <hunt@redhat.com>

* syscalls.stp (clack_nanosleep): Fix flags string.

* syscalls2.stp: Fix typo.

16 years ago2007-07-31 Martin Hunt <hunt@redhat.com>
hunt [Tue, 31 Jul 2007 16:20:30 +0000 (16:20 +0000)]
2007-07-31  Martin Hunt  <hunt@redhat.com>

* */syscalls.stp: Added mmap functions.
Continued moving common compatibility functions to
the main tapset.

* aux_syscalls.stp (_shmat_flags_str): New.
(__get_compat_argv): New.

* syscalls.stp (adjtimex): Just print hex argument.
(compat_adjtimex): New.
(clock_getres): Also probe compat_clock_getres.
(clock_gettime): Also probe compat funcs.
(compat_clock_nanosleep): New.
(compat_execve): New.
(fstatat): New.
(get[e][gu]id): Also probe sys32.
(getsockopt): Make optional. Also probe compat.
(mmap, mmap2): These are arch-specific, so move to individual
architecture subdirs.
(compat_sys_msgctl): New.
(compat_sys_msgrcv): New.
(compat_sys_msgsnd): New.

* syscalls.stp (pread32): Remove. It calls pread64 .
(quotactl): Make optional.
(recv): Probe correct function.
(recvfrom): Fix args.
(compat_sys_recvmsg): New.
(semctl): Make optional.
(compat_sys_semctl): New.
(semget): Make optional.
(semop): Make optional.
(semtimedop): Make optional.
(compat_sys_semtimedop): New.
(send): Make optional.
(sendmsg): Make optional.
(compat_sys_sendmsg): New.
(sendto): Make optional.
(setsockopt): Make optional. Add compat.
(shmat): New.
(compat_sys_shmat): New.
(shmctl): New.
(compat_sys_shmctl): New.
(shmdt): New.
(shmget): New.
(shutdown): Make optional.
(socket): Make optional.
(socketpair): Make optional.
(swapoff): Make optional.
(swapon): Make optional.
(sysctl): Add probe on sys32.

16 years ago* add PR
fche [Tue, 31 Jul 2007 14:36:28 +0000 (14:36 +0000)]
* add PR

16 years ago2007-07-31 Frank Ch. Eigler <fche@elastic.org>
fche [Tue, 31 Jul 2007 14:35:51 +0000 (14:35 +0000)]
2007-07-31  Frank Ch. Eigler  <fche@elastic.org>

* ppc64/syscalls.stp: Remove duplicate sys_request_key{,.return}
aliases.

16 years agofixed support for pread and pwrite for s390x. Added tests for pread and pwrite.
dwilder [Mon, 30 Jul 2007 22:29:12 +0000 (22:29 +0000)]
fixed support for pread and pwrite for s390x.  Added tests for pread and pwrite.

16 years ago2007-07-26 David Smith <dsmith@redhat.com>
dsmith [Thu, 26 Jul 2007 21:40:50 +0000 (21:40 +0000)]
2007-07-26  David Smith  <dsmith@redhat.com>

PR 4295
* systemtap.samples/args.exp: Tests to make sure the '-m' option
leaves a module in the current directory.
* systemtap.base/cache.exp (stap_compile): Added cleanup.

16 years ago2007-07-26 David Smith <dsmith@redhat.com>
dsmith [Thu, 26 Jul 2007 20:27:17 +0000 (20:27 +0000)]
2007-07-26  David Smith  <dsmith@redhat.com>

PR 4295
* main.cxx (main): If '-m MODNAME' is used, the generated module
is saved in the current directory.
* stap.1.in: Updated '-m' description.

16 years ago2007-07-26 Martin Hunt <hunt@redhat.com>
hunt [Thu, 26 Jul 2007 17:11:51 +0000 (17:11 +0000)]
2007-07-26  Martin Hunt  <hunt@redhat.com>

Spotted by Ming Chang.
* procfs.c (_stp_register_ctl_channel): Fix iterator when removing
proc entries when an error occurs.

16 years agoAnother fix for PR4836.
mmason [Wed, 25 Jul 2007 18:39:18 +0000 (18:39 +0000)]
Another fix for PR4836.

16 years agoFixes for PR4836.
mmason [Wed, 25 Jul 2007 18:35:30 +0000 (18:35 +0000)]
Fixes for PR4836.

17 years ago2007-07-17 Martin Hunt <hunt@redhat.com>
hunt [Wed, 18 Jul 2007 00:50:44 +0000 (00:50 +0000)]
2007-07-17  Martin Hunt  <hunt@redhat.com>

* poll.c (main): Don't hardcode fd.

17 years agosocket.stp: changed initialization of *num2str arrays to foreach loops.
mmason [Tue, 17 Jul 2007 15:27:43 +0000 (15:27 +0000)]
socket.stp: changed initialization of *num2str arrays to foreach loops.

17 years ago2007-07-16 Martin Hunt <hunt@redhat.com>
hunt [Mon, 16 Jul 2007 21:18:24 +0000 (21:18 +0000)]
2007-07-16  Martin Hunt  <hunt@redhat.com>
(compat_sys_io_submit): Fix typo.

17 years ago2007-07-16 Martin Hunt <hunt@redhat.com>
hunt [Mon, 16 Jul 2007 21:12:55 +0000 (21:12 +0000)]
2007-07-16  Martin Hunt  <hunt@redhat.com>

* select.c (main): Ifdef SYS_pselect6.
* poll.c (main): Ifdef SYS_ppoll.

17 years ago2007-07-16 Martin Hunt <hunt@redhat.com>
hunt [Mon, 16 Jul 2007 17:20:31 +0000 (17:20 +0000)]
2007-07-16  Martin Hunt  <hunt@redhat.com>

* select.c, poll.c: New.

17 years ago2007-07-16 Martin Hunt <hunt@redhat.com>
hunt [Mon, 16 Jul 2007 17:18:38 +0000 (17:18 +0000)]
2007-07-16  Martin Hunt  <hunt@redhat.com>

* syscalls.stp (compat_sys_fcntl64, compat_sys_fcntl): Add.
(compat_sys_fstatfs64): Add.
(compat_sys_getdents, compat_sys_getdents64): Add.
(compat_sys_ioctl): Add.
(compat_sys_io_getevents): Add.
(compat_sys_io_setup): Add.
(compat_sys_io_submit): Add.

* syscalls2.stp (compat_sys_nfsservctl): Add.
(sys_openat): Add.
(sys_ppoll): Add;
(compat_sys_ppoll): Add.
(sys32_pread64): Add.
(sys32_pwrite32): Add.
(sys_pwrite64): Print quoted string.
(sys_pselect6, compat_sys_pselect6): Add.
(sys_pselect7, compat_sys_pselect7): Add.
(compat_sys_old_readdir): Add.
(sys_select): Don't try to print fd_sets.
(compat_sys_select): Add.
(compat_sys_statfs64): Add.

* ppc/syscalls.stp: Remove duplicated probes.

* aux_syscalls.stp (_nfsctl_cmd_str): New.
(_fd_set_u): Removed. Not used.

17 years ago2007-07-12 David Smith <dsmith@redhat.com>
dsmith [Thu, 12 Jul 2007 15:38:20 +0000 (15:38 +0000)]
2007-07-12  David Smith  <dsmith@redhat.com>

* systemtap.maps/pmap_agg_overflow.exp: On single processor
systems, this test reported an unsupported test and a test failure
when it should have only reported an unsupported test.  Fixed.

This page took 0.065885 seconds and 5 git commands to generate.