diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2018-07-31 22:56:03 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2018-07-31 22:56:03 +0000 |
commit | 7bda9663949a80e4e56006369d6df8dc8eeb6cff (patch) | |
tree | 97771f5001ef969f5548e1c95129169ba47649f7 /sys/netinet/in_kdtrace.h | |
parent | 200c27a75d0f4bd48ad118bb4fbccbb4e5896c7f (diff) | |
download | src-7bda9663949a80e4e56006369d6df8dc8eeb6cff.tar.gz src-7bda9663949a80e4e56006369d6df8dc8eeb6cff.zip |
Add a dtrace provider for UDP-Lite.
The dtrace provider for UDP-Lite is modeled after the UDP provider.
This fixes the bug that UDP-Lite packets were triggering the UDP
provider.
Thanks to dteske@ for providing the dwatch module.
Reviewed by: dteske@, markj@, rrs@
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D16377
Notes
Notes:
svn path=/head/; revision=337018
Diffstat (limited to 'sys/netinet/in_kdtrace.h')
-rw-r--r-- | sys/netinet/in_kdtrace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet/in_kdtrace.h b/sys/netinet/in_kdtrace.h index ba63a9a9e78e..ff0430db2faf 100644 --- a/sys/netinet/in_kdtrace.h +++ b/sys/netinet/in_kdtrace.h @@ -34,6 +34,8 @@ SDT_PROBE6(ip, , , probe, arg0, arg1, arg2, arg3, arg4, arg5) #define UDP_PROBE(probe, arg0, arg1, arg2, arg3, arg4) \ SDT_PROBE5(udp, , , probe, arg0, arg1, arg2, arg3, arg4) +#define UDPLITE_PROBE(probe, arg0, arg1, arg2, arg3, arg4) \ + SDT_PROBE5(udplite, , , probe, arg0, arg1, arg2, arg3, arg4) #define TCP_PROBE1(probe, arg0) \ SDT_PROBE1(tcp, , , probe, arg0) #define TCP_PROBE2(probe, arg0, arg1) \ @@ -50,6 +52,7 @@ SDT_PROVIDER_DECLARE(ip); SDT_PROVIDER_DECLARE(tcp); SDT_PROVIDER_DECLARE(udp); +SDT_PROVIDER_DECLARE(udplite); SDT_PROBE_DECLARE(ip, , , receive); SDT_PROBE_DECLARE(ip, , , send); @@ -72,4 +75,7 @@ SDT_PROBE_DECLARE(tcp, , , receive__autoresize); SDT_PROBE_DECLARE(udp, , , receive); SDT_PROBE_DECLARE(udp, , , send); +SDT_PROBE_DECLARE(udplite, , , receive); +SDT_PROBE_DECLARE(udplite, , , send); + #endif |