Commit Graph

286 Commits

Author SHA1 Message Date
roy
3f011d8972 kdump: include netinet/in_var.h to access in_nbrinfo 2020-09-12 01:36:26 +00:00
mrg
d94d71e771 apply GCC_NO_ADDR_OF_PACKED_MEMBER 2020-09-07 00:26:23 +00:00
martin
a0926c8673 futexput: cast the mask to u_long (as the op already is) 2020-04-30 15:12:25 +00:00
thorpej
53a266e304 Decode futex op codes. 2020-04-30 12:17:01 +00:00
christos
beb931169b Understand xattr ktruser records 2020-04-20 00:35:41 +00:00
wiz
c1ffb7d597 Update usage for ioctlprint. 2020-04-03 06:13:07 +00:00
wiz
232ae71526 Increase column widths. Improve -l description wording to match ioctl(2).
Fix Xr.
2020-04-03 06:12:48 +00:00
christos
2433f541c2 remove debugging 2020-04-02 21:36:03 +00:00
christos
4ea9b97786 Add the ability to:
1. list all ioctls (-l)
2. print the internal definition symbolically
3. search by name

$ ioctlprint -f "%n %E %e\n" TIOCGETA
TIOCGETA _IOR('t', 19, struct termios) _IOR('t',0x13,0x2c)
2020-04-02 17:41:33 +00:00
christos
e30be371ac *** empty log message *** 2020-04-02 17:40:33 +00:00
wiz
8ec0a7f9b1 Remove superfluous Pp. Add comma in enumeration. Add RCS Id. 2020-04-02 08:38:22 +00:00
wiz
49e3bec9e0 Add comma in enumeration. 2020-04-02 08:35:12 +00:00
kamil
090d46375e Note ioctlprint(1) in SEE ALSO 2020-04-02 03:35:48 +00:00
kamil
bf4492493d Add ioctlprint - descriptive ioctl value printer
ioctlprint(1) is embedded in the kdump(1) program.
2020-04-02 03:32:46 +00:00
nonaka
889dcccd73 kdump(1): Symbolic printing for MALLOC_OPTIONS="U". 2019-07-23 01:54:51 +00:00
christos
41bb817512 You don't have to be _LP64 to run 32 bit binaries. You can be mips (64 bit
kernel/32 bit userland).
2019-05-06 19:20:13 +00:00
maxv
ba0aa175c4 Remove compat_osf1, discussed on tech-kern@. 2019-03-25 19:24:29 +00:00
martin
47b9b2b3a0 ibcs2 is gone 2018-12-29 18:09:32 +00:00
martin
b18e79c6bb compat/svr4* is gone - adapt 2018-12-19 16:27:26 +00:00
rmind
39013e66c1 NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
  a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
  previous versions.  Also, different serialisation format means NPF
  connection/config saving and loading is not compatible with the
  previous versions either.

Thanks to christos@ for extra testing.
2018-09-29 14:41:35 +00:00
christos
88efda49f6 remove extra quotes. 2018-06-12 15:41:35 +00:00
christos
bf830a4102 - instead of hard-coding the include paths in mkioctls, pass them in
from the Makefile so that they are consistent.
- do more sed so that destination paths are not hard-coded inside #include
  statements.
2018-06-12 15:40:39 +00:00
mrg
446e08b1e8 just include <sys/mutex.h> for mkioctls. this works fine for me
for several platforms and fixes the clang build.
2018-06-02 20:07:15 +00:00
martin
b30263c2e7 Use proper forward declaration for kmutex_t. This makes MKDTRACE=no builds
work again.
2018-05-29 14:29:53 +00:00
martin
351fd74422 Ooops, backout previous - it was an update build artifact (or something) 2018-05-29 13:10:28 +00:00
martin
2e95568bb1 Backout previous: "typedef void *kmutex_t;
is incompatible with our kmutex_t and breaks the build. ZFS will need
to find a better way to work around this.
2018-05-29 11:18:50 +00:00
chs
ba2539a980 merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().
2018-05-28 21:04:59 +00:00
christos
58cf2108e5 print the mprotect perm argument symbolically. 2018-04-29 18:00:31 +00:00
christos
a802845e62 - fix "obsolete" skipping to handle obsolete entries that contain other
variables
- skip files particular to other xserver versions than ours.

