Use ZFSTOP more broadlyReviewed by: brooksObtained from: CheriBSDDifferential Revision: https://reviews.freebsd.org/D53791
zfs: fix build after openzfs/zfs@e63d026b9Fix MakefilesUpdate zfs_config.h and zfs_gitrev.h
libdtrace: Permit taking the address of an identifier without type infoSymbols defined using assembler directives lack type info, but in thiscase one ought to be able to cast a pointer to the symb
libdtrace: Permit taking the address of an identifier without type infoSymbols defined using assembler directives lack type info, but in thiscase one ought to be able to cast a pointer to the symbol anddereference the pointer to get a value. Without this change, Ddisallows this trick since it requires all identifiers to have a type.Relax the rules slightly and allow an identifier to have type "void" ifwe know we're just taking its address.As a result, the following dtrace invocation works: dtrace -n 'tick-1s {printf("%d", *(int *)&`ticks);}'In particular, since commit b2b974f7ef4c ("clock: Simplify subr_ticksand rename"), "ticks" does not have any type info associated with it, soits value couldn't be printed. This trick provides a workaround and isprobably generally useful.Add a regression test which exercises this functionality.PR: 287752Reviewed by: avgMFC after: 1 monthDifferential Revision: https://reviews.freebsd.org/D51417
show more ...
dtrace tests: Fix the ATF config variable nameFixes: 6e6a67e98652 ("dtrace tests: Avoid hard-coding paths to required programs")Sponsored by: Innovate UK
dtrace tests: Avoid hard-coding paths to required programsMFC after: 1 weekSponsored by: Innovate UK
dtrace tests: Add a test case which validates FBT probe argumentsReviewed by: avgMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D46674
Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
dtrace tests: Regenerate makefiles after commit d0b2dbfa0ecf
dtrace tests: Fix loading of the test kernel moduleThe old way is racy and can cause two instances, running in parallel, toattempt to load dtrace_test, and only one will succeed. This causederro
dtrace tests: Fix loading of the test kernel moduleThe old way is racy and can cause two instances, running in parallel, toattempt to load dtrace_test, and only one will succeed. This causederrors when running dtrace tests in parallel.MFC after: 1 week
dtrace tests: Diff expected and actual output upon a miscompareThis makes quick diagnosis of test failures easier.MFC after: 1 week
dtrace tests: Require perlA number of tests use it, so just require it globally as we do withother tools.MFC after: 1 week
dtrace tests: Run ksh with -pIn particular, avoid loading the user's .profile file, since that canhave undesirable side effects. Most tests were already careful to dothis.MFC after: 1 week
dtrace: Add the 'oformat' libdtrace optionThis option can be used to specify a format to use in DTrace output.The following formats are supported: - json - xml - html - none (default DTrace ou
dtrace: Add the 'oformat' libdtrace optionThis option can be used to specify a format to use in DTrace output.The following formats are supported: - json - xml - html - none (default DTrace output)This is implemented using libxo and integrated into libdtrace. Clientcode only works with the following API: - dtrace_oformat_setup(dtrace_hdl_t *) -- to be called when output is starting. - dtrace_oformat_teardown(dtrace_hdl_t *) -- to be called when output is finished - dtrace_oformat(dtrace_hdl_t *) -- check if oformat is enabled. - dtrace_set_outfp(FILE *) -- sets the output file for oformat. - Ensure that oformat is correctly checked in the drop handler and record processing callbacks.This commit also adds tests which check if the generated output isvalid (JSON, XML) and extends the dtrace(1) describing the structured output.Reviewed by: markjDiscussed with: philMFC after: 2 monthsSponsored by: Innovate UKDifferential Revision: https://reviews.freebsd.org/D41745
dtrace: Remove $FreeBSD$ from genmakefiles.sh.$FreeBSD$ is gone in head, so this should be removed as well.Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D41595
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
dtrace: Add WITH_DTRACE_ASANSee commit 4ae6991228105eb34989c870194ae7b0a1e23be4. This version ofthe commit avoids inadvertently changing SHLIBDIR for libdtrace.so.
dtrace: Revert the addition of WITH_DTRACE_ASANThe follow-up fix triggers a lib32 build failure, revert everythinguntil the problem is addressed.
dtrace: Add WITH_DTRACE_ASANThis option is a blanket for all the DTrace-related software. The optionwhen enabled passes in -fsanitize=address -fsanitize=undeifned, enablingASAN and UBSAN in the f
dtrace: Add WITH_DTRACE_ASANThis option is a blanket for all the DTrace-related software. The optionwhen enabled passes in -fsanitize=address -fsanitize=undeifned, enablingASAN and UBSAN in the following components: - libdtrace - dtrace(1) - lockstat(1) - plockstat(1)The option defaults to "no" and is intended as a developer aid.Reviewed by: markjDifferential Revision: https://reviews.freebsd.org/D41157
dtrace: move kinst tests to commonReviewed by: markjApproved by: markj (mentor)Sponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D40414
Update/fix Makefile.depend for userland
kinst: Add a rudimentary regression test caseThe test instruments a number of large, frequently called kernelfunctions while generating load in the background.MFC after: 3 months
DTrace test: skip flakey common.misc.t_dtrace_contrib.tst_dynopt_d in CIPR: 237641Sponsored by: The FreeBSD Foundation
DTrace test: Add a new keyword SKIPCI to gentest.shThis is for marking a test case is flakey and should not be executed inthe CI environment.Reviewed by: markjSponsored by: The FreeBSD Foundati
DTrace test: Add a new keyword SKIPCI to gentest.shThis is for marking a test case is flakey and should not be executed inthe CI environment.Reviewed by: markjSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D34635
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
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
1234