ctf: Import ctf.h from OpenBSDUse it instead of the existing ctf.h from OpenSolaris. This makes iteasier to use CTF in the core kernel, and to extend the CTF format tosupport wider type IDs.Th
ctf: Import ctf.h from OpenBSDUse it instead of the existing ctf.h from OpenSolaris. This makes iteasier to use CTF in the core kernel, and to extend the CTF format tosupport wider type IDs.The imported ctf.h is modified to depend only on _types.h, and also toprovide macros which use the "parent" bit of a type ID to refer to typesin a parent CTF container.No functional change intended.Approved by: re (gjb)Reviewed by: Domagoj Stolfa, emasteSponsored by: The FreeBSD Foundation(cherry picked from commit 2d5d2a986ce1a93b8567dbdf3f80bc2b545d6998)(cherry picked from commit 3681c4f065f1028ff84b654cfbfb238f2723b78c)
show more ...
pkgbase: Put dtrace in its own packageWhile dtrace is usefull some people might not want it.Differential Revision: https://reviews.freebsd.org/D30752Sponsored by: Diablotin Systems
libdtrace: Stop relying on lex compatibilityIt does not appear to be required, and as of commit 6b7e592c215f("lex: Do not let input() return 0 when end-of-file is reached") itcauses input to retu
libdtrace: Stop relying on lex compatibilityIt does not appear to be required, and as of commit 6b7e592c215f("lex: Do not let input() return 0 when end-of-file is reached") itcauses input to return 0 instead of EOF when end-of-input is reached.PR: 253440Sponsored by: The FreeBSD Foundation(cherry picked from commit 8ba333e02eaa59337a4e1d5534d4e894344c8226)
Install dtrace.h and dependenciesThis makes the minimum amount of changes to allow inclusion of dtrace.hwithout all the solaris compatibility headers. Installing dtrace.h allowscompiling consumer
Install dtrace.h and dependenciesThis makes the minimum amount of changes to allow inclusion of dtrace.hwithout all the solaris compatibility headers. Installing dtrace.h allowscompiling consumers of libdtrace (e.g. https://github.com/tmetsch/python-dtrace)without requiring a copy of the source tree.For python-dtrace I worked around this in https://github.com/tmetsch/python-dtrace/commit/58019c9a12022203a9ffda286dd8b41f1a5ace42but being able to build the library without installed sources would beextremely useful.Reviewed By: gnnDifferential Revision: https://reviews.freebsd.org/D27884
Remove -I flag for include path that doesn't existFound this while trying to get macOS bootstrap to work again after OpenZFS merge.Reviewed By: #zfs, freqlabsDifferential Revision: https://revie
Remove -I flag for include path that doesn't existFound this while trying to get macOS bootstrap to work again after OpenZFS merge.Reviewed By: #zfs, freqlabsDifferential Revision: https://reviews.freebsd.org/D26192
Correct the D definition for EINTEGRITY.MFC after: 1 weekSponsored by: NetApp, Inc.Sponsored by: Klara, Inc.
Merge OpenZFS support in to HEAD.The primary benefit is maintaining a completely sharedcode base with the community allowing FreeBSD to receivenew features sooner and with less effort.I would a
Merge OpenZFS support in to HEAD.The primary benefit is maintaining a completely sharedcode base with the community allowing FreeBSD to receivenew features sooner and with less effort.I would advise against doing 'zpool upgrade'or creating indispensable pools using newfeatures until this change has had a month+to soak.Work on merging FreeBSD support in to what wasat the time "ZFS on Linux" began in August 2018.I first publicly proposed transitioning FreeBSDto (new) OpenZFS on December 18th, 2018. FreeBSDsupport in OpenZFS was finally completed in December2019. A CFT for downstreaming OpenZFS support into FreeBSD was first issued on July 8th. All issuesthat were reported have been addressed or, fora couple of less critical matters there arepull requests in progress with OpenZFS. iXsystemshas tested and dogfooded extensively internally.The TrueNAS 12 release is based on OpenZFS withsome additional features that have not yet madeit upstream.Improvements include: project quotas, encrypted datasets, allocation classes, vectorized raidz, vectorized checksums, various command line improvements, zstd compression.Thanks to those who have helped along the way:Ryan Moeller, Allan Jude, Zack Welch, and manyothers.Sponsored by: iXsystems, Inc.Differential Revision: https://reviews.freebsd.org/D25872
- Cleanups related to sparc64 removal.- Remove remains of sparc64 files.Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D25831
sack_newdata and snd_recover hold the same value. Therefore, use onlya single instance: use snd_recover also where sack_newdata was used.Submitted by: Richard ScheffeneggerDifferential Revision:
sack_newdata and snd_recover hold the same value. Therefore, use onlya single instance: use snd_recover also where sack_newdata was used.Submitted by: Richard ScheffeneggerDifferential Revision: https://reviews.freebsd.org/D18811
Create new EINTEGRITY error with message "Integrity check failed".An integrity check such as a check-hash or a cross-correlation failed.The integrity error falls between EINVAL that identifies err
Create new EINTEGRITY error with message "Integrity check failed".An integrity check such as a check-hash or a cross-correlation failed.The integrity error falls between EINVAL that identifies errors inparameters to a system call and EIO that identifies errors with theunderlying storage media. EINTEGRITY is typically raised by intermediatekernel layers such as a filesystem or an in-kernel GEOM subsystem whenthey detect inconsistencies. Uses include allowing the mount(8) commandto return a different exit value to automate the running of fsck(8)during a system boot.These changes make no use of the new error, they just add it. Latercommits will be made for the use of the new error number and it willbe added to additional manual pages as appropriate.Reviewed by: gnn, dim, brueffer, impDiscussed with: kib, cem, emaste, ed, jillesDifferential Revision: https://reviews.freebsd.org/D18765
Add support for send, receive and state-change DTrace providers forSCTP. They are based on what is specified in the Solaris DTrace manualfor Solaris 11.4.Reviewed by: 0mp, dteske, markjRelnotes
Add support for send, receive and state-change DTrace providers forSCTP. They are based on what is specified in the Solaris DTrace manualfor Solaris 11.4.Reviewed by: 0mp, dteske, markjRelnotes: yesDifferential Revision: https://reviews.freebsd.org/D16839
Add a dtrace provider for UDP-Lite.The dtrace provider for UDP-Lite is modeled after the UDP provider.This fixes the bug that UDP-Lite packets were triggering the UDPprovider.Thanks to dteske@ f
Add a dtrace provider for UDP-Lite.The dtrace provider for UDP-Lite is modeled after the UDP provider.This fixes the bug that UDP-Lite packets were triggering the UDPprovider.Thanks to dteske@ for providing the dwatch module.Reviewed by: dteske@, markj@, rrs@Relnotes: yesDifferential Revision: https://reviews.freebsd.org/D16377
Add support for TCP state names used by Solaris.For compatibility, add the TCP state names used by Solarisand given in the Dtrace Guide available athttps://docs.oracle.com/cd/E37838_01/html/E6103
Add support for TCP state names used by Solaris.For compatibility, add the TCP state names used by Solarisand given in the Dtrace Guide available athttps://docs.oracle.com/cd/E37838_01/html/E61035/glhgu.html#OSDTGglhmvReviewed by: markj@Sponsored by: Netflix, Inc.Differential Revision: https://reviews.freebsd.org/D16269
The IP, TCP, and UDP provider report IP addresses as strings.In some cases, the required information is not available and theUDP provider reported an empty string in this case and the IPand TCP pr
The IP, TCP, and UDP provider report IP addresses as strings.In some cases, the required information is not available and theUDP provider reported an empty string in this case and the IPand TCP provider reported a NULL pointer.This patch changes the value provided in this case to the string"<unknown>". This make the behaviour consistent and in-line withthe behaviour of Solaris.Reviewed by: markj@, dteske@, gnn@Differential Revision: https://reviews.freebsd.org/D15855
Unbreak dtrace runtime for udp after svn r334719 SO_REUSEPORT commit.Submitted by: Johannes Lundberg <[email protected]>Sponsored by: Limeligght Networks
Load balance sockets with new SO_REUSEPORT_LB option.This patch adds a new socket option, SO_REUSEPORT_LB, which allow multipleprograms or threads to bind to the same port and incoming connections
Load balance sockets with new SO_REUSEPORT_LB option.This patch adds a new socket option, SO_REUSEPORT_LB, which allow multipleprograms or threads to bind to the same port and incoming connections will beload balanced using a hash function.Most of the code was copied from a similar patch for DragonflyBSD.However, in DragonflyBSD, load balancing is a global on/off setting and can notbe set per socket. This patch allows for simultaneous use of both the currentSO_REUSEPORT and the new SO_REUSEPORT_LB options on the same system.Required changes to structures:Globally change so_options from 16 to 32 bit value to allow for more options.Add hashtable in pcbinfo to hold all SO_REUSEPORT_LB sockets.Limitations:As DragonflyBSD, a load balance group is limited to 256 pcbs (256 programs orthreads sharing the same socket).This is a substantially different contribution as compared to its originalincarnation at svn r332894 and reverted at svn r332967. Thanks to rwatson@for the substantive feedback that is included in this commit.Submitted by: Johannes Lundberg <[email protected]>Obtained from: DragonflyBSDRelnotes: YesSponsored by: Limelight NetworksDifferential Revision: https://reviews.freebsd.org/D11003
Revert r332894 at the request of the submitter.Submitted by: Johannes Lundberg <johalun0_gmail.com>Sponsored by: Limelight Networks
Load balance sockets with new SO_REUSEPORT_LB optionThis patch adds a new socket option, SO_REUSEPORT_LB, which allow multipleprograms or threads to bind to the same port and incoming connections
Load balance sockets with new SO_REUSEPORT_LB optionThis patch adds a new socket option, SO_REUSEPORT_LB, which allow multipleprograms or threads to bind to the same port and incoming connections will beload balanced using a hash function.Most of the code was copied from a similar patch for DragonflyBSD.However, in DragonflyBSD, load balancing is a global on/off setting and can notbe set per socket. This patch allows for simultaneous use of both the currentSO_REUSEPORT and the new SO_REUSEPORT_LB options on the same system.Required changes to structuresGlobally change so_options from 16 to 32 bit value to allow for more options.Add hashtable in pcbinfo to hold all SO_REUSEPORT_LB sockets.LimitationsAs DragonflyBSD, a load balance group is limited to 256 pcbs(256 programs or threads sharing the same socket).Submitted by: Johannes Lundberg <[email protected]>Sponsored by: Limelight NetworksDifferential Revision: https://reviews.freebsd.org/D11003
Consistent casing for fallback SIGCHLD (s/Unknown/unknown/)
Updates and enhancements to signal.d to aid DTrace scripting+ Add missing signals SIGTHR (32) and SIGLIBRT (33)+ Add inline for converting SIG* int to string+ Add inline for converting CLD_* int
Updates and enhancements to signal.d to aid DTrace scripting+ Add missing signals SIGTHR (32) and SIGLIBRT (33)+ Add inline for converting SIG* int to string+ Add inline for converting CLD_* int to stringReviewed by: markjSponsored by: Smule, Inc.Differential Revision: https://reviews.freebsd.org/D14497
Updates and enhancements to io.d to aid DTrace scripting+ Add dev_type do devinfo_t+ Add b_cmd to bufinfo_t+ Add constants for BIO_* and DEVSTAT_TYPE_*+ Add inline for converting BIO_* int to st
Updates and enhancements to io.d to aid DTrace scripting+ Add dev_type do devinfo_t+ Add b_cmd to bufinfo_t+ Add constants for BIO_* and DEVSTAT_TYPE_*+ Add inline for converting BIO_* int to string+ Add inline for converting DEVSTAT_TYPE_* int to string+ Add mask for dev_type & DEVSTAT_TYPE_MASK to string+ Add mask for dev_type & DEVSTAT_TYPE_IF_MASK to stringReviewed by: markjSponsored by: Smule, Inc.Differential Revision: https://reviews.freebsd.org/D14396
Add inline to errno.d for translating int to stringGives DTrace scripts strerror(3) functionality.Reviewed by: markjSponsored by: Smule, Inc.Differential Revision: https://reviews.freebsd.org/D
Add inline to errno.d for translating int to stringGives DTrace scripts strerror(3) functionality.Reviewed by: markjSponsored by: Smule, Inc.Differential Revision: https://reviews.freebsd.org/D14386
Add the following errno definitions to /usr/lib/dtrace/errno.dENOTCAPABLE (93)ECAPMODE (94)ENOTRECOVERABLE (95)EOWNERDEAD (96)ERELOOKUP (-5)and update ELAST (92 -> 96)Reviewed by: markjSpo
Add the following errno definitions to /usr/lib/dtrace/errno.dENOTCAPABLE (93)ECAPMODE (94)ENOTRECOVERABLE (95)EOWNERDEAD (96)ERELOOKUP (-5)and update ELAST (92 -> 96)Reviewed by: markjSponsored by: Smule, Inc.Differential Revision: https://reviews.freebsd.org/D14340
Use tabs in io.d, fix alignment issues, remove extraneous newlines
Remove uneeded parentheses.MFC after: 1 week
123