| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Cast time_t values to intmax_t and use %jd with printf.
|
|
|
|
|
|
|
|
|
| |
Remove non-working special case for pipe(2) from amd64-fbsd32.c and
i386-fbsd.c. Add pipe(2) to syscall table to decode it's pointer
argument properly and re-add special handling for pipe(2) return value
to print_syscall_ret().
PR: bin/120870
|
|
|
|
|
|
|
| |
Avoid sharing the file descriptor of the output file with traced
processes by setting the FD_CLOEXEC flag for the output file.
PR: bin/140493
|
|
|
|
|
|
| |
Add fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),
getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to
decode their arguments correctly.
|
|
|
|
|
|
|
|
| |
The devices that supported EVFILT_NETDEV kqueue filters were removed in
r195175. Remove all definitions, documentation, and usage.
The change of function signature for vlan_link_state() was not merged to
maintain the ABI.
|
|
|
|
|
|
|
|
| |
is nsyscalls.
PR: bin/134916
Submitted by: Steven Hartland <steven hartland multiplay co uk>
MFC after: 2 weeks
|
| |
|
| |
|
| |
|
|
|
|
| |
Reviewed by: alfred
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
been extensively tested. And the ELF64 stuff likely is not quite
right...
# There's a lot of cut-n-paste code here that could easily be
# refactored, at least for FreeBSD syscalls.
|
|
|
|
|
|
|
|
| |
so give an example that is more likely to work.
Stolen from the ktrace(1) manual page.
PR: 128222
Submitted by: Mateusz Guzik <mjguzik@gmail.com>
|
| |
|
| |
|
|
|
|
|
|
|
| |
additional work is needed to handle ABI-specific syscall argument parsing,
but this gets the basic tracing working.
MFC after: 1 week
|
|
|
|
| |
the problem. The correct fix will follow.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
were recently), a simple 'make cleandepend; make depend' is sufficient
to keep the tree buildable after a cvs update when doing incremental
builds.
However, kdump and truss use a script which searches for header files
that define ioctls, and generates C code that includes them. This
script will usually not need updating when a header file is removed,
so the normal dependency mechanism will not realize that it needs to
be re-run. One is therefore left with code that references dead files
but will only be removed by a full 'make clean', which defeats the
purpose of incremental builds.
To work around this, modify the cleandepend target in bsd.dep.mk to
also remove any files listed in a new variable named CLEANDEPFILES,
and modify kdump's and truss's Makefiles accordingly.
MFC after: 2 weeks
|
|
|
|
| |
change fixes output for break() on LP64 systems.
|
|
|
|
|
|
|
| |
on 64-bit platforms the result is more reliable. For example,
-1 was previously printed as 0xffffffff.
Approved by: re (kensmith)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
containing 64-bit arguments would have explicit padding.
On 64-bit platforms there was no padding, so the dummy
argument was not covering anything. On 32-bit platforms
with weak alignment (i.e. i386) the 64-bit argument did
not need to be aligned, so there too an aditional argument
was introduced. On 32-bit platforms with strong alignment
(i.e. PowerPC) the dummy argument in fact cover the padding.
By elimininating the dummy argument, 64-bit platforms now
have 1 argument less. This also applies to 32-bit platforms
with weak alignment. On PowerPC this doesn't matter, because
the padding is still there. We just don't "name" it.
Deal with those 3 cases.
Approved by: re (kensmith)
|
|
|
|
|
|
|
| |
Previously the offset argument to mmap(2) would be bogus as we
weren't reading it in.
Approved by: re (kensmith)
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix logic handling execve(). We will not be able to
obtain information otherwise.
- truss coredump [1].
- truss does not work against itself [2].
PR: bin/58970 [1], bin/45193 [2]
Submitted by: Howard Su
Approved by: re (kensmith)
|
| |
|
|
|
|
|
| |
Submitted by: Rui Paulo
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
yet another need of an available /proc/ mount.
Tested with: make universe
Submitted by: howardsu
Reviewed by: alfred
|
| |
|
| |
|
| |
|
|
|
|
| |
should happen with this change.
|
|
|
|
| |
Approved by: alfred
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rename, __getcwd, shutdown, getrlimit, setrlimit, _umtx_lock, _umtx_unlock,
pathconf, truncate, ftruncate, kill
- Decode more arguments of open, mprot, *stat, and fcntl.
- Convert all constant-macro and bitfield decoding to lookup tables; much
cleaner than previous code.
- Print the timestamp of process exit and signal reception when -d or -D are in
use
- Try six times with 1/2 second delay to debug the child
PR: bin/52190 (updated)
Submitted by: Dan Nelson <dnelson@allantgroup.com>
Approved by: alfred
|
|
|
|
| |
Approved by: alfred
|
|
|
|
|
| |
Initial work by: Orlando Bassotto < orlando at break net >
Modified by: grehan
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
type which is a String type that has no -s limitations applied to it.
Change most Strings in the code to Names and add a few extra syscalls,
namely munmap, read, rename and symlink. This was enough to facilitate
following file descriptor allocations in the code more easily and
getting a hint at what's being read/written from/to files. More
syscalls should really be added.
While here, fix an off-by-one bug in the buffer truncation code and
add a fflush so that truss's output reflects the syscall that the
program is stuck in.
Sponsored by: Sophos/Activestate
MFC after: 2 weeks
|
|
|
|
| |
types, so refactor the code here to grab them when length is zero.
|
|
|
|
|
|
|
|
| |
that have at least 3 characters.
MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.
|
|
|
|
| |
Approved by: re
|
| |
|
| |
|
|
|
|
|
|
| |
unable to open the /proc/pid/mem file. Otherwise doing a truss on
a nonexistant pid makes us return success even though no such process
exists.
|
|
|
|
| |
parts I'm touching to be as style(9) compliant as I can.
|
|
|
|
|
|
|
| |
being mishandled by using accumulation (into an uninitialized
variable) instead of direct assignment.
Reviewed by: scottl
|
|
|
|
| |
any fake value.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
also occupies a single slot. There's no need for any special handling
of Quads. While here, remove the silly make_quad() function. We have
the 2 longs on 32-bit machines already lined up in the argument array,
so we can fetch the Quad with a simple cast.
Before:
lseek(1,0x123456789,0xd0d0d0d0d0d0d0d0) = 4886718345 (0x123456789)
After:
lseek(1,0x123456789,SEEK_SET) = 4886718345 (0x123456789)
|
|
|
|
| |
Pointed out by: ru
|
| |
|
| |
|