pgoyette
f39adfe33e
Fix string constant so it compiles again.
2011-04-10 16:06:59 +00:00
christos
63ab96a1bd
we don't have access to si_lid anymore.
2011-04-10 14:38:19 +00:00
christos
6a8b690e91
print detailed info about other SI_ codes.
2011-04-10 00:05:51 +00:00
christos
f64bac8a30
format SI_QUEUE properly.
2011-01-10 05:15:17 +00:00
chs
692e1d3085
fix emul state tracking for exit vs exit_group on linux.
2010-08-08 18:31:50 +00:00
christos
1841106bd7
Allow kdump to be used as an ioctl decoder if invoked as ioctlname.
2009-04-13 14:39:23 +00:00
lukem
e72a1356ea
fix sign-compare issues
2009-04-12 11:23:12 +00:00
christos
379d921ced
resolve conflict.
2009-01-11 03:05:41 +00:00
christos
50728e7823
merge christos-time_t
2009-01-11 02:57:17 +00:00
njoly
dc163d1a0e
Add minimal SI_LWP support.
2009-01-02 13:57:23 +00:00
christos
dcfa7f5149
handle SI_NOINFO
2008-09-12 20:46:42 +00:00
lukem
98e5374ccb
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
njoly
996306675b
Output linux ptrace request name for processes under compat linux32
...
emulation too.
2008-06-18 23:04:52 +00:00
njoly
2222627b2d
Add a few NULL entries to linux_ptrace_ops[], to make PTRACE_SYSCALL
...
string appear at the expected indice 24.
2008-02-29 22:45:36 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
dsl
bffcdd2c73
Apply the -N (show syscalls by number) to the system return trace.
...
Change 'USER' to 'MISC' since they get used for misc kernel traces as well.
2007-11-07 22:22:31 +00:00
agc
babe0fc9d8
Apply fix from PR 35283 from David Holland:
...
ensure that kdump properly escapes newlines in argv
2007-08-08 20:28:11 +00:00
dsl
5a557927e4
When displaying 'KTR_USER' data, exclude the header from the length, don't
...
enclose in ", and output using the hexdump function if -x (or -X) given.
2007-06-01 19:05:50 +00:00
dogcow
2fa8120f7e
fallout from si_sigval -> si_value
2007-05-21 19:29:44 +00:00
njoly
f7ed257809
When decoding ioctl commands type; do not output non printable
...
characters, but the corresponding hexadecimal values.
ok by christos
2007-03-19 18:51:09 +00:00
ad
401499f30e
Sync with kernel changes introduced by merging the newlock2 branch.
2007-02-09 22:08:48 +00:00
chs
aaf6e758a0
skip over the "self" sa when printing upcalls.
2007-01-28 21:29:59 +00:00
mrg
dbdbfa2c22
since register_t is sometimes unsigned, cast to (long) to check >= 0.
2006-10-23 04:13:51 +00:00
manu
8a1037a46b
Add a -t+S flag to ktrace for tracing activity related to sysctl. MIB
...
names will be displayed, with data readen and written as well.
2006-09-23 22:01:04 +00:00
christos
c721423ddc
Use the standard macros to compute the ioctl length instead of rolling our
...
own. Thanks to Chuck for noticing.
2006-04-05 00:50:59 +00:00
christos
ef5477c67d
Add PT_SYSCALL
2006-03-05 17:03:19 +00:00
christos
4f17ba81bc
Learn about v1 records and sa upcalls.
2005-12-11 11:31:34 +00:00
christos
64639a3896
Print symbolic signal names for killpg *sigaction* and *sigvec*.
2005-10-18 01:49:18 +00:00
christos
58fc70c4d6
WARNS=3
2005-07-16 22:00:01 +00:00
lukem
a3b235bbd2
appease gcc -Wuninitialized
2005-06-02 01:53:01 +00:00
dsl
5ac85b92f3
Ensure a non-zero 'word_size' is passed to hexdump_buf for unknown
...
trace types.
Also fix an incorrect use of the global word_size variable
2004-08-23 20:49:28 +00:00
matt
10efbfd5c3
Allow kdump to print the names for machine dependent ptrace ops.
...
(This requires <machine/ptrace.h> to define PT_MACHDEP_STRINGS
which corresponds to the machdep ops).
2004-05-06 22:51:38 +00:00
dsl
c395262f1f
Suppress duplicate lines when hexdumping data
2004-03-07 17:20:53 +00:00
enami
3f98504ee8
Fix whitespace usage and remove unnecessary semi-colon.
2004-02-27 23:06:02 +00:00
enami
6a6547d143
We can't access array[sizeof(array) / sizeof(array[0])].
2004-02-27 22:48:56 +00:00
enami
35c4c5bed3
Calculate the width again if we start newline at tab character, since
...
start column changes.
2004-02-27 22:44:38 +00:00
christos
301d580988
Fix reversed logic (decimal argument passed in output_long, where it expects
...
hex). Change tests to <= 9 to a small(v) macro, so that negative numbers fail
too consistently.
2004-02-02 06:27:56 +00:00
mrg
7ca9a9ac30
redo the former in light of making the kernel output normal 64 bit
...
records for 32 bit & 64 bit processes. we still make some adjustments
when dealing with 32-bit processes, but largely things are handled the
same now. make the code to match "netbsd32_<syscall>" in place of
plain "<syscall>" more general.
2004-01-15 14:42:09 +00:00
mrg
2ccd4840f5
- add a new flags field to the emulation vector, with one user so far
...
EMUL_FLAG_NETBSD32. set EMUL_FLAG_NETBSD32 in any 32 bit on 64 bit
kernel emulation layers.
- if EMUL_FLAG_NETBSD32 is set, calculate the proper argument count.
(XXX: this should use register32_t, but that's not visible to all
builders of kdump...)
now netbsd32_ioctl(2) actually reports sane values, and other arguments
are mostly correctly printed (there are still some signed extension
issues with 32 bit numbers being displayed as "0xffffffff8xxxxxxx".)
2004-01-12 13:39:56 +00:00
manu
bb938d861a
Fix cross-build problem on sparc caused by a cast size_t -> int
2003-11-24 22:12:14 +00:00
manu
23f30b17cb
Enable tracing of out of line data sent with Mach messages
2003-11-24 16:53:38 +00:00
manu
32f7275395
For Mach messages, always display the message Id in decimal. The information
...
is indeed in the message, but in hex. It's a bit inconvenient.
2003-11-18 14:21:59 +00:00
dsl
3433691e60
Stop core dump if an ioctl trace has fewer than expected arguments.
...
- Check names of system calls (for special treatment) because emulations
might use different numbers.
- Report an error if arguments to -p or -m non-numeric.
- Just take last of -x and -Xvalue, stop -X0x80000000 being valid (core dumps).
- Keep 'last used' emulation_ctx at top of list, create on lookup (usually
EMUL anyway), delete when exit called (doesn't return).
- Slightly improve hack to get correct system call name in execve return
when emulation has changed.
- Rename global variables 'current'/'previous' to 'cur_emul'/'prev_emul'.
(TODO: save system call type (and maybe an argument) per pid so GIO trace
format can depend on the actual system call.)
Fixes part of PR sparc64/23473 - but system call arguments will still not be
displayed correctly.
2003-11-18 13:21:53 +00:00
manu
e59cd6c2b4
Following mycroft's comment, restore -x to its original behavior: without
...
an argument. Introduce -Xsize to do the job. -x is equivalent to -X1
Of course -x and -Xsize are mutually exclusive.
2003-11-16 21:52:33 +00:00
dsl
826153cc5c
Validate the numeric argument to -x, support -x1|2|4|8|16.
...
Produce sensible output on little-endian systems.
2003-11-16 14:51:26 +00:00
manu
91d6d92c2e
Add an argument to the -x flag to choose between byte per byte display
...
and word per word display in hex dumps.
-x1 gives you byte per byte, -x4 word per word, and -x defaults to -x1
2003-11-16 10:13:48 +00:00
manu
a0399121cc
kdump now displays Mach services names itself, including a table of
...
id/names in sys/compat/mach/mach_services_names.c
Remove ports and flags displays, the information is already in the message.
2003-11-15 23:10:31 +00:00
matt
fe365eaf9d
Fix printf botch
2003-09-20 22:24:00 +00:00
christos
73bb764e22
improve formatting in the non-siginfo case, by printing the code. This is
...
for compatibility with the old ktrace files.
2003-09-20 00:17:44 +00:00
christos
b612016506
Print siginfo_t information when available.
2003-09-19 22:49:02 +00:00