XXX: How does this build in the build farm?
2017-11-05 22:52:12 +00:00
christos
d4d3ff8a98 deal with the stdbool.h mess defining bool in <net/if.h> and <net/route.h>
and then xf86Opt.h wanting to define a struct field called bool.
2017-11-05 17:44:28 +00:00
wiz
2f78e4cca5 Sync usage with man page. 2017-09-10 10:09:40 +00:00
wiz
928632ef48 Sort flags in SYNOPSIS. Remove unnecessary .Tn. Remove trailing whitespace. 2017-09-10 10:09:34 +00:00
uwe
ed98c1eb1b Print negative time offsets correctly. Provide an exegetical quote
from riastradh@, slightly edited to fit the metre.
2017-09-08 21:45:08 +00:00
uwe
de9da0ab97 Option -E to display elapsed timestamps (time since beginning of trace).
Option name from FreeBSD.  While here, make it possible to use a
combination of -T -E and -R to display timestamps in several formats.
Idea also from FreeBSD.
2017-09-08 21:09:29 +00:00
uwe
fc62aa370e Drop support for KTRFACv0 (NetBSD 3) and KTRFACv1 (NetBSD 5).
Note that on 32-bit platforms it probably never worked anyway because
header size changed from v1 to v2 when time_t became 64 bit.

ok christos@
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
CVS:
CVS: Please evaluate your changes and consider the following.
CVS: Abort checkin if you answer no.
CVS: => For all changes:
CVS: Do the changed files compile?
CVS: Has the change been tested?
CVS: => If you are not completely familiar with the changed components:
CVS: Has the change been posted for review?
CVS: Have you allowed enough time for feedback?
CVS: => If the change is major:
CVS: => If the change adds files to, or removes files from $DESTDIR:
CVS: => If you are changing a library or kernel interface:
CVS: Have you successfully run "./build.sh release"?
2017-09-08 20:36:56 +00:00
sevan
39bbc68a3b Drop main() prototype. 2016-09-05 00:40:28 +00:00
mrg
4ffdae42fa don't hide _DEV_IC_BT8XX_H_ inside DTRACE. 2016-08-18 08:02:58 +00:00
christos
71229fdd60 Symbolic printing for mmap 2016-06-01 00:47:16 +00:00
knakahara
11bfe22fab ' != " so make the condition actually work. (same as r1.30) 2016-04-01 07:23:15 +00:00
alnsn
38047b2736 Don't enter infinite loop on big ktr_len values.
Fixes PR 49460.
2016-03-27 21:51:20 +00:00
joerg
bb694db2f5 METEORGSIGNAL and METEORSFMT overlap with dtrace, prefer the latter. 2016-02-06 20:21:56 +00:00
christos
ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
martin
c7acead6b8 Cast register_t to unsigned long before printf'ing it with %lx. 2016-01-04 08:24:42 +00:00
christos
149dca8a74 be a bit smarter about fcntl 2016-01-03 22:05:18 +00:00
joerg
772e6dc22c ' != " so make the condition actually work. 2015-11-02 12:06:33 +00:00
christos
354d41acbc simplify 2015-10-22 00:29:58 +00:00
christos
20c3ea3d63 Kill sys/modctl.h which we don't need. 2015-09-27 03:37:16 +00:00
christos
f72496b8cd Add dtrace ioctls 2015-09-26 03:31:11 +00:00
christos
afe59ce9dc more stray \n 2015-06-17 00:01:59 +00:00
christos
ff53269704 fix some error handling. 2015-06-16 22:54:10 +00:00