FreeBSD src
Go to file
Andrew Gallatin da81cc6035 dtrace: conditionally load the systrace_linux klds when loading dtrace.
When dtrace starts, it tries to detect if the dtrace klds are loaded,
and if not, it loads them by loading the dtraceall kld. This module
depends on most dtrace modules, including systrace for the native
freebsd and freebsd32 ABIs. However, it does not depend on the
systrace_linux klds, as they in turn depend on the linux ABI klds, and
we don't want to load an ABI module that the user has not explicitly
requested. This can leave a naive user in a state where they think all
syscall providers have been loaded, yet linux ABI syscalls are
"invisible" to dtrace.

To fix this, check to see if the linux ABI modules are loaded. If they
are, then load their systrace klds.

Reviewed by: markj, (emaste & jhb, earlier versions)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D37986
2023-01-23 20:36:24 -05:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github .github: Switch to v3 of actions/checkout. 2022-12-20 16:27:17 -08:00
bin df: Return non-zero status on write failure. 2023-01-17 16:25:28 +01:00
cddl dtrace: conditionally load the systrace_linux klds when loading dtrace. 2023-01-23 20:36:24 -05:00
contrib libcxx: Implement atomic::wait/notify using _umtx_op(2) for 64bit arches 2023-01-24 02:52:42 +02:00
crypto openssh: remove mention of now-unused svn:keywords 2023-01-16 10:56:27 -05:00
etc Minor changes to force commit these files so new freebsd*.cf files are 2023-01-17 06:49:49 +00:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-13 21:33:40 -05:00
include byteswap.h: Add a glibc/linux compatible byteswap.h 2023-01-20 16:37:39 -07:00
kerberos5 kerberos5: retire now-unused MIPS support 2022-11-02 13:16:18 -04:00
lib MFV: xz 5.4.1. 2023-01-22 16:50:36 -08:00
libexec rc.initdiskless: Fix a typo in a comment 2023-01-19 14:17:37 +01:00
release pkgbase: share rules for packages without pkgdeps 2023-01-09 10:42:59 -05:00
rescue retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
sbin Revert "ifconfig: abort if loading a module fails other than for ENOENT" 2023-01-20 10:17:21 -07:00
secure libcrypto padlock.so: Link with -z noexecstack for ld.bfd. 2022-11-22 08:37:04 -08:00
share ddb: have 'reset' command use normal reboot path 2023-01-23 15:10:24 -04:00
stand stand: dev can't be NULL in default_prasedev 2023-01-13 15:54:44 -07:00
sys netmap: Try to count packet drops in emulated mode 2023-01-23 14:42:41 -05:00
targets retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
tests netpfil tests: improve pfsync_defer.py 2023-01-22 04:26:32 +01:00
tools stress2: Added a regression test 2023-01-22 10:35:28 +01:00
usr.bin vmstat: fix overflow of interrupt name buffer 2023-01-20 04:51:13 +02:00
usr.sbin bhyve: Fix a buffer overread in the PCI hda device model. 2023-01-20 09:58:38 -08:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint
.cirrus.yml Cirrus-CI: add gpart show to setup script 2023-01-03 11:06:16 -05:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore gitignore: whack dead architectures 2022-11-23 01:18:03 +00:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS
MAINTAINERS Remove myself from bhyve maintenance; ENOTIME. 2021-11-19 07:09:30 +10:00
Makefile Shell-escape assignments to PATH in the top-level makefiles 2023-01-20 10:47:17 +00:00
Makefile.inc1 Shell-escape assignments to PATH in the top-level makefiles 2023-01-20 10:47:17 +00:00
Makefile.libcompat libcompat: avoid installing include files twice 2022-11-16 19:15:20 -05:00
Makefile.sys.inc
ObsoleteFiles.inc Missed skey(4), a copy of opie(4). 2023-01-06 11:12:40 +01:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES RELNOTES: Add mention of growfs addition of swap partition. 2022-12-13 08:54:43 -06:00
UPDATING UPDATING: fix typo 2023-01-23 17:09:08 -07:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.