| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
When the relay threads encounter an error, they now send SIGTERM to the
rest of the process before the thread exit, so we get a clean shutdown.
For EPIPE in particular, error messages are also suppressed.
|
| |
|
|
|
|
|
| |
This fixes bugs in strftime-subset function. This modifies %C, %l and %j to
fit the output of date command.
|
|
|
|
|
|
|
|
|
| |
This fixes a bug in stapio, which checks written data size and switches
new file when it exceeds a limit. The problem is that written-data-size
counter ignores the first written-data size when switching files. So,
actual file size always exceeds the limit. This changes stapio to
initialize written-data-size counter with the size of the data which
will be written in new file.
|
|
|
|
|
| |
* runtime/staprun/staprun_funcs.c (check_path): Save fully
canonicalized and checked module path for later loading.
|
|
|
|
|
| |
Add strftime subset format support for output file name to systemtap.
This format will be evaluated when opening a new output file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add file-switching option(-S size[,N]) to stapio. This option has two
arguments, 'size' and 'N', and requires -o option.
- When the size of output file exceeds specified 'size'MB, staprun switches
output file to the next file. For this purpose, all output file has a serial
number as a suffix only when user specifies this option.
- Using this option in bulk mode, the output file name will be
'FILE_cpuX.SERIAL'.
- When the number of files exceeds specified N, staprun removes the oldest
file. This argument can be omitted.
|
|
|
|
|
|
|
| |
Add '-D'(daemon mode) option to staprun/stapio for daemon mode.
In this mode, stapio shows just its pid and detachs from console.
Since it has no stdio, this mode requires -o option. stapio will
exit when it receives SIGTERM or detects some error.
|
|
|
|
|
| |
Add an interface (eprintf) to output error messages to syslogd,
because staprun has no stderr after detaching from console.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The kernel lockdep checking found a possible deadlock if a forced rmmod
tried to destroy _stp_work_queue at the same time that the work queue
was unregistering tracepoints. An unlikely scenario, but still
possible.
Now the work queue will just issue a STP_REQUEST_EXIT down to usermode,
and usermode will echo back an STP_EXIT that triggers the actual probe
cleanup. This way the unregistrations are happening in exactly the same
context as the registrations were.
|
|
|
|
|
|
| |
Mark Wielaard, a dear friend of the departed, will be performing a song
and dance at the funeral services to commemorate the joyous times that
they had together.
|
|
|
|
|
|
| |
PR9788
* mainloop.c (cleanup_and_exit): Added workaround for bug 9788 by
fork'ing/exec'ing staprun.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
synchronization
|
| |
|
|
|
|
| |
sh -c if needed.
|
|
|
|
| |
Reported-By: Wade Mealing <wmealing@redhat.com>
|
|
|
|
| |
This provides sanity check of debuginfo file based on build-id. Many cases are considered, whether build-id exists in debuginfo file or not, whether module is loaded or not, whether build-id exists in runtime kernel/module. It will do work when LD >= 2.18 and kernel >=2.6.23, otherwise no check.
|
|
|
|
|
|
|
|
| |
2008-09-18 David Smith <dsmith@redhat.com>
PR 6903.
* staprun_funcs.c (check_permissions): Instead of checking the
effective uid, check the real uid for root permissions.
|
| |
|
|
|
|
| |
execute cmd string
|
|
|
|
| |
control
|
| |
|
|
|
|
|
| |
It was only barely beneficial anyway, since some crucial
capabilities were never permanently dropped.
|
| |
|
| |
|
|
|
|
| |
unwinder still disabled
|
| |
|
|
|
|
| |
implementation
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
= 0)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sym.h (_stp_module): Add text_size, lock, and unwind data
pointer.
* sym.c (_stp_find_module_by_addr): New function.
(_stp_kallsyms_lookup): Call _stp_find_module_by_addr().
(_stp_get_unwind_info): New.
* runtime.h: Move debug macros to debug.h. Include it.
* debug.h: New file.
* map.c: Update debug calls.
* map-gen.c: Update debug calls.
* pmap-gen.c: Update debug calls.
* mempool.c: New file.
* symbols.c: Use rwlocks. Use new dbug macros. Handle
unwind info if present.
* transport.c: Include mempool.c. Update dbug and kbug calls
to new macros.
* transport_msgs.h (_stp_command_name): Add
struct containing message names for debugging.
* control.c, procfs.c: Use new dbug macros. Use
new mempool functions.
|
|
|
|
| |
* staprun_funcs.c (check_path): Small security fix.
|
|
|
|
| |
Thanks to Jim for fixing typos and grammar.
|
| |
|