#
93f27766 |
|
03-Jan-2024 |
Domagoj Stolfa <domagoj.stolfa@gmail.com> |
dtrace: Add the 'oformat' libdtrace option This 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. Client code 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 is valid (JSON, XML) and extends the dtrace(1) describing the structured output. Reviewed by: markj Discussed with: phil MFC after: 2 months Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D41745
|
#
256c8c5d |
|
11-Jan-2022 |
Andriy Gapon <avg@FreeBSD.org> |
dt_unring_buf: set dtbd_oldest to the start of the first record It was set to the start of the buffer and that can be different from the start of teh first record because of a misalignment. This change follows the example of dt_realloc_buf(). Reviewed by: tsoome, markj MFC after: 4 weeks Differential Revision: https://reviews.freebsd.org/D33649
|
#
5ad79d9b |
|
14-Apr-2017 |
Andriy Gapon <avg@FreeBSD.org> |
dtrace: fix normalization of stddev aggregation To be upstreamed. Discussed with: Bryan Cantrill <bryancantrill@gmail.com> MFC after: 2 weeks Sponsored by: Panzura
|
#
375c8b20 |
|
12-Nov-2016 |
Mark Johnston <markj@FreeBSD.org> |
Remove the DTrace printt and typeref actions. These are FreeBSD-specific and were added in r178576 to provide the ability to pretty-print instances of compound types. However, the print action has long since been augmented to provide this functionality with a simpler interface. Discussed with: gnn Differential Revision: https://reviews.freebsd.org/D8478
|
#
28cb2a5f |
|
30-Mar-2015 |
Mark Johnston <markj@FreeBSD.org> |
Fix a misparenthesization that could cause a crash if TERM is not set. Reported by: Coverity (internal) MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
|
#
6ac0e485 |
|
02-Feb-2015 |
Mark Johnston <markj@FreeBSD.org> |
Let the standard deviation of the empty set be 0. This is consistent with the behaviour for averages, and fixes a crash that can occur when attempting to print a stddev aggregation containing no elements: dtrace:::BEGIN { @ = stddev(0); clear(@); printa("%@d", @); } PR: 197260 MFC after: 2 week
|
#
bc96366c |
|
17-Jan-2015 |
Steven Hartland <smh@FreeBSD.org> |
Mechanically convert cddl sun #ifdef's to illumos Since the upstream for cddl code is now illumos not sun, mechanically convert all sun #ifdef's to illumos #ifdef's which have been used in all newer code for some time. Also do a manual pass to correct the use if #ifdef comments as per style(9) as well as few uses of #if defined(__FreeBSD__) vs #ifndef illumos. MFC after: 1 month Sponsored by: Multiplay
|
#
47890cb5 |
|
04-Aug-2014 |
Mark Johnston <markj@FreeBSD.org> |
Preserve the errno value of an ioctl before calling free(3). Previously, errno was very occasionally being clobbered, resulting in a bogus error from dt_consume() and thus an error from dtrace(1). MFC after: 2 weeks
|
#
dd9b2abe |
|
26-Jun-2014 |
Rui Paulo <rpaulo@FreeBSD.org> |
Revert r267898.
|
#
d8e37c5f |
|
26-Jun-2014 |
Rui Paulo <rpaulo@FreeBSD.org> |
Bring the following change from the illumos-joyent repository: commit 78e24ab6803bbe11ba37642624e1498ede5b239d Author: Bryan Cantrill <bryan@joyent.com> Date: Thu Oct 31 01:20:54 2013 OS-1688 DTrace count() with histogram OS-2360 DTrace full width distribution histograms OS-2361 DTrace frequency trails MFC after: 2 weeks
|
#
03836978 |
|
16-Apr-2013 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
DTrace: Revert r249367 The following change from illumos brought caused DTrace to pause in an interactive environment: 3026 libdtrace should set LD_NOLAZYLOAD=1 to help the pid provider This was not detected during testing because it doesn't affect scripts. We shouldn't be changing the environment, especially since the LD_NOLAZYLOAD option doesn't apply to our (GNU) ld. Unfortunately the change from upstream was made in such a way that it is very difficult to separate this change from the others so, at least for now, it's better to just revert everything. Reference: https://www.illumos.org/issues/3026 Reported by: Navdeep Parhar and Mark Johnston
|
#
ae88a6d9 |
|
02-Jul-2012 |
Dimitry Andric <dim@FreeBSD.org> |
Fix clang warning, introduced in the recent dtrace import. MFC after: 3 days
|
#
fed980b2 |
|
28-Jun-2012 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
Safer fix for building with Clang. error: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') Reported by: Ed Maste
|
#
db0cb5be |
|
28-Jun-2012 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
Fix build with Clang. error: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') Reported by: Ed Maste
|
#
675cf915 |
|
26-Jun-2012 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
Bring llquantize support into Dtrace. Bryan Cantrill implemented the equivalent of semi-log graph paper for Dtrace so llquantize will use one logarithmic and one linear scale. Special thanks to Mark Peek for providing fix to an assertion and to Fabian Keill for testing the port. Illumos Revision: 13355:15b74a2a9a9d Reference: https://www.illumos/issues/905 Obtained from: Illumos Tested by: Fabian Keill, mp MFC after: 4 days
|
#
8ac4e8eb |
|
16-Dec-2011 |
Dimitry Andric <dim@FreeBSD.org> |
In cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c, some uint64_t values are snprintf'd using %llx. On amd64, uint64_t is typedef'd as unsigned long, so cast the values to u_longlong_t, as is done similarly in the rest of the file. MFC after: 1 week
|
#
a7d5f7eb |
|
19-Oct-2010 |
Jamie Gritton <jamie@FreeBSD.org> |
A new jail(8) with a configuration file, to replace the work currently done by /etc/rc.d/jail.
|
#
0f2bd1e8 |
|
21-Aug-2010 |
Rui Paulo <rpaulo@FreeBSD.org> |
Add libdtrace support for tracing userland programs. Summary of changes: * Implement a compatibility shim between Solaris libproc and our libproc and remove several ifdefs because of this. * Port the drti to FreeBSD. * Implement the missing DOODAD sections * Link with libproc and librtld_db * Support for ustack, jstack and uregs (by sson@) * Misc bugfixing When writing the SUWN_dof section, we had to resort to building the ELF file layout by "hand". This is the job of libelf, but our libelf doesn't support this yet. When libelf is fixed, we can remove the code under #ifdef BROKEN_LIBELF. Sponsored by: The FreeBSD Foundation
|
#
fe0506d7 |
|
09-Mar-2010 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Create the altix project branch. The altix project will add support for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
|
#
d7f03759 |
|
19-Oct-2008 |
Ulf Lilleengen <lulf@FreeBSD.org> |
- Import the HEAD csup code which is the basis for the cvsmode work.
|
#
18737969 |
|
25-Apr-2008 |
John Birrell <jb@FreeBSD.org> |
* Handle the different ioctl design. * Add a couple of FreeBSD action extensions.
|