aboutsummaryrefslogtreecommitdiff
path: root/share/dtrace
Commit message (Collapse)AuthorAgeFilesLines
* dtrace: fix ipfw_rule_info_t translatorAndrey V. Elsukov2021-09-021-2/+2
| | | | | | | | 322e5efda8578b has changed field names in the struct ip_fw. Use correct names in ipfw_rule_info_t translator in the ipfw.d script. Reported by: Keith White <kwhite uottawa at gmail> MFC after: 1 week
* pkgbase: Put dtrace in its own packageEmmanuel Vadot2021-06-191-0/+1
| | | | | | | While dtrace is usefull some people might not want it. Differential Revision: https://reviews.freebsd.org/D30752 Sponsored by: Diablotin Systems
* Add dtrace SDT probe ipfw:::rule-matched.Andrey V. Elsukov2020-10-212-1/+220
| | | | | | | | | | | | | | | It helps to reduce complexity with debugging of large ipfw rulesets. Also define several constants and translators, that can by used by dtrace scripts with this probe. Reviewed by: gnn Obtained from: Yandex LLC MFC after: 2 weeks Sponsored by: Yandex LLC Differential Revision: https://reviews.freebsd.org/D26879 Notes: svn path=/head/; revision=366908
* Synchronize definitions in mbuf.d with values from mbuf.hAndrey V. Elsukov2020-08-051-31/+37
| | | | | | | | Obtained from: Yandex LLC Sponsored by: Yandex LLC Notes: svn path=/head/; revision=363908
* Introduce dwatch(1) as a tool for making DTrace more usefulDevin Teske2018-03-064-939/+1
| | | | | | | | | | Reviewed by: markj, gnn, bdrewery (earlier version) Relnotes: yes Sponsored by: Smule, Inc. Differential Revision: https://reviews.freebsd.org/D10006 Notes: svn path=/head/; revision=330559
* Remove redefinitions of some kernel types from mbuf.d.Mark Johnston2016-09-031-84/+0
| | | | | | | | | | | | These override the kernel's definitions and do not match in some cases, which can break scripts that use these types. With r305055, dtrace is able to trace fields of struct mbuf's anonymous structs and unions, so there is no need to redefine types already defined in CTF. MFC after: 3 days Notes: svn path=/head/; revision=305363
* Remove the old version of the DTraceToolkit from the source tree.George V. Neville-Neil2016-05-194-41/+3
| | | | | | | | | | | The DTraceToolkit is part of the Open DTrace effort and is supported on FreeBSD as a port (sysutils/DTraceToolkit) which has been updated to properly track toolkit development upstream. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=300226
* Add the address at which the routine returned.George V. Neville-Neil2016-04-211-1/+1
| | | | | | | | MFC after: 1 week Sponsored by: Rubicon Communications (Netgate) Notes: svn path=/head/; revision=298386
* Remove dependency on mbuf provider as mbuf SDTs are now in the SDT space.George V. Neville-Neil2016-03-251-1/+0
| | | | | | | Sponsored by: Rubicon Communications (Netgate) Notes: svn path=/head/; revision=297258
* Add an mbuf provider to DTrace.George V. Neville-Neil2016-03-222-0/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mbuf provider is made up of a set of Statically Defined Tracepoints which help us look into mbufs as they are allocated and freed. This can be used to inspect the buffers or for a simplified mbuf leak detector. New tracepoints are: mbuf:::m-init mbuf:::m-gethdr mbuf:::m-get mbuf:::m-getcl mbuf:::m-clget mbuf:::m-cljget mbuf:::m-cljset mbuf:::m-free mbuf:::m-freem There is also a translator for mbufs which gives some visibility into the structure, see mbuf.d for more details. Reviewed by: bz, markj MFC after: 2 weeks Sponsored by: Rubicon Communications (Netgate) Differential Revision: https://reviews.freebsd.org/D5682 Notes: svn path=/head/; revision=297188
* fix tcpdebug: - assign to "flags" in each probe, not only debug-inputGeorge V. Neville-Neil2016-03-032-2/+5
| | | | | | | | | | | compute "len" in the same way in each probe Submitted by: Hannes Mehnert MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D5524 Notes: svn path=/head/; revision=296335
* Bump copyright for change from fbt to syscallDevin Teske2016-01-241-1/+1
| | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r294548 r294556 Notes: svn path=/head/; revision=294684
* Switch to syscall; HEAD lacks fbt for kill(2)Devin Teske2016-01-221-4/+3
| | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: 294548 Notes: svn path=/head/; revision=294556
* Fix bad title on script (caused by copy/paste)Devin Teske2016-01-221-1/+1
| | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r294548 Notes: svn path=/head/; revision=294549
* Add scripts for watching common entry points.Devin Teske2016-01-224-1/+940
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=294548
* META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery2015-12-011-0/+11
| | | | | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291563
* META MODE: These need object directories to handle staging.Bryan Drewery2015-11-261-2/+0
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291347
* Replace the retval.sh shell script with a native DTrace script.George V. Neville-Neil2015-11-262-43/+42
| | | | | | | Suggested by: markj Notes: svn path=/head/; revision=291344
* Summary: A simple script to print the return value of any function,George V. Neville-Neil2015-11-251-0/+43
| | | | | | | with or without wild cards. Notes: svn path=/head/; revision=291341
* Add a little, but very useful script for use with programs that work using anPawel Jakub Dawidek2015-10-042-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | event loop and should sleep only when waiting for events (eg. via kevent(2)). When a program is going to sleep in the kernel, the script will show its name, PID, kernel stack trace and userland stack trace. Sleeping in kevent(2) is ignored as it is expected to be valid. Sample output: # ./blocking lynxd lynxd(15042) is blocking... kernel`_cv_wait_sig+0x124 kernel`seltdwait+0xae kernel`sys_poll+0x3a3 kernel`amd64_syscall+0x343 kernel`0xffffffff806c79ab lynxd`poll+0xa lynxd`pqSocketCheck+0xa2 lynxd`pqWaitTimed+0x29 lynxd`connectDBComplete+0xd7 lynxd`PQsetdbLogin+0x2ec lynxd`db_connect+0x3c lynxd`main+0x198 lynxd`_start+0x16f 0x2 lynxd(1925) is blocking... kernel`_cv_wait+0x125 zfs.ko`zio_wait+0x5b zfs.ko`dmu_buf_hold_array_by_dnode+0x1dc zfs.ko`dmu_read+0xcb zfs.ko`zfs_freebsd_getpages+0x37b kernel`VOP_GETPAGES_APV+0xa7 kernel`vnode_pager_getpages+0x9a kernel`vm_fault_hold+0x885 kernel`vm_fault+0x77 kernel`trap_pfault+0x211 kernel`trap+0x506 kernel`0xffffffff806c76c2 lynxd`EVP_add_cipher+0x13 lynxd`SSL_library_init+0x11 lynxd`main+0x94 lynxd`_start+0x16f 0x2 lynxd(1925) is blocking... kernel`_cv_wait+0x125 zfs.ko`zio_wait+0x5b zfs.ko`dbuf_read+0x791 zfs.ko`dbuf_findbp+0x12f zfs.ko`dbuf_hold_impl+0xa2 zfs.ko`dbuf_hold+0x1b zfs.ko`dmu_buf_hold_array_by_dnode+0x153 zfs.ko`dmu_read_uio+0x66 zfs.ko`zfs_freebsd_read+0x3a3 kernel`VOP_READ_APV+0xa1 kernel`vn_read+0x13a kernel`vn_io_fault+0x10b kernel`dofileread+0x95 kernel`kern_readv+0x68 kernel`sys_read+0x63 kernel`amd64_syscall+0x343 kernel`0xffffffff806c79ab lynxd`_read+0xa lynxd`__srefill+0x122 lynxd`fgets+0x78 lynxd`file_gets+0x1d lynxd`BIO_gets+0x64 lynxd`PEM_read_bio+0xf5 lynxd`PEM_X509_INFO_read_bio+0x90 lynxd`X509_load_cert_crl_file+0x47 lynxd`by_file_ctrl+0x2e lynxd`X509_STORE_load_locations+0x4a lynxd`sslctx_init+0x255 lynxd`main+0x215 lynxd`_start+0x16f 0x2 Requested by: gnn Obtained from: Wheel Systems http://wheelsystems.com Notes: svn path=/head/; revision=288644
* dd DTrace probe points, translators and a corresponding scriptGeorge V. Neville-Neil2015-09-131-0/+165
| | | | | | | | | | | | to provide the TCPDEBUG functionality with pure DTrace. Reviewed by: rwatson MFC after: 2 weeks Sponsored by: Limelight Networks Differential Revision: D3530 Notes: svn path=/head/; revision=287759
* Update DTrace nfs scripts to track the proper provider names.George V. Neville-Neil2015-09-082-4/+4
| | | | | | | Submitted by: Alex Burlyga Notes: svn path=/head/; revision=287544
* Add missing DTrace scripts that exist in the source tree to the Makefile forHiren Panchasara2015-06-301-2/+4
| | | | | | | | | | | | | install. While here, sort the list. Differential Revision: D2950 Submitted by: Jason Wolfe <j at nitrology.com> Reviewed by: gnn, markj, hiren Sponsored by: Limelight Networks Notes: svn path=/head/; revision=284964
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * Remove extra blank linesSimon J. Gerraty2015-06-101-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284224
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-276-1/+302
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=283595
| * \ Merge from head@274682Simon J. Gerraty2014-11-195-8/+150
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ \ Merge head from 7/28Simon J. Gerraty2014-08-193-119/+114
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * \ \ \ Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * | | | | We do want objdirSimon J. Gerraty2013-10-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256421
| * | | | | Updated dependenciesSimon J. Gerraty2013-10-131-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256419
* | | | | | Remove NO_OBJSimon J. Gerraty2015-06-111-2/+0
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For meta mode we will want objdirs. Differential Revision: D2748 Reviewed by: brooks imp Notes: svn path=/head/; revision=284255
* | | | | Brief demo script showing the various values that can be read via the new ↵George V. Neville-Neil2015-04-291-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SIFTR statically defined tracepoint (SDT). Reviewed by: bz, markj Notes: svn path=/head/; revision=282242
* | | | | Summary: Update the ports to read from the packet rather than theGeorge V. Neville-Neil2015-03-081-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | socket structure Notes: svn path=/head/; revision=279769
* | | | | udp track shows UDP data as it arrives and leaves the systemGeorge V. Neville-Neil2015-03-082-1/+56
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=279768
* | | | | Summary: Remove the pid printing which does not currently work.George V. Neville-Neil2015-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=279765
* | | | | Set the property to executable.George V. Neville-Neil2015-03-071-0/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=279755
* | | | | Add execute bits to tcpstate script.George V. Neville-Neil2015-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=279754
* | | | | TCP connection tracker that uses aggregations to show where connectionsGeorge V. Neville-Neil2015-03-072-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | originate from. Notes: svn path=/head/; revision=279740
* | | | | Add a more complex TCP tracking script, which shows connections andGeorge V. Neville-Neil2015-03-072-1/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | accepts as well as state transitions. Notes: svn path=/head/; revision=279739
* | | | | Add a TCP state tracking script based on FreeBSD TCP SDTsGeorge V. Neville-Neil2015-03-072-1/+48
| |_|_|/ |/| | | | | | | | | | | Notes: svn path=/head/; revision=279727
* | | | add my scripts to measure io latency per disk...John-Mark Gurney2014-08-093-1/+143
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=269765
* | | | make the README a bit more clearer...John-Mark Gurney2014-08-092-7/+7
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Sort the scripts, and remove the trailing backslash... We really should install more of the toolkit scripts than just 5 of them.. Notes: svn path=/head/; revision=269764
* | | Use dtrace -s instead of /bin/sh for DTrace scripts.Rui Paulo2014-06-263-119/+114
| |/ |/| | | | | Notes: svn path=/head/; revision=267924
* | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
|/ | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* Remove copy/pasteo in the copyright notice.George V. Neville-Neil2012-07-211-3/+0
| | | | Notes: svn path=/head/; revision=238665
* Add a new script, hotopen, which shows what uid is opening filesGeorge V. Neville-Neil2012-07-202-2/+63
| | | | | | | | | on a per second basis. While here clean up the Makefile as well. MFC after: 1 week Notes: svn path=/head/; revision=238660
* Add a script that traces NFS attribute cache accesses.George V. Neville-Neil2012-07-161-0/+74
| | | | | | | | Submitted by: rwatson MFC after: 2 weeks Notes: svn path=/head/; revision=238535
* Fix a case typo.George V. Neville-Neil2012-05-181-1/+1
| | | | | | | Pointed out by: jlh@ Notes: svn path=/head/; revision=235628