diff options
| author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2020-03-04 11:34:31 +0000 |
|---|---|---|
| committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2020-03-04 11:34:31 +0000 |
| commit | c175f5f01ce89aee1b6fd2e10a595027710c9832 (patch) | |
| tree | d7e810d8438c73ff1f705f851dea54fc2f1f8be2 /usr/src/cmd/dlstat | |
| parent | 8b3260f28797ca8e7c1d1573394f2eaa32abb5be (diff) | |
| parent | 3d349c3119b5b6e21daba1ce004cf4625b25d67f (diff) | |
| download | illumos-joyent-c175f5f01ce89aee1b6fd2e10a595027710c9832.tar.gz | |
[illumos-gate merge]
commit 3d349c3119b5b6e21daba1ce004cf4625b25d67f
12342 bandwidth display badly formatted in flowstat, dlstat, and dladm
commit 9dc2843d4266243e87f5d9de7a90b86235a6da08
4508 flowadm not working as documented, or documentation incorrect
4538 flowadm man page does not list lport and rport as output fields for show-flow
7210 flowadm does not have show-usage command described in the manual page
commit bc576fff266b5ed3db0ef5d8196b7440cdefbb8b
12325 ahci: variable may be used uninitialized
commit 45948e49c407e4fc264fdd289ed632d6639e009d
11493 aggr needs support for multiple pseudo rx groups
commit b69c34dad3717624ff6b4f32b71014ee05b6a678
12271 "name" member of "struct option" should be const
commit 84de666edc7f7d835057ae4807a387447c086bcf
11490 SRS ring polling disabled for VLANs
11491 Want DLS bypass for VLAN traffic
11492 add VLVF bypass to ixgbe core
2869 duplicate packets with vnics over aggrs
11489 DLS stat delete and aggr kstat can deadlock
commit 20f5062b9c5143e4b4bd21245fcebdb21d40c08c
12344 zpool iostat output formatting error
Conflicts:
usr/src/uts/common/sys/mac_impl.h
usr/src/uts/common/io/mac/mac_datapath_setup.c
usr/src/uts/common/io/mac/mac.c
usr/src/uts/common/io/ixgbe/ixgbe_sw.h
usr/src/uts/common/io/ixgbe/ixgbe_main.c
usr/src/uts/common/io/aggr/aggr_grp.c
usr/src/man/man1m/flowadm.1m
Diffstat (limited to 'usr/src/cmd/dlstat')
| -rw-r--r-- | usr/src/cmd/dlstat/dlstat.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/usr/src/cmd/dlstat/dlstat.c b/usr/src/cmd/dlstat/dlstat.c index 8c1749475b..d11e623206 100644 --- a/usr/src/cmd/dlstat/dlstat.c +++ b/usr/src/cmd/dlstat/dlstat.c @@ -27,6 +27,10 @@ * Copyright 2017 Joyent, Inc. */ +/* + * Copyright 2020 Peter Tribble. + */ + #include <stdio.h> #include <ctype.h> #include <locale.h> @@ -417,7 +421,7 @@ typedef struct history_fields_buf_s { char h_rbytes[10]; char h_opackets[9]; char h_obytes[10]; - char h_bandwidth[14]; + char h_bandwidth[15]; } history_fields_buf_t; static ofmt_field_t history_fields[] = { @@ -433,7 +437,7 @@ static ofmt_field_t history_fields[] = { offsetof(history_fields_buf_t, h_opackets), print_default_cb}, { "OBYTES", 11, offsetof(history_fields_buf_t, h_obytes), print_default_cb}, -{ "BANDWIDTH", 15, +{ "BANDWIDTH", 16, offsetof(history_fields_buf_t, h_bandwidth), print_default_cb}, { NULL, 0, 0, NULL}}; @@ -446,7 +450,7 @@ typedef struct history_l_fields_buf_s { char hl_etime[13]; char hl_rbytes[8]; char hl_obytes[8]; - char hl_bandwidth[14]; + char hl_bandwidth[15]; } history_l_fields_buf_t; static ofmt_field_t history_l_fields[] = { @@ -461,7 +465,7 @@ static ofmt_field_t history_l_fields[] = { offsetof(history_l_fields_buf_t, hl_rbytes), print_default_cb}, { "OBYTES", 9, offsetof(history_l_fields_buf_t, hl_obytes), print_default_cb}, -{ "BANDWIDTH", 15, +{ "BANDWIDTH", 16, offsetof(history_l_fields_buf_t, hl_bandwidth), print_default_cb}, { NULL, 0, 0, NULL}} ; @@ -569,7 +573,7 @@ show_history_time(dladm_usage_t *history, void *arg) { show_history_state_t *state = arg; char buf[DLADM_STRSIZE]; - history_l_fields_buf_t ubuf; + history_l_fields_buf_t ubuf; time_t time; double bw; dladm_status_t status; @@ -754,7 +758,7 @@ do_show_history(int argc, char *argv[], const char *use) die("show-link -h requires a file"); if (optind == (argc-1)) { - uint32_t flags; + uint32_t flags; resource = argv[optind]; if (!state.hs_showall && @@ -1500,7 +1504,7 @@ static int show_queried_stats(dladm_handle_t dh, datalink_id_t linkid, void *arg) { show_state_t *state = arg; - int i; + int i; dladm_stat_chain_t *diff_stat; char linkname[DLPI_LINKNAME_MAX]; char zonename[DLADM_PROP_VAL_MAX + 1]; @@ -1654,7 +1658,7 @@ do_show(int argc, char *argv[], const char *use) ofmt_handle_t ofmt; ofmt_status_t oferr; uint_t ofmtflags = OFMT_RIGHTJUST; - ofmt_field_t *oftemplate; + ofmt_field_t *oftemplate; bzero(&state, sizeof (state)); opterr = 0; @@ -1855,7 +1859,7 @@ do_show_phys(int argc, char *argv[], const char *use) ofmt_handle_t ofmt; ofmt_status_t oferr; uint_t ofmtflags = OFMT_RIGHTJUST; - ofmt_field_t *oftemplate; + ofmt_field_t *oftemplate; bzero(&state, sizeof (state)); opterr = 0; @@ -2037,7 +2041,7 @@ do_show_link(int argc, char *argv[], const char *use) ofmt_handle_t ofmt; ofmt_status_t oferr; uint_t ofmtflags = OFMT_RIGHTJUST; - ofmt_field_t *oftemplate; + ofmt_field_t *oftemplate; bzero(&state, sizeof (state)); opterr = 0; @@ -2242,7 +2246,7 @@ do_show_aggr(int argc, char *argv[], const char *use) ofmt_handle_t ofmt; ofmt_status_t oferr; uint_t ofmtflags = OFMT_RIGHTJUST; - ofmt_field_t *oftemplate; + ofmt_field_t *oftemplate; bzero(&state, sizeof (state)); opterr = 0; |
