]> sourceware.org Git - systemtap.git/log
systemtap.git
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.

17 years ago2007-07-11 William Cohen <wcohen@redhat.com>
wcohen [Wed, 11 Jul 2007 20:20:30 +0000 (20:20 +0000)]
2007-07-11  William Cohen  <wcohen@redhat.com>

* systemtap.spec.in: Make sqlite support selectable.

17 years ago2007-07-11 Frank Ch. Eigler <fche@elastic.org>
fche [Wed, 11 Jul 2007 15:48:29 +0000 (15:48 +0000)]
2007-07-11  Frank Ch. Eigler  <fche@elastic.org>

* configure.ac: Don't AC_MSG_ERROR if don't HAVE_LIBSQLITE3.
* coveragedb.cxx: Compile to nothing unless HAVE_LIBSQLITE3.
* main.cxx: Print no error message on -q if HAVE_LIBSQLITE3.
* configure: Regenerated, looks rosier with HAVE_LIBSQLITE3.

17 years ago2007-07-11 Eugene Teo <eteo@redhat.com>
eteo [Wed, 11 Jul 2007 13:32:25 +0000 (13:32 +0000)]
2007-07-11  Eugene Teo  <eteo@redhat.com>

* tcp.stp (tcp_sockstate_str, tcp_sockopt_str,
tcp_setsockopt): New. Also added sockopt and sockstate
lookup tables.

17 years ago2007-07-10 Martin Hunt <hunt@localhost.localdomain>
hunt [Wed, 11 Jul 2007 02:39:44 +0000 (02:39 +0000)]
2007-07-10  Martin Hunt  <hunt@localhost.localdomain>

* systemtap.context/context.exp: Copy modules to
/lib/modules/`uname -r`/kernel for debug info.

17 years ago2007-07-10 Martin Hunt <hunt@redhat.com>
hunt [Wed, 11 Jul 2007 00:52:49 +0000 (00:52 +0000)]
2007-07-10  Martin Hunt  <hunt@redhat.com>

* futimes.c (main): Ifdef out futimesat tests
if not defined.

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

* aux_syscalls.stp (_struct_compat_timeval2_u):
Fixes.

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

* syscall*.stp: Major reorganization work.
* aux_syscalls.stp (_sigprocmask_how_str): Rewrite
in C so real arch-dependent header files
will be used.
(_mlockall_flags_str): Ditto.

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

* uid16.c (main): 16-bit syscalls now have
the same name as 32-bit. Fix patterns.

17 years ago*** empty log message ***
hunt [Tue, 10 Jul 2007 15:56:05 +0000 (15:56 +0000)]
*** empty log message ***

17 years ago2007-07-10 Martin Hunt <hunt@redhat.com>
hunt [Tue, 10 Jul 2007 15:50:57 +0000 (15:50 +0000)]
2007-07-10  Martin Hunt  <hunt@redhat.com>

* systemtap.context/pid.tcl: Don't try to get real ppid,
just match pattern.

17 years ago2007-07-09 David Smith <dsmith@redhat.com>
dsmith [Mon, 9 Jul 2007 22:40:56 +0000 (22:40 +0000)]
2007-07-09  David Smith  <dsmith@redhat.com>

* relay.c (init_relayfs): Fixed a buffer size bug introduced by
the last change.

17 years ago2007-07-09 David Smith <dsmith@redhat.com>
dsmith [Mon, 9 Jul 2007 18:20:35 +0000 (18:20 +0000)]
2007-07-09  David Smith  <dsmith@redhat.com>

* relay.c (init_relayfs): Make sure buffers are big enough to hold
a full path.
* relay_old.c (init_oldrelayfs): Ditto.

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

* syscalls2.stp (compat_sys_utimes): New.
* ppc64/syscalls.stp (ciompat_sys_utimes): Removed.

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

* systemtap.context/systemtap_test_module1.c (stm_write_cmd):
Set pointer type to "char *" so get_user() fetches a char.

