Print this page
11547 Want connstat(1M) command to display per-connection TCP statistics
Portions contributed by: Cody Peter Mello <cody.mello@joyent.com>
Portions contributed by: Ahmed G <ahmedg@delphix.com>
Reviewed by: Jason King <jason.king@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Dan McDonald <danmcd@joyent.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/Makefile
+++ new/usr/src/cmd/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 -# Copyright (c) 2018, Joyent, Inc.
25 -# Copyright (c) 2012 by Delphix. All rights reserved.
24 +# Copyright (c) 2019, Joyent, Inc.
25 +# Copyright (c) 2012, 2015 by Delphix. All rights reserved.
26 26 # Copyright (c) 2013 DEY Storage Systems, Inc. All rights reserved.
27 27 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
28 28 # Copyright 2016 Toomas Soome <tsoome@me.com>
29 29 # Copyright 2018 Nexenta Systems, Inc.
30 30 # Copyright 2018 Gary Mills
31 31 # Copyright 2019 Peter Tribble
32 32 #
33 33
34 34 include ../Makefile.master
35 35
36 36 #
37 37 # Note that the commands 'lp', and 'perl' are first in
38 38 # the list, violating alphabetical order. This is because they are very
39 39 # long-running and should be given the most wall-clock time for a
40 40 # parallel build.
41 41 #
42 42 # Commands in the FIRST_SUBDIRS list are built before starting the build
43 43 # of other commands. Currently this includes only 'isaexec' and
44 44 # 'platexec'. This is necessary because $(ROOT)/usr/lib/isaexec or
45 45 # $(ROOT)/usr/lib/platexec must exist when some other commands are built
46 46 # because their 'make install' creates a hard link to one of them.
47 47 #
48 48 # Commands are listed one per line so that TeamWare can auto-merge most
49 49 # changes.
50 50 #
51 51
52 52 FIRST_SUBDIRS= \
53 53 isaexec \
54 54 platexec
55 55
56 56 COMMON_SUBDIRS= \
57 57 allocate \
58 58 availdevs \
59 59 lp \
60 60 perl \
61 61 Adm \
62 62 abi \
63 63 adbgen \
64 64 acct \
65 65 acctadm \
66 66 arch \
67 67 asa \
68 68 ast \
69 69 audio \
70 70 auths \
71 71 autopush \
72 72 awk \
73 73 awk_xpg4 \
74 74 backup \
75 75 banner \
76 76 bart \
77 77 basename \
78 78 bc \
79 79 bdiff \
80 80 beadm \
81 81 bnu \
82 82 boot \
83 83 busstat \
84 84 cal \
85 85 captoinfo \
86 86 cat \
87 87 cdrw \
88 88 cfgadm \
89 89 checkeq \
90 90 checknr \
↓ open down ↓ |
55 lines elided |
↑ open up ↑ |
91 91 chgrp \
92 92 chmod \
93 93 chown \
94 94 chroot \
95 95 clear \
96 96 clinfo \
97 97 cmd-crypto \
98 98 cmd-inet \
99 99 col \
100 100 compress \
101 + connstat \
101 102 consadm \
102 103 coreadm \
103 104 cpio \
104 105 cpc \
105 106 cron \
106 107 crypt \
107 108 csh \
108 109 csplit \
109 110 ctfconvert \
110 111 ctfdiff \
111 112 ctfdump \
112 113 ctfmerge \
113 114 ctrun \
114 115 ctstat \
115 116 ctwatch \
116 117 datadm \
117 118 date \
118 119 dc \
119 120 dd \
120 121 deroff \
121 122 devfsadm \
122 123 syseventd \
123 124 devctl \
124 125 devinfo \
125 126 devmgmt \
126 127 devprop \
127 128 dfs.cmds \
128 129 diff \
129 130 diff3 \
130 131 diffmk \
131 132 dircmp \
132 133 dirname \
133 134 dis \
134 135 diskinfo \
135 136 diskmgtd \
136 137 dispadmin \
137 138 dladm \
138 139 dlstat \
139 140 dlutil \
140 141 dmesg \
141 142 dodatadm \
142 143 dtrace \
143 144 du \
144 145 dumpadm \
145 146 dumpcs \
146 147 echo \
147 148 ed \
148 149 eeprom \
149 150 eject \
150 151 emul64ioctl \
151 152 enhance \
152 153 env \
153 154 eqn \
154 155 etdump \
155 156 expand \
156 157 expr \
157 158 exstr \
158 159 factor \
159 160 false \
160 161 fcinfo \
161 162 fcoesvc \
162 163 fdetach \
163 164 fdformat \
164 165 fdisk \
165 166 ficl \
166 167 filesync \
167 168 file \
168 169 find \
169 170 flowadm \
170 171 flowstat \
171 172 fm \
172 173 fmt \
173 174 fmthard \
174 175 fmtmsg \
175 176 fold \
176 177 format \
177 178 fs.d \
178 179 fstyp \
179 180 fuser \
180 181 fwflash \
181 182 gcore \
182 183 gencat \
183 184 geniconvtbl \
184 185 genmsg \
185 186 getconf \
186 187 getdevpolicy \
187 188 getent \
188 189 getfacl \
189 190 getmajor \
190 191 getopt \
191 192 gettext \
192 193 gettxt \
193 194 grep \
194 195 groups \
195 196 growfs \
196 197 grpck \
197 198 gss \
198 199 hal \
199 200 halt \
200 201 head \
201 202 hostid \
202 203 hostname \
203 204 hotplug \
204 205 hotplugd \
205 206 ibd_upgrade \
206 207 iconv \
207 208 id \
208 209 idmap \
209 210 infocmp \
210 211 init \
211 212 initpkg \
212 213 install.d \
213 214 intrd \
214 215 intrstat \
215 216 ipcrm \
216 217 ipcs \
217 218 ipdadm \
218 219 ipf \
219 220 isainfo \
220 221 isalist \
221 222 itutools \
222 223 iscsiadm \
223 224 iscsid \
224 225 iscsitsvc \
225 226 isns \
226 227 itadm \
227 228 kbd \
228 229 keyserv \
229 230 killall \
230 231 krb5 \
231 232 ksh \
232 233 kvmstat \
233 234 last \
234 235 lastcomm \
235 236 latencytop \
236 237 ldap \
237 238 ldapcachemgr \
238 239 lgrpinfo \
239 240 line \
240 241 link \
241 242 dlmgmtd \
242 243 listen \
243 244 loadkeys \
244 245 locale \
245 246 localedef \
246 247 lockstat \
247 248 locator \
248 249 lofiadm \
249 250 logadm \
250 251 logger \
251 252 login \
252 253 logins \
253 254 look \
254 255 ls \
255 256 luxadm \
256 257 mach \
257 258 mail \
258 259 mailwrapper \
259 260 mailx \
260 261 make \
261 262 makekey \
262 263 man \
263 264 mandoc \
264 265 mdb \
265 266 mesg \
266 267 mkdir \
267 268 mkfifo \
268 269 mkfile \
269 270 mkmsgs \
270 271 mknod \
271 272 mkpwdict \
272 273 mktemp \
273 274 modload \
274 275 more \
275 276 mpathadm \
276 277 msgfmt \
277 278 msgid \
278 279 mt \
279 280 mv \
280 281 mvdir \
281 282 ndmpadm \
282 283 ndmpd \
283 284 ndmpstat \
284 285 netadm \
285 286 netfiles \
286 287 newform \
287 288 newgrp \
288 289 news \
289 290 newtask \
290 291 nice \
291 292 nl \
292 293 nlsadmin \
293 294 nohup \
294 295 nsadmin \
295 296 nscd \
296 297 oamuser \
297 298 oawk \
298 299 od \
299 300 pack \
300 301 pagesize \
301 302 passmgmt \
302 303 passwd \
303 304 pathchk \
304 305 pbind \
305 306 pcidr \
306 307 pcitool \
307 308 pfexec \
308 309 pfexecd \
309 310 pginfo \
310 311 pgstat \
311 312 pgrep \
312 313 picl \
313 314 plimit \
314 315 policykit \
315 316 pools \
316 317 power \
317 318 powertop \
318 319 ppgsz \
319 320 pg \
320 321 plockstat \
321 322 pr \
322 323 prctl \
323 324 print \
324 325 printf \
325 326 priocntl \
326 327 profiles \
327 328 projadd \
328 329 projects \
329 330 prstat \
330 331 prtconf \
331 332 prtdiag \
332 333 prtvtoc \
333 334 ps \
334 335 psradm \
335 336 psrinfo \
336 337 psrset \
337 338 ptools \
338 339 pwck \
339 340 pwconv \
340 341 pwd \
341 342 pyzfs \
342 343 raidctl \
343 344 ramdiskadm \
344 345 rcap \
345 346 rcm_daemon \
346 347 rctladm \
347 348 refer \
348 349 regcmp \
349 350 renice \
350 351 rm \
351 352 rmdir \
352 353 rmformat \
353 354 rmmount \
354 355 rmt \
355 356 rmvolmgr \
356 357 roles \
357 358 rpcbind \
358 359 rpcgen \
359 360 rpcinfo \
360 361 rpcsvc \
361 362 runat \
362 363 sa \
363 364 saf \
364 365 sasinfo \
365 366 savecore \
366 367 sbdadm \
367 368 script \
368 369 scsi \
369 370 sdiff \
370 371 sdpadm \
371 372 sed \
372 373 sendmail \
373 374 setfacl \
374 375 setmnt \
375 376 setpgrp \
376 377 setuname \
377 378 sgs \
378 379 sh \
379 380 shcomp \
380 381 smbios \
381 382 smbsrv \
382 383 smserverd \
383 384 soelim \
384 385 sort \
385 386 spell \
386 387 split \
387 388 sqlite \
388 389 srchtxt \
389 390 srptadm \
390 391 srptsvc \
391 392 ssh \
392 393 stat \
393 394 stmfadm \
394 395 stmfproxy \
395 396 stmfsvc \
396 397 stmsboot \
397 398 streams \
398 399 strings \
399 400 su \
400 401 sulogin \
401 402 sunpc \
402 403 svc \
403 404 svr4pkg \
404 405 swap \
405 406 sync \
406 407 sysdef \
407 408 syseventadm \
408 409 syslogd \
409 410 tabs \
410 411 tail \
411 412 tar \
412 413 tbl \
413 414 tcopy \
414 415 tcpd \
415 416 th_tools \
416 417 tic \
417 418 time \
418 419 tip \
419 420 tnf \
420 421 touch \
421 422 tput \
422 423 tr \
423 424 trapstat \
424 425 troff \
425 426 true \
426 427 truss \
427 428 tsol \
428 429 tty \
429 430 ttymon \
430 431 tzreload \
431 432 uadmin \
432 433 ul \
433 434 uname \
434 435 units \
435 436 unlink \
436 437 unpack \
437 438 userattr \
438 439 users \
439 440 utmp_update \
440 441 utmpd \
441 442 uuidgen \
442 443 valtools \
443 444 vgrind \
444 445 vi \
445 446 volcheck \
446 447 volrmmount \
447 448 vrrpadm \
448 449 vscan \
449 450 vt \
450 451 vtfontcvt \
451 452 w \
452 453 wall \
453 454 which \
454 455 who \
455 456 whodo \
456 457 wracct \
457 458 write \
458 459 xargs \
459 460 xstr \
460 461 yes \
461 462 ypcmd \
462 463 yppasswd \
463 464 zdb \
464 465 zdump \
465 466 zfs \
466 467 zhack \
467 468 zic \
468 469 zinject \
469 470 zlogin \
470 471 zoneadm \
471 472 zoneadmd \
472 473 zonecfg \
473 474 zonename \
474 475 zpool \
475 476 zlook \
476 477 zonestat \
477 478 zstreamdump \
478 479 ztest
479 480
480 481 i386_SUBDIRS= \
481 482 acpi \
482 483 acpihpd \
483 484 addbadsec \
484 485 ahciem \
485 486 biosdev \
486 487 cxgbetool \
487 488 diskscan \
488 489 nvmeadm \
489 490 rtc \
490 491 ucodeadm \
491 492 xhci \
492 493 xvm
493 494
494 495 sparc_SUBDIRS= \
495 496 dcs \
496 497 device_remap \
497 498 drd \
498 499 fruadm \
499 500 ldmad \
500 501 oplhpd \
501 502 prtdscp \
502 503 prtfru \
503 504 scadm \
504 505 sckmd \
505 506 sf880drd \
506 507 virtinfo \
507 508 vntsd
508 509
509 510 #
510 511 # Commands that are messaged. Note that 'lp' comes first
511 512 # (see previous comment about 'lp'.)
512 513 #
513 514 MSGSUBDIRS= \
514 515 lp \
515 516 abi \
516 517 acctadm \
517 518 allocate \
518 519 asa \
519 520 audio \
520 521 audit \
521 522 auditconfig \
522 523 auditd \
523 524 auditrecord \
524 525 auditset \
525 526 auths \
526 527 autopush \
527 528 awk \
528 529 awk_xpg4 \
529 530 backup \
530 531 banner \
531 532 bart \
532 533 basename \
533 534 beadm \
534 535 bnu \
535 536 busstat \
536 537 cal \
537 538 cat \
538 539 cdrw \
↓ open down ↓ |
428 lines elided |
↑ open up ↑ |
539 540 cfgadm \
540 541 checkeq \
541 542 checknr \
542 543 chgrp \
543 544 chmod \
544 545 chown \
545 546 cmd-crypto \
546 547 cmd-inet \
547 548 col \
548 549 compress \
550 + connstat \
549 551 consadm \
550 552 coreadm \
551 553 cpio \
552 554 cpc \
553 555 cron \
554 556 csh \
555 557 csplit \
556 558 ctrun \
557 559 ctstat \
558 560 ctwatch \
559 561 datadm \
560 562 date \
561 563 dc \
562 564 dcs \
563 565 dd \
564 566 deroff \
565 567 devfsadm \
566 568 dfs.cmds \
567 569 diff \
568 570 diffmk \
569 571 dladm \
570 572 dlstat \
571 573 du \
572 574 dumpcs \
573 575 ed \
574 576 eject \
575 577 env \
576 578 eqn \
577 579 expand \
578 580 expr \
579 581 fcinfo \
580 582 file \
581 583 filesync \
582 584 find \
583 585 flowadm \
584 586 flowstat \
585 587 fm \
586 588 fold \
587 589 fs.d \
588 590 fwflash \
589 591 geniconvtbl \
590 592 genmsg \
591 593 getconf \
592 594 getent \
593 595 gettext \
594 596 gettxt \
595 597 grep \
596 598 grpck \
597 599 gss \
598 600 halt \
599 601 head \
600 602 hostname \
601 603 hotplug \
602 604 iconv \
603 605 id \
604 606 idmap \
605 607 isaexec \
606 608 iscsiadm \
607 609 iscsid \
608 610 isns \
609 611 itadm \
610 612 kbd \
611 613 krb5 \
612 614 ksh \
613 615 last \
614 616 ldap \
615 617 ldapcachemgr \
616 618 lgrpinfo \
617 619 locale \
618 620 lofiadm \
619 621 logadm \
620 622 logger \
621 623 logins \
622 624 ls \
623 625 luxadm \
624 626 mailx \
625 627 make \
626 628 man \
627 629 mesg \
628 630 mkdir \
629 631 mkpwdict \
630 632 mktemp \
631 633 more \
632 634 mpathadm \
633 635 msgfmt \
634 636 mv \
635 637 ndmpadm \
636 638 ndmpstat \
637 639 newgrp \
638 640 newtask \
639 641 nice \
640 642 nohup \
641 643 oawk \
642 644 pack \
643 645 passwd \
644 646 passmgmt \
645 647 pathchk \
646 648 pfexec \
647 649 pg \
648 650 pgrep \
649 651 picl \
650 652 pools \
651 653 power \
652 654 pr \
653 655 praudit \
654 656 print \
655 657 profiles \
656 658 projadd \
657 659 projects \
658 660 prstat \
659 661 prtdiag \
660 662 ps \
661 663 psrinfo \
662 664 ptools \
663 665 pwconv \
664 666 pwd \
665 667 pyzfs \
666 668 raidctl \
667 669 ramdiskadm \
668 670 rcap \
669 671 rcm_daemon \
670 672 refer \
671 673 regcmp \
672 674 renice \
673 675 roles \
674 676 rm \
675 677 rmdir \
676 678 rmformat \
677 679 rmmount \
678 680 rmvolmgr \
679 681 sasinfo \
680 682 sbdadm \
681 683 scadm \
682 684 script \
683 685 scsi \
684 686 sdiff \
685 687 sdpadm \
686 688 sgs \
687 689 sh \
688 690 shcomp \
689 691 smbsrv \
690 692 sort \
691 693 split \
692 694 srptadm \
693 695 stat \
694 696 stmfadm \
695 697 stmsboot \
696 698 strings \
697 699 su \
698 700 svc \
699 701 svr4pkg \
700 702 swap \
701 703 syseventadm \
702 704 syseventd \
703 705 tabs \
704 706 tar \
705 707 tbl \
706 708 time \
707 709 tnf \
708 710 touch \
709 711 tput \
710 712 troff \
711 713 tsol \
712 714 tty \
713 715 ttymon \
714 716 tzreload \
715 717 ul \
716 718 uname \
717 719 units \
718 720 unlink \
719 721 unpack \
720 722 userattr \
721 723 valtools \
722 724 vgrind \
723 725 vi \
724 726 volcheck \
725 727 volrmmount \
726 728 vrrpadm \
727 729 vscan \
728 730 w \
729 731 who \
730 732 whodo \
731 733 wracct \
732 734 write \
733 735 xargs \
734 736 yppasswd \
735 737 zdump \
736 738 zfs \
737 739 zic \
738 740 zlogin \
739 741 zoneadm \
740 742 zoneadmd \
741 743 zonecfg \
742 744 zonename \
743 745 zpool \
744 746 zonestat
745 747
746 748 sparc_MSGSUBDIRS= \
747 749 fruadm \
748 750 prtdscp \
749 751 prtfru \
750 752 virtinfo \
751 753 vntsd
752 754
753 755 i386_MSGSUBDIRS= \
754 756 ucodeadm
755 757
756 758 #
757 759 # commands that use dcgettext for localized time, LC_TIME
758 760 #
759 761 DCSUBDIRS= \
760 762 cal \
761 763 cfgadm \
762 764 diff \
763 765 ls \
764 766 pr \
765 767 ps \
766 768 tar \
767 769 w \
768 770 who \
769 771 whodo \
770 772 write
771 773
772 774 #
773 775 # commands that belong only to audit.
774 776 #
775 777 AUDITSUBDIRS= \
776 778 amt \
777 779 audit \
778 780 audit_warn \
779 781 auditconfig \
780 782 auditd \
781 783 auditrecord \
782 784 auditreduce \
783 785 auditset \
784 786 auditstat \
785 787 praudit
786 788
787 789 #
788 790 # commands not owned by the systems group
789 791 #
790 792 BWOSDIRS=
791 793
792 794
793 795 all := TARGET = all
794 796 install := TARGET = install
795 797 clean := TARGET = clean
796 798 clobber := TARGET = clobber
797 799 lint := TARGET = lint
798 800 _msg := TARGET = _msg
799 801 _dc := TARGET = _dc
800 802
801 803 .KEEP_STATE:
802 804
803 805 SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
804 806
805 807 .PARALLEL: $(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS) $(AUDITSUBDIRS)
806 808
807 809 all install clean clobber lint: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) \
808 810 $(AUDITSUBDIRS)
809 811
810 812 #
811 813 # Manifests cannot be checked in parallel, because we are using
812 814 # the global repository that is in $(SRC)/cmd/svc/seed/global.db.
813 815 # For this reason, to avoid .PARALLEL and .NO_PARALLEL conflicts,
814 816 # we spawn off a sub-make to perform the non-parallel 'make check'
815 817 #
816 818 check:
817 819 $(MAKE) -f Makefile.check check
818 820
819 821 #
820 822 # The .WAIT directive works around an apparent bug in parallel make.
821 823 # Evidently make was getting the target _msg vs. _dc confused under
822 824 # some level of parallelization, causing some of the _dc objects
823 825 # not to be built.
824 826 #
825 827 _msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc
826 828
827 829 _dc: $(DCSUBDIRS)
828 830
829 831 #
830 832 # Dependencies
831 833 #
832 834 fs.d: fstyp
833 835 ksh: shcomp isaexec
834 836 print: lp
835 837 fmt: mailx
836 838
837 839 $(FIRST_SUBDIRS) $(BWOSDIRS) $(SUBDIRS) $(AUDITSUBDIRS): FRC
838 840 @if [ -f $@/Makefile ]; then \
839 841 cd $@; pwd; $(MAKE) $(TARGET); \
840 842 else \
841 843 true; \
842 844 fi
843 845
844 846 FRC:
↓ open down ↓ |
286 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX