Lines Matching +full:x +full:- +full:mask +full:-
2 * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved.
17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
253 printf("# Port counters: %s port %d (CapMask: 0x%02X)\n%s", in output_aggregate_perfcounters()
386 printf("# Port extended counters: %s port %d (CapMask: 0x%02X CapMask2: 0x%07X)\n%s", in output_aggregate_perfcounters_ext()
427 ("PerfMgt ClassPortInfo CapMask 0x%02X; No extended counter support indicated\n", in dump_perfcounters()
444 "(CapMask: 0x%02X CapMask2: 0x%07X)\n%s", in dump_perfcounters()
449 "(CapMask: 0x%02X)\n%s", in dump_perfcounters()
454 static void reset_counters(int extended, int timeout, int mask, in reset_counters() argument
459 if (!performance_reset_via(pc, portid, port, mask, timeout, in reset_counters()
463 if (!performance_reset_via(pc, portid, port, mask, timeout, in reset_counters()
476 static void common_func(ib_portid_t * portid, int port_num, int mask, in common_func() argument
496 if (reset && !performance_reset_via(pc, portid, port, mask, ibd_timeout, in common_func()
501 static void xmt_sl_query(ib_portid_t * portid, int port, int mask) in xmt_sl_query() argument
503 common_func(portid, port, mask, !reset_only, (reset_only || reset), in xmt_sl_query()
508 static void rcv_sl_query(ib_portid_t * portid, int port, int mask) in rcv_sl_query() argument
510 common_func(portid, port, mask, !reset_only, (reset_only || reset), in rcv_sl_query()
515 static void xmt_disc_query(ib_portid_t * portid, int port, int mask) in xmt_disc_query() argument
517 common_func(portid, port, mask, !reset_only, (reset_only || reset), in xmt_disc_query()
522 static void rcv_err_query(ib_portid_t * portid, int port, int mask) in rcv_err_query() argument
524 common_func(portid, port, mask, !reset_only, (reset_only || reset), in rcv_err_query()
530 int port, uint64_t mask, unsigned timeout, in ext_speeds_reset_via() argument
534 int lid = dest->lid; in ext_speeds_reset_via()
536 DEBUG("lid %u port %d mask 0x%" PRIx64, lid, port, mask); in ext_speeds_reset_via()
538 if (lid == -1) { in ext_speeds_reset_via()
543 if (!mask) in ext_speeds_reset_via()
544 mask = ~0; in ext_speeds_reset_via()
553 mad_set_field64(rcvbuf, 0, IB_PESC_COUNTER_SELECT_F, mask); in ext_speeds_reset_via()
558 if (!dest->qp) in ext_speeds_reset_via()
559 dest->qp = 1; in ext_speeds_reset_via()
560 if (!dest->qkey) in ext_speeds_reset_via()
561 dest->qkey = IB_DEFAULT_QP1_QKEY; in ext_speeds_reset_via()
597 int mask = ext_mask; in extended_speeds_query() local
601 common_func(portid, port, mask, 1, 0, in extended_speeds_query()
602 "PortExtendedSpeedsCounters with RS-FEC Active", in extended_speeds_query()
606 common_func(portid, port, mask, 1, 0, in extended_speeds_query()
617 static void oprcvcounters_query(ib_portid_t * portid, int port, int mask) in oprcvcounters_query() argument
619 common_func(portid, port, mask, !reset_only, (reset_only || reset), in oprcvcounters_query()
624 static void flowctlcounters_query(ib_portid_t * portid, int port, int mask) in flowctlcounters_query() argument
626 common_func(portid, port, mask, !reset_only, (reset_only || reset), in flowctlcounters_query()
631 static void vloppackets_query(ib_portid_t * portid, int port, int mask) in vloppackets_query() argument
633 common_func(portid, port, mask, !reset_only, (reset_only || reset), in vloppackets_query()
638 static void vlopdata_query(ib_portid_t * portid, int port, int mask) in vlopdata_query() argument
640 common_func(portid, port, mask, !reset_only, (reset_only || reset), in vlopdata_query()
645 static void vlxmitflowctlerrors_query(ib_portid_t * portid, int port, int mask) in vlxmitflowctlerrors_query() argument
647 common_func(portid, port, mask, !reset_only, (reset_only || reset), in vlxmitflowctlerrors_query()
652 static void vlxmitcounters_query(ib_portid_t * portid, int port, int mask) in vlxmitcounters_query() argument
654 common_func(portid, port, mask, !reset_only, (reset_only || reset), in vlxmitcounters_query()
659 static void swportvlcong_query(ib_portid_t * portid, int port, int mask) in swportvlcong_query() argument
661 common_func(portid, port, mask, !reset_only, (reset_only || reset), in swportvlcong_query()
666 static void rcvcc_query(ib_portid_t * portid, int port, int mask) in rcvcc_query() argument
668 common_func(portid, port, mask, !reset_only, (reset_only || reset), in rcvcc_query()
673 static void slrcvfecn_query(ib_portid_t * portid, int port, int mask) in slrcvfecn_query() argument
675 common_func(portid, port, mask, !reset_only, (reset_only || reset), in slrcvfecn_query()
680 static void slrcvbecn_query(ib_portid_t * portid, int port, int mask) in slrcvbecn_query() argument
682 common_func(portid, port, mask, !reset_only, (reset_only || reset), in slrcvbecn_query()
687 static void xmitcc_query(ib_portid_t * portid, int port, int mask) in xmitcc_query() argument
689 common_func(portid, port, mask, !reset_only, (reset_only || reset), in xmitcc_query()
694 static void vlxmittimecc_query(ib_portid_t * portid, int port, int mask) in vlxmittimecc_query() argument
696 common_func(portid, port, mask, !reset_only, (reset_only || reset), in vlxmittimecc_query()
718 case 'x': in process_opt()
721 case 'X': in process_opt()
797 return -1; in process_opt()
806 int mask = 0xffff; in main() local
819 {"extended", 'x', 0, NULL, "show extended port counters"}, in main()
820 {"xmtsl", 'X', 0, NULL, "show Xmt SL port counters"}, in main()
849 "-x 32 1\t# read extended performance counters from lid 32, port 1", in main()
850 "-a 32\t\t# read performance counters from lid 32, all ports", in main()
851 "-r 32 1\t# read performance counters and reset", in main()
852 "-x -r 32 1\t# read extended performance counters and reset", in main()
853 "-R 0x20 1\t# reset performance counters of port 1 only", in main()
854 "-x -R 0x20 1\t# reset extended performance counters of port 1 only", in main()
855 "-R -a 32\t# reset performance counters of all ports", in main()
856 "-R 32 2 0x0fff\t# reset only error counters of port 2", in main()
857 "-R 32 2 0xf000\t# reset only non-error counters of port 2", in main()
858 "-a 32 1-10\t# read performance counters from lid 32, port 1-10, aggregate output", in main()
859 "-l 32 1-10\t# read performance counters from lid 32, port 1-10, output each port", in main()
860 "-a 32 1,4,8\t# read performance counters from lid 32, port 1, 4, and 8, aggregate output", in main()
861 "-l 32 1,4,8\t# read performance counters from lid 32, port 1, 4, and 8, output each port", in main()
868 argc -= optind; in main()
880 else if ((tmpstr = strchr(argv[1], '-'))) { in main()
902 mask = ext_mask; in main()
944 xmt_sl_query(&portid, port, mask); in main()
949 rcv_sl_query(&portid, port, mask); in main()
954 xmt_disc_query(&portid, port, mask); in main()
959 rcv_err_query(&portid, port, mask); in main()
969 oprcvcounters_query(&portid, port, mask); in main()
974 flowctlcounters_query(&portid, port, mask); in main()
979 vloppackets_query(&portid, port, mask); in main()
984 vlopdata_query(&portid, port, mask); in main()
989 vlxmitflowctlerrors_query(&portid, port, mask); in main()
994 vlxmitcounters_query(&portid, port, mask); in main()
999 swportvlcong_query(&portid, port, mask); in main()
1004 rcvcc_query(&portid, port, mask); in main()
1009 slrcvfecn_query(&portid, port, mask); in main()
1014 slrcvbecn_query(&portid, port, mask); in main()
1019 xmitcc_query(&portid, port, mask); in main()
1024 vlxmittimecc_query(&portid, port, mask); in main()
1097 mask |= (1 << 16); /* reset portxmitwait */ in main()
1099 mask |= (1 << 17); /* reset qp1dropped */ in main()
1103 mask |= 0xfff0000; in main()
1105 mask |= (1 << 28); in main()
1107 mask |= (1 << 29); in main()
1112 reset_counters(extended, ibd_timeout, mask, &portid, i); in main()
1115 reset_counters(extended, ibd_timeout, mask, &portid, ports[i]); in main()
1117 reset_counters(extended, ibd_timeout, mask, &portid, port); in main()