17 years ago2007-07-09 David Smith <dsmith@redhat.com>
dsmith [Mon, 9 Jul 2007 15:04:57 +0000 (15:04 +0000)]
2007-07-09  David Smith  <dsmith@redhat.com>

* ctl.c (read_buffer_info): Make sure buffer is big enough to hold
a full path.
(init_ctl_channel): Ditto.

17 years ago2007-07-09 Martin Hunt <hunt@redhat.com>
hunt [Mon, 9 Jul 2007 14:55:33 +0000 (14:55 +0000)]
2007-07-09  Martin Hunt  <hunt@redhat.com>

* syscalls.stp (compat_sys_futimesat): Fix arg.

17 years ago2007-07-09 Martin Hunt <hunt@redhat.com>
hunt [Mon, 9 Jul 2007 14:50:04 +0000 (14:50 +0000)]
2007-07-09  Martin Hunt  <hunt@redhat.com>

* sym.h (STP_MAX_MODULES): Raise limit to 256.

17 years ago2007-07-09 Martin Hunt <hunt@redhat.com>
hunt [Mon, 9 Jul 2007 14:49:15 +0000 (14:49 +0000)]
2007-07-09  Martin Hunt  <hunt@redhat.com>

* symbols.c (_stp_ins_module): Check for overflow of
modules array.
(_stp_do_module): If _stp_ins_module() fails, return an error.

17 years ago PR 4529
wcohen [Sun, 8 Jul 2007 20:09:14 +0000 (20:09 +0000)]
PR 4529
* coveragedb.cxx (update_coverage_db): Make index "unique" to optimize.

17 years ago2007-07-08 William Cohen <wcohen@redhat.com>
wcohen [Sat, 7 Jul 2007 21:46:31 +0000 (21:46 +0000)]
2007-07-08  William Cohen  <wcohen@redhat.com>

