Lines Matching refs:port

106 			"-R(eset_only) -t(imeout) timeout_ms -V(ersion) -h(elp)] [<lid|guid> [[port] [reset_mask]]]\n",
109 fprintf(stderr, "\t\t%s\t\t# read local port's performance counters\n", basename);
110 fprintf(stderr, "\t\t%s 32 1\t\t# read performance counters from lid 32, port 1\n", basename);
111 fprintf(stderr, "\t\t%s -e 32 1\t# read extended performance counters from lid 32, port 1\n", basename);
115 fprintf(stderr, "\t\t%s -R 0x20 1\t# reset performance counters of port 1 only\n", basename);
116 fprintf(stderr, "\t\t%s -e -R 0x20 1\t# reset extended performance counters of port 1 only\n", basename);
118 fprintf(stderr, "\t\t%s -R 32 2 0x0fff\t# reset only error counters of port 2\n", basename);
119 fprintf(stderr, "\t\t%s -R 32 2 0xf000\t# reset only non-error counters of port 2\n", basename);
242 printf("# Port counters: %s port %d\n%s", portid2str(portid), ALL_PORTS, buf);
291 printf("# Port counters: %s port %d\n%s", portid2str(portid), ALL_PORTS, buf);
295 int port, int aggregate)
300 if (!port_performance_query(pc, portid, port, timeout))
310 if (!port_performance_ext_query(pc, portid, port, timeout))
319 printf("# Port counters: %s port %d\n%s", portid2str(portid), port, buf);
322 static void reset_counters(int extended, int timeout, int mask, ib_portid_t *portid, int port)
325 if (!port_performance_reset(pc, portid, port, mask, timeout))
328 if (!port_performance_ext_reset(pc, portid, port, mask, timeout))
344 int port = 0;
395 port = ALL_PORTS;
411 IBERROR("can't resolve SM destination port %s", optarg);
436 port = strtoul(argv[1], 0, 0);
444 IBERROR("can't resolve destination port %s", argv[0]);
446 if (ib_resolve_self(&portid, &port, 0) < 0)
447 IBERROR("can't resolve self port %s", argv[0]);
451 if (!perf_classportinfo_query(pc, &portid, port, timeout))
457 if (!all_ports && port == ALL_PORTS)
463 if (all_ports_loop || (loop_ports && (all_ports || port == ALL_PORTS))) {
485 if (all_ports_loop || (loop_ports && (all_ports || port == ALL_PORTS))) {
497 dump_perfcounters(extended, timeout, cap_mask, &portid, port, 0);
504 if (all_ports_loop || (loop_ports && (all_ports || port == ALL_PORTS))) {
509 reset_counters(extended, timeout, mask, &portid, port);