aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/dtrace/dtraceall
Commit message (Collapse)AuthorAgeFilesLines
* dtraceall: Enable kinst for aarch64 and riscv as wellChristos Margiolis2025-09-161-3/+3
| | | | | | | | | aarch64 and riscv are supported since 2023 so it should be safe to enable it by default. MFC after: 2 weeks Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D52575
* dtraceall: Make dtaudit a dependencyMark Johnston2024-08-121-0/+3
| | | | | | | Reported by: tsoome Reviewed by: tsoome Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D46274
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* sys: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* sys: Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* dtrace: whack __mips__ from dtraceallMateusz Guzik2023-03-011-2/+1
| | | | | | Note contrib code is not modified. Sponsored by: Rubicon Communications, LLC ("Netgate")
* dtrace: Load fasttrap on powerpc with dtraceallJustin Hibbits2022-10-301-1/+1
| | | | | | | This was missing from the original port of DTrace to powerpc 10 years ago. MFC after: 3 weeks
* dtraceall: Automatically load kinst.ko on amd64Mark Johnston2022-10-111-0/+3
| | | | MFC after: 3 months
* Move most of the contents of opt_compat.h to opt_global.h.Brooks Davis2018-04-062-9/+1
| | | | | | | | | | | | | | | | | | | | | opt_compat.h is mentioned in nearly 180 files. In-progress network driver compabibility improvements may add over 100 more so this is closer to "just about everywhere" than "only some files" per the guidance in sys/conf/options. Keep COMPAT_LINUX32 in opt_compat.h as it is confined to a subset of sys/compat/linux/*.c. A fake _COMPAT_LINUX option ensure opt_compat.h is created on all architectures. Move COMPAT_LINUXKPI to opt_dontuse.h as it is only used to control the set of compiled files. Reviewed by: kib, cem, jhb, jtl Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14941 Notes: svn path=/head/; revision=332122
* sys: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326272
* Enable dtrace support for mips64 and the ERL kernel configKurt Lidl2017-09-062-2/+3
| | | | | | | | | | | | | | Turn on the required options in the ERL config file, and ensure that the fbt module is listed as a dependency for mips in the modules/dtrace/dtraceall/dtraceall.c file. PR: 220346 Reviewed by: gnn, markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D12227 Notes: svn path=/head/; revision=323206
* o Replace __riscv__ with __riscvRuslan Bukin2017-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Replace __riscv64 with (__riscv && __riscv_xlen == 64) This is required to support new GCC 7.1 compiler. This is compatible with current GCC 6.1 compiler. RISC-V is extensible ISA and the idea here is to have built-in define per each extension, so together with __riscv we will have some subset of these as well (depending on -march string passed to compiler): __riscv_compressed __riscv_atomic __riscv_mul __riscv_div __riscv_muldiv __riscv_fdiv __riscv_fsqrt __riscv_float_abi_soft __riscv_float_abi_single __riscv_float_abi_double __riscv_cmodel_medlow __riscv_cmodel_medany __riscv_cmodel_pic __riscv_xlen Reviewed by: ngie Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D11901 Notes: svn path=/head/; revision=322168
* sys/modules: normalize .CURDIR-relative paths to SRCTOPEnji Cooper2017-03-041-1/+1
| | | | | | | | | | | This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314651
* Include FBT to modules build on RISC-V.Ruslan Bukin2016-07-291-1/+1
| | | | Notes: svn path=/head/; revision=303480
* Implement the lockstat provider using SDT(9) instead of the custom providerMark Johnston2015-07-191-1/+0
| | | | | | | | | | | in lockstat.ko. This means that lockstat probes now have typed arguments and will utilize SDT probe hot-patching support when it arrives. Reviewed by: gnn Differential Revision: https://reviews.freebsd.org/D2993 Notes: svn path=/head/; revision=285703
* First cut of DTrace for AArch64.Ruslan Bukin2015-07-011-1/+2
| | | | | | | | | Reviewed by: andrew, emaste Sponsored by: ARM Limited Differential Revision: https://reviews.freebsd.org/D2738 Notes: svn path=/head/; revision=285009
* Set a dependancy on fbt module for ARM.Ruslan Bukin2015-03-061-1/+1
| | | | Notes: svn path=/head/; revision=279692
* Submitted by: rick MaclemJulian Elischer2014-12-271-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=276304
* Remove the old NFS client and server from head,Rick Macklem2014-12-231-3/+0
| | | | | | | | | | | | | | | which means that the NFSCLIENT and NFSSERVER kernel options will no longer work. This commit only removes the kernel components. Removal of unused code in the user utilities will be done later. This commit does not include an addition to UPDATING, but that will be committed in a few minutes. Discussed on: freebsd-fs Notes: svn path=/head/; revision=276096
* remove opensolaris cyclic code, replace with high-precision calloutsAndriy Gapon2014-12-071-1/+0
| | | | | | | | | | | | | | In the old days callout(9) had 1 tick precision and that was inadequate for some uses, e.g. DTrace profile module, so we had to emulate cyclic API and behavior. Now we can directly use callout(9) in the very few places where cyclic was used. Differential Revision: https://reviews.freebsd.org/D1161 Reviewed by: gnn, jhb, markj MFC after: 2 weeks Notes: svn path=/head/; revision=275576
* Allow loading of dtraceall without nfscl if what you really wnat is nfsclientJulian Elischer2014-10-281-0/+2
| | | | | | | | Obtained from: Panzura tree MFC after: 1 week Notes: svn path=/head/; revision=273762
* Use SYSDIR to reference to the top of the sys hierarchy. Define SYSDIRMarcel Moolenaar2014-03-061-2/+4
| | | | | | | | | | relative to .CURDIR if not already defined. This makes the makefiles more readable but also more re-usable and adaptable. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262818
* Redefine the io provider using the SDT(9) macros instead of doing everythingMark Johnston2013-10-241-1/+0
| | | | | | | | | manually. This change has no functional impact. Discussed with: gnn Notes: svn path=/head/; revision=257037
* opensolaris code: translate INVARIANTS to DEBUG and ZFS_DEBUGAndriy Gapon2013-08-061-0/+2
| | | | | | | | | | | | | | | | | | | Do this by forcing inclusion of sys/cddl/compat/opensolaris/sys/debug_compat.h via -include option into all source files from OpenSolaris. Note that this -include option must always be after -include opt_global.h. Additionally, remove forced definition of DEBUG for some modules and fix their build without DEBUG. Also, meaning of DEBUG was overloaded to enable WITNESS support for some OpenSolaris (primarily ZFS) locks. Now this overloading is removed and that use of DEBUG is replaced with a new option OPENSOLARIS_WITNESS. MFC after: 17 days Notes: svn path=/head/; revision=253996
* Add FBT for PowerPC DTrace. Also, clean up the DTrace assembly code,Justin Hibbits2013-03-181-1/+3
| | | | | | | | | | | | | | much of which is not necessary for PowerPC. The FBT module can likely be factored into 3 separate files: common, intel, and powerpc, rather than duplicating most of the code between the x86 and PowerPC flavors. All DTrace modules for PowerPC will be MFC'd together once Fasttrap is completed. Notes: svn path=/head/; revision=248457
* The dtnfsclient module dependency should only be added if the old NFSRui Paulo2012-09-012-1/+4
| | | | | | | client support was compiled in. Notes: svn path=/head/; revision=239971
* Initial commit of an I/O provider for DTrace on FreeBSD.George V. Neville-Neil2012-07-111-0/+1
| | | | | | | | | | | | | | | These probes are most useful when looking into the structures they provide, which are listed in io.d. For example: dtrace -n 'io:genunix::start { printf("%d\n", args[0]->bio_bcount); }' Note that the I/O systems in FreeBSD and Solaris/Illumos are sufficiently different that there is not a 1:1 mapping from scripts that work with one to the other. MFC after: 1 month Notes: svn path=/head/; revision=238366
* Add DTrace support to the new NFS client. This is essentiallyRick Macklem2011-06-181-0/+1
| | | | | | | | | | cloned from the old NFS client, plus additions for NFSv4. A review of this code is in progress, however it was felt by the reviewer that it could go in now, before code slush. Any changes required by the review can be committed as bug fixes later. Notes: svn path=/head/; revision=223280
* Fix make buildworld -DMODULES_WITH_WORLD on i386Ulrich Spörlein2011-04-091-1/+1
| | | | Notes: svn path=/head/; revision=220470
* add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsAndriy Gapon2011-03-122-1/+12
| | | | | | | | | | | | | | | | | | | | | | Add systrace_linux32 and systrace_freebsd32 modules which provide support for tracing compat system calls in addition to native system call tracing provided by systrace module. Provided that all the systrace modules are loaded now you can select what syscalls to trace in the following manner: syscall::xxx:yyy - work on all system calls that match the specification syscall:freebsd:xxx:yyy - only native system calls syscall:linux32:xxx:yyy - linux32 compat system calls syscall:freebsd32:xxx:yyy - freebsd32 compat system calls on amd64 PR: kern/152822 Submitted by: Artem Belevich <fbsdlist@src.cx> Reviewed by: jhb (earlier version) MFC after: 3 weeks Notes: svn path=/head/; revision=219561
* Enable fasttrap and make dtraceall depend on fasttrap when building i386Rui Paulo2010-08-241-0/+1
| | | | | | | | | or amd64. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=211753
* Add the OpenSolaris dtrace lockstat provider. The lockstat providerStacey Son2009-05-261-0/+1
| | | | | | | | | | | | | adds probes for mutexes, reader/writer and shared/exclusive locks to gather contention statistics and other locking information for dtrace scripts, the lockstat(1M) command and other potential consumers. Reviewed by: attilio jhb jb Approved by: gnn (mentor) Notes: svn path=/head/; revision=192853
* Add dtnfsclient, a first cut at an NFSv2/v3 client reuest DTraceRobert Watson2009-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | provider. The NFS client exposes 'start' and 'done' probes for NFSv2 and NFSv3 RPCs when using the new RPC implementation, passing in the vnode, mbuf chain, credential, and NFSv2 or NFSv3 procedure number. For 'done' probes, the error number is also available. Probes are named in the following way: ... nfsclient:nfs2:write:start nfsclient:nfs2:write:done ... nfsclient:nfs3:access:start nfsclient:nfs3:access:done ... Access to the unmarshalled arguments is not easily available at this point in the stack, but the passed probe arguments are sufficient to to a lot of interesting things in practice. Technically, these probes may cover multiple RPC retransmits, and even transactions if the transaction ID change as a result of authentication failure or a jukebox error from the server, but usefully capture the intent of a single NFS request, such as access, getattr, write, etc. Typical use might involve profiling RPC latency by system call, number of RPCs, how often a getattr leads to a call to access, when failed access control checks occur, etc. More detailed RPC information might best be provided by adding a krpc provider. It would also be useful to add NFS client probes for events such as the access cache or attribute cache satisfying requests without an RPC. Sponsored by: Google, Inc. MFC after: 1 month Notes: svn path=/head/; revision=190293
* Remove the dependency on lockstat. That its still work in progress.John Birrell2008-05-251-1/+0
| | | | Notes: svn path=/head/; revision=179298
* Add the DTrace kernel module makefiles.John Birrell2008-05-172-0/+82
Notes: svn path=/head/; revision=179065