PR 4529
* coveragedb.h (db_type): New enum for type column in coverage_element.
(coverage_element): Remove removed column, change type to int.
* coveragedb.cxx (has_table, has_index): New.
(update_coverage_db): Use has_table, has_index.
(enter_element): Change for new table format.
(increment_element): Ditto.
(sql_update_used_probes): Ditto.
(sql_update_unused_probes): Ditto.
(sql_update_used_functions): Ditto.
(sql_update_unused_functions): Ditto.
(sql_update_used_globals): Ditto.
(sql_update_unused_globals): Ditto.
(update_coverage_db): Ditto.
(print_coverage_info(systemtap_session): Relocate vector.
(sql_update_used_probes): Ditto.
(sql_update_unused_probes): Ditto.

17 years ago2007-07-06 Martin Hunt <hunt@redhat.com>
hunt [Fri, 6 Jul 2007 19:03:12 +0000 (19:03 +0000)]
2007-07-06  Martin Hunt  <hunt@redhat.com>

* systemtap.maps/linear*: New tests of linear histograms.

17 years ago2007-07-06 Martin Hunt <hunt@redhat.com>
hunt [Fri, 6 Jul 2007 18:42:00 +0000 (18:42 +0000)]
2007-07-06  Martin Hunt  <hunt@redhat.com>

* stat-common.c (__stp_stat_add): Fix calculations
for linear histogram buckets.

* stat.c (_stp_stat_init): Check for interval too
small.

17 years ago2007-07-05 Eugene Teo <eteo@redhat.com>
eteo [Wed, 4 Jul 2007 17:05:00 +0000 (17:05 +0000)]
2007-07-05  Eugene Teo  <eteo@redhat.com>

* regs.c (_stp_print_regs): #ifdef CONFIG_CPU_CP15 instead.

17 years ago2007-07-03 Frank Ch. Eigler <fche@elastic.org>
fche [Tue, 3 Jul 2007 22:39:12 +0000 (22:39 +0000)]
2007-07-03  Frank Ch. Eigler  <fche@elastic.org>

* configure.ac: Bumped version to 0.5.15 for development.
* configure: Regenerated.

17 years ago2007-07-03 Martin Hunt <hunt@redhat.com>
hunt [Tue, 3 Jul 2007 21:44:27 +0000 (21:44 +0000)]
2007-07-03  Martin Hunt  <hunt@redhat.com>

* futimes.c: New test.

17 years ago2007-07-03 Martin Hunt <hunt@redhat.com>
hunt [Tue, 3 Jul 2007 21:43:20 +0000 (21:43 +0000)]
2007-07-03  Martin Hunt  <hunt@redhat.com>

* syscalls.stp: Add sys_futimesat, compat_sys_futimesat.
* syscalls2.stp (utimes): Use _struct_timeval2_u.
* aux_syscalls.stp (_struct_timeval2_u): New function.
(_struct_compat_timeval2_u): New function.

17 years ago*** empty log message ***
hunt [Tue, 3 Jul 2007 21:38:59 +0000 (21:38 +0000)]
*** empty log message ***

17 years ago2007-07-03 Martin Hunt <hunt@redhat.com>
hunt [Tue, 3 Jul 2007 21:38:40 +0000 (21:38 +0000)]
2007-07-03  Martin Hunt  <hunt@redhat.com>

* systemtap.context/pid.tcl: Better error reporting.
* systemtap.context/args.*: Ditto.
* systemtap.context/context.exp: Build in temp dir.

17 years ago* rhel5.1 build prep
fche [Tue, 3 Jul 2007 21:21:25 +0000 (21:21 +0000)]
* rhel5.1 build prep

17 years ago.
roland [Tue, 3 Jul 2007 19:49:39 +0000 (19:49 +0000)]
.

17 years ago2007-07-03 Roland McGrath <roland@frob.com>
roland [Tue, 3 Jul 2007 19:49:36 +0000 (19:49 +0000)]
2007-07-03  Roland McGrath  <roland@frob.com>

* Makefile.am (install-exec-local, install-elfutils): Use $(DESTDIR).
(SRCDIR): Variable removed.
(check): Use sh code in commands instead.
* Makefile.in: Regenerated.

17 years ago* fill out changelog for 0.5.13->14 developments release-0.5.14
fche [Tue, 3 Jul 2007 15:42:28 +0000 (15:42 +0000)]
* fill out changelog for 0.5.13->14 developments

17 years ago PR 4717
wcohen [Mon, 2 Jul 2007 20:33:11 +0000 (20:33 +0000)]
PR 4717
From Eugeniy Meshcheryakov <eugen@debian.org>
* staptree.cxx: Add #include <cstdlib> for gcc 4.3.

17 years ago2007-07-02 Frank Ch. Eigler <fche@rechat.com>
fche [Mon, 2 Jul 2007 19:40:50 +0000 (19:40 +0000)]
2007-07-02  Frank Ch. Eigler  <fche@rechat.com>

* staplog.c: New file from Satoru MORIYA
<satoru.moriya.br@hitachi.com>, prototype crash(8) extension module.
* configure.ac: Look for crash/defs.h.
* Makefile.am: Build/install staplog.so shared library if found.
* configure, Makefile, config.in, runtime/lket/b2a/Makefile.in:
Regenerated.

17 years ago PR 4720
wcohen [Mon, 2 Jul 2007 19:35:42 +0000 (19:35 +0000)]
PR 4720
* staptree.cxx (probe_point::print): Remove stray output.

17 years ago*** empty log message ***
hunt [Mon, 2 Jul 2007 18:28:28 +0000 (18:28 +0000)]
*** empty log message ***

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

* systemtap.context/context.exp: Add pid tests.
* systemtap.context/pid.*: New tests.

17 years ago*** empty log message ***
hunt [Mon, 2 Jul 2007 08:46:03 +0000 (08:46 +0000)]
*** empty log message ***

17 years ago2007-07-02 Martin Hunt <hunt@redhat.com>
hunt [Mon, 2 Jul 2007 07:41:05 +0000 (07:41 +0000)]
2007-07-02  Martin Hunt  <hunt@redhat.com>

* context.stp (print_backtrace): If no regs, just
print the probe point.

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

* systemtap.context/*: New context tests.

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

* symbols.c (get_sections): Set data pointer to the lowest address
of any data section.

17 years ago2007-07-02 Martin Hunt <hunt@redhat.com>
hunt [Mon, 2 Jul 2007 07:14:36 +0000 (07:14 +0000)]
2007-07-02  Martin Hunt  <hunt@redhat.com>

* sym.c (_stp_kallsyms_lookup): Improve heuristic
for determining when a pointer is in a function.
(_stp_func_print): New function.
* stack-i386.c, stack-x86_64.c: Remove obsolete
unwind code. Use _stp_func_print().

17 years ago2007-07-02 Martin Hunt <hunt@redhat.com>
hunt [Mon, 2 Jul 2007 07:05:10 +0000 (07:05 +0000)]
2007-07-02  Martin Hunt  <hunt@redhat.com>

* symbols.c (_stp_do_symbols): Set "data" pointer for kernel to _etext.
(_stp_sort): New. sort function from the kernel.
(_stp_load_module_symbols): Use _stp_sort().

17 years ago PR 4529
wcohen [Fri, 29 Jun 2007 20:23:34 +0000 (20:23 +0000)]
    PR 4529
        * configure.ac:
        * Makefile.am: Limit where sqlite3 linked in.
        * configure:
        * Makefile.in: Regenerate.

17 years ago PR 4529
wcohen [Fri, 29 Jun 2007 18:13:49 +0000 (18:13 +0000)]
    PR 4529
        * configure.ac:
        * Makefile.am: Limit where sqlite3 linked in.
        * configure:
        * Makefile.in: Regenerate.

        * coveragedb.cxx (update_coverage_db): Remove unneeded print.
        * coveragedb.cxx (increment_element): Correct formatting.

17 years agoFiles have been added & renamed, regenerating cscope.files.
jistone [Thu, 28 Jun 2007 20:56:31 +0000 (20:56 +0000)]
Files have been added & renamed, regenerating cscope.files.

17 years agoRemove stray "\n" from probe_point::print.
wcohen [Tue, 26 Jun 2007 20:55:27 +0000 (20:55 +0000)]
Remove stray "\n" from probe_point::print.

17 years agoChangeLog entry
wcohen [Tue, 26 Jun 2007 19:37:02 +0000 (19:37 +0000)]
ChangeLog entry

17 years ago2007-06-26 William Cohen <wcohen@redhat.com>
wcohen [Tue, 26 Jun 2007 19:36:25 +0000 (19:36 +0000)]
2007-06-26  William Cohen  <wcohen@redhat.com>

PR 4529
* coveragedb.cxx: New.
* coveragedb.h: New.
* Makefile.am: Add coveragedb.cxx and sqlite3 to build.
* Makefile.in: Regenerated.
* configure.ac: Add test for sqlite3
* configure: Regenerated.
* systemtap.spec.in: Add dependencies for sqlite3/sqlite3-devel.
* elaborate.h, elaborate.cxx
  (derived_probe::collect_derivation_chain): New.
  (alias_expansion_builder::build): Correct token location.
  (semantic_pass_opt[12): Track used and unused variables/functions.
* session.h (tapset_compile_coverage, unused_globals,
  unused_probes, unused_functions): New fields.
* staptree.h (unused_locals, probe_point::str): New member.
* staptree.cxx: Ditto.
* main.cxx: Add "-q" tapset coverage option and SYSTEMTAP_COVERAGE env.

17 years ago2007-06-25 Martin Hunt <hunt@redhat.com>
hunt [Mon, 25 Jun 2007 17:38:33 +0000 (17:38 +0000)]
2007-06-25  Martin Hunt  <hunt@redhat.com>

* systemtap.maps/pmap_agg_overflow.exp: Rewrite
so order of error messages is not important.

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