test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH V1 0/1] power_telemetry: python3 support and script optimize
  2020-03-04  8:27 [dts] [PATCH V1 0/1] power_telemetry: python3 support and script optimize yufengmx
@ 2020-03-04  8:25 ` Mo, YufengX
  2020-03-04  8:27 ` [dts] [PATCH V1 1/1] tests/power_telemetry: " yufengmx
  1 sibling, 0 replies; 4+ messages in thread
From: Mo, YufengX @ 2020-03-04  8:25 UTC (permalink / raw)
  To: dts, Yao, Lei A

[-- Attachment #1: Type: text/plain, Size: 742 bytes --]

Tested-by:  yufengx.mo@intel.com

> -----Original Message-----
> From: Mo, YufengX
> Sent: Wednesday, March 4, 2020 4:28 PM
> To: dts@dpdk.org; Yao, Lei A <lei.a.yao@intel.com>
> Cc: Mo, YufengX <yufengx.mo@intel.com>
> Subject: [dts][PATCH V1 0/1] power_telemetry: python3 support and script optimize
> 
> 
> . python3 support.
> 
> . for dpdk use hard code, change core mask to hard code.
> 
> . set longer traffic duration for stability.
> 
> . use ^C to take the place of killall.
> 
> yufengmx (1):
>   tests/power_telemetry: python3 support and script optimize
> 
>  tests/TestSuite_power_telemetry.py | 30 ++++++++++++++++--------------
>  1 file changed, 16 insertions(+), 14 deletions(-)
> 
> --
> 2.21.0


[-- Attachment #2: TestPowerTelemetry.log --]
[-- Type: application/octet-stream, Size: 53562 bytes --]

04/03/2020 13:40:11                            dts: 
TEST SUITE : TestPowerTelemetry
04/03/2020 13:40:11                            dts: NIC :        fortville_25g
04/03/2020 13:40:12              dut.10.67.xxx.xxx: 
04/03/2020 13:40:12                         tester: 
04/03/2020 13:40:12              dut.10.67.xxx.xxx: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
04/03/2020 13:40:12              dut.10.67.xxx.xxx: acpi-cpufreq
04/03/2020 13:40:12              dut.10.67.xxx.xxx: rm -rf ./app/test/test_resource_c.res.o
04/03/2020 13:40:12              dut.10.67.xxx.xxx: 
04/03/2020 13:40:12              dut.10.67.xxx.xxx: rm -rf ./app/test/test_resource_tar.res.o
04/03/2020 13:40:12              dut.10.67.xxx.xxx: 
04/03/2020 13:40:12              dut.10.67.xxx.xxx: rm -rf ./app/test/test_pci_sysfs.res.o
04/03/2020 13:40:12              dut.10.67.xxx.xxx: 
04/03/2020 13:40:12              dut.10.67.xxx.xxx: make -j 94 -C ./examples/l3fwd-power 
04/03/2020 13:40:13              dut.10.67.xxx.xxx: make: Entering directory '/home/myf/dpdk_works/dpdk_2005-rc0/examples/l3fwd-power'
make: Leaving directory '/home/myf/dpdk_works/dpdk_2005-rc0/examples/l3fwd-power'
04/03/2020 13:40:13              dut.10.67.xxx.xxx: ls -F /home/myf/dpdk_works/dpdk_2005-rc0/examples/l3fwd-power/build | grep '*'
04/03/2020 13:40:13              dut.10.67.xxx.xxx: l3fwd-power*
04/03/2020 13:40:13              dut.10.67.xxx.xxx: rm -f /home/myf/dpdk_works/dpdk_2005-rc0/dpdk_telemetry_client.py;cp -f /home/myf/dpdk_works/dpdk_2005-rc0/usertools/dpdk-telemetry-client.py /home/myf/dpdk_works/dpdk_2005-rc0/dpdk_telemetry_client.py;sed -i -e 's/class Client:/class Client(object):/g' /home/myf/dpdk_works/dpdk_2005-rc0/dpdk_telemetry_client.py
04/03/2020 13:40:13              dut.10.67.xxx.xxx: 
04/03/2020 13:40:13              dut.10.67.xxx.xxx: scp -v /tmp/query_tool.py root@10.67.117.102:/home/myf/dpdk_works/dpdk_2005-rc0
04/03/2020 13:40:15              dut.10.67.xxx.xxx: chmod 777 /home/myf/dpdk_works/dpdk_2005-rc0/query_tool.py
04/03/2020 13:40:15              dut.10.67.xxx.xxx: 
04/03/2020 13:40:15             TestPowerTelemetry: Test Case test_perf_busy_percent Begin
04/03/2020 13:40:15              dut.10.67.xxx.xxx: 
04/03/2020 13:40:15                         tester: 
04/03/2020 13:40:15              dut.10.67.xxx.xxx: /home/myf/dpdk_works/dpdk_2005-rc0/examples/l3fwd-power/build/l3fwd-power  -c 0x6 -n 4 --telemetry -- --telemetry -p 0x1 -P --config="(0,0,2)" 
04/03/2020 13:40:15              dut.10.67.xxx.xxx: /home/myf/dpdk_works/dpdk_2005-rc0/examples/l3fwd-power/build/l3fwd-power: unrecognized option '--telemetry'
EAL: Detected 96 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: PCI device 0000:00:04.0 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.1 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.2 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.3 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.4 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.5 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.6 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.7 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:1a:00.0 on NUMA socket 0
EAL:   probe driver: 8086:37d2 net_i40e
EAL: PCI device 0000:1a:00.1 on NUMA socket 0
EAL:   probe driver: 8086:37d2 net_i40e
EAL: PCI device 0000:1a:00.2 on NUMA socket 0
EAL:   probe driver: 8086:37d3 net_i40e
EAL: PCI device 0000:1a:00.3 on NUMA socket 0
EAL:   probe driver: 8086:37d3 net_i40e
EAL: PCI device 0000:80:04.0 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.1 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.2 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.3 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.4 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.5 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.6 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.7 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:d8:00.0 on NUMA socket 1
EAL:   probe driver: 8086:158b net_i40e
EAL: PCI device 0000:d8:00.1 on NUMA socket 1
EAL:   probe driver: 8086:158b net_i40e
telemetry mode is enabled
Promiscuous mode selected
POWER: Env isn't set yet!
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Initialized successfully for lcore 1 power management
POWER: Initialized successfully for lcore 2 power management
Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2... Port 0 modified RSS hash function based on hardware support,requested:0x20820 configured:0x820
 Address:3C:FD:FE:CF:35:28, Allocated mbuf pool on socket 0
LPM: Adding route 0x01010100 / 24 (0)
LPM: Adding route 0x02010100 / 24 (1)
LPM: Adding route 0x03010100 / 24 (2)
LPM: Adding route 0x04010100 / 24 (3)
LPM: Adding route 0x05010100 / 24 (4)
LPM: Adding route 0x06010100 / 24 (5)
LPM: Adding route 0x07010100 / 24 (6)
LPM: Adding route 0x08010100 / 24 (7)
txq=1,0,0 txq=2,1,0 

Skipping disabled port 1

Initializing rx queues on lcore 1 ... 
Initializing rx queues on lcore 2 ... rxq=0,0,0 

Checking link statusdone
Port 0 Link Up - speed 25000 Mbps - full-duplex
04/03/2020 13:40:15                         pktgen: test port 0 map gen port 0
04/03/2020 13:40:15                         pktgen: test port 1 map gen port 1
04/03/2020 13:40:15                         pktgen: test port 1 map gen port 1
04/03/2020 13:40:15                         pktgen: test port 0 map gen port 0
04/03/2020 13:40:15                         pktgen: {'arp': '-',
 'cores': [0],
 'description': 'Ethernet Controller XXV710 for 25GbE SFP28',
 'dest': '3c:fd:fe:cf:36:79',
 'driver': 'net_i40e',
 'fc': 'none',
 'fc_supported': 'no',
 'grat_arp': 'off',
 'hw_mac': '3c:fd:fe:cf:32:31',
 'index': 1,
 'ipv6': 'off',
 'is_fc_supported': False,
 'is_led_supported': True,
 'is_link_supported': True,
 'is_prom_supported': True,
 'is_virtual': 'no',
 'is_vxlan_supported': 'yes',
 'layer_mode': 'Ethernet',
 'led_change_supported': 'yes',
 'link': 'UP',
 'link_change_supported': 'yes',
 'mult': 'off',
 'numa': 0,
 'pci_addr': '0000:00:07.0',
 'prom': 'off',
 'prom_supported': 'yes',
 'rx': {'caps': ['flow_stats', 'latency'], 'counters': 127},
 'rx_filter_mode': 'hardware match',
 'rx_queue': 'off',
 'speed': 25.0,
 'src_ipv4': '-',
 'src_mac': '3c:fd:fe:cf:32:31',
 'status': 'IDLE',
 'supp_speeds': [],
 'vlan': '-',
 'vxlan_fs': '-'}
04/03/2020 13:40:15                         pktgen: trex port <1> not support flow control
04/03/2020 13:40:15                         pktgen: begin traffic ......
04/03/2020 13:40:15                         pktgen: {'ports': [0, 1], 'mult': '100.0%', 'core_mask': None, 'force': True}
04/03/2020 13:40:33                         pktgen: begin get port statistic ...
04/03/2020 13:40:33                         pktgen: {'options': {'pcap': <Ether  dst=3c:fd:fe:cf:35:28 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
             'stream_config': {'rate': 100.0,
                               'transmit_mode': 'continuous',
                               'txmode': {}}},
 'pcap_file': <Ether  dst=3c:fd:fe:cf:35:28 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
 'rx_port': 1,
 'tx_port': 0}
04/03/2020 13:40:33                         pktgen: {0: {'ibytes': 17071159296,
     'ierrors': 0,
     'ipackets': 266736885,
     'obytes': 18861457984,
     'oerrors': 0,
     'opackets': 294710284,
     'rx_bps': 7602234880.0,
     'rx_bps_L1': 9977931520.0,
     'rx_pps': 14848104.0,
     'rx_util': 39.91172608,
     'tx_bps': 8360742400.0,
     'tx_bps_L1': 10973475200.000002,
     'tx_pps': 16329580.0,
     'tx_util': 43.893900800000004},
 1: {'ibytes': 0,
     'ierrors': 0,
     'ipackets': 0,
     'obytes': 18855085184,
     'oerrors': 0,
     'opackets': 294610711,
     'rx_bps': 0.0,
     'rx_bps_L1': 0,
     'rx_pps': 0.0,
     'rx_util': 0.0,
     'tx_bps': 8360728576.0,
     'tx_bps_L1': 10973456256.0,
     'tx_pps': 16329548.0,
     'tx_util': 43.893825024},
 'flow_stats': {},
 'global': {'active_flows': 0.0,
            'active_sockets': 0,
            'bw_per_core': 33.723480224609375,
            'cpu_util': 99.16812133789062,
            'cpu_util_raw': 100.0,
            'open_flows': 0.0,
            'platform_factor': 1.0,
            'queue_full': 2052419,
            'rx_bps': 7602234880.0,
            'rx_core_pps': 0.0,
            'rx_cpu_util': 0.0,
            'rx_drop_bps': 9119236096.0,
            'rx_pps': 14848104.0,
            'socket_util': 0.0,
            'total_alloc_error': 0,
            'total_clients': 0,
            'total_servers': 0,
            'tx_bps': 16721470464.0,
            'tx_cps': 0.0,
            'tx_expected_bps': 0.0,
            'tx_expected_cps': 0.0,
            'tx_expected_pps': 0.0,
            'tx_pps': 32659128.0},
 'latency': {},
 'total': {'ibytes': 17071159296,
           'ierrors': 0,
           'ipackets': 266736885,
           'obytes': 37716543168,
           'oerrors': 0,
           'opackets': 589320995,
           'rx_bps': 7602234880.0,
           'rx_bps_L1': 9977931520.0,
           'rx_pps': 14848104.0,
           'rx_util': 39.91172608,
           'tx_bps': 16721470976.0,
           'tx_bps_L1': 21946931456.0,
           'tx_pps': 32659128.0,
           'tx_util': 87.787725824}}
04/03/2020 13:40:33                         pktgen: {'ibytes': 17071159296,
 'ierrors': 0,
 'ipackets': 266736885,
 'obytes': 18861457984,
 'oerrors': 0,
 'opackets': 294710284,
 'rx_bps': 7602234880.0,
 'rx_bps_L1': 9977931520.0,
 'rx_pps': 14848104.0,
 'rx_util': 39.91172608,
 'tx_bps': 8360742400.0,
 'tx_bps_L1': 10973475200.000002,
 'tx_pps': 16329580.0,
 'tx_util': 43.893900800000004}
04/03/2020 13:40:33                         pktgen: Tx Port 0 stats: 
tx_port: 0,  tx_bps: 8360742400.000000, tx_pps: 16329580.000000 
04/03/2020 13:40:33                         pktgen: {'ibytes': 0,
 'ierrors': 0,
 'ipackets': 0,
 'obytes': 18855085184,
 'oerrors': 0,
 'opackets': 294610711,
 'rx_bps': 0.0,
 'rx_bps_L1': 0,
 'rx_pps': 0.0,
 'rx_util': 0.0,
 'tx_bps': 8360728576.0,
 'tx_bps_L1': 10973456256.0,
 'tx_pps': 16329548.0,
 'tx_util': 43.893825024}
04/03/2020 13:40:33                         pktgen: Rx Port 1 stats: 
rx_port: 1,  rx_bps: 0.000000, rx_pps: 0.000000
04/03/2020 13:40:33                         pktgen: {'options': {'pcap': <Ether  dst=3c:fd:fe:cf:35:29 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
             'stream_config': {'rate': 100.0,
                               'transmit_mode': 'continuous',
                               'txmode': {}}},
 'pcap_file': <Ether  dst=3c:fd:fe:cf:35:29 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
 'rx_port': 0,
 'tx_port': 1}
04/03/2020 13:40:33                         pktgen: {0: {'ibytes': 17081307008,
     'ierrors': 0,
     'ipackets': 266895424,
     'obytes': 18872460032,
     'oerrors': 0,
     'opackets': 294882208,
     'rx_bps': 7602234880.0,
     'rx_bps_L1': 9977931520.0,
     'rx_pps': 14848104.0,
     'rx_util': 39.91172608,
     'tx_bps': 8360742400.0,
     'tx_bps_L1': 10973475200.000002,
     'tx_pps': 16329580.0,
     'tx_util': 43.893900800000004},
 1: {'ibytes': 0,
     'ierrors': 0,
     'ipackets': 0,
     'obytes': 18866145152,
     'oerrors': 0,
     'opackets': 294783535,
     'rx_bps': 0.0,
     'rx_bps_L1': 0,
     'rx_pps': 0.0,
     'rx_util': 0.0,
     'tx_bps': 8360728576.0,
     'tx_bps_L1': 10973456256.0,
     'tx_pps': 16329548.0,
     'tx_util': 43.893825024},
 'flow_stats': {},
 'global': {'active_flows': 0.0,
            'active_sockets': 0,
            'bw_per_core': 33.723480224609375,
            'cpu_util': 99.16812133789062,
            'cpu_util_raw': 100.0,
            'open_flows': 0.0,
            'platform_factor': 1.0,
            'queue_full': 2053555,
            'rx_bps': 7602234880.0,
            'rx_core_pps': 0.0,
            'rx_cpu_util': 0.0,
            'rx_drop_bps': 9119236096.0,
            'rx_pps': 14848104.0,
            'socket_util': 0.0,
            'total_alloc_error': 0,
            'total_clients': 0,
            'total_servers': 0,
            'tx_bps': 16721470464.0,
            'tx_cps': 0.0,
            'tx_expected_bps': 0.0,
            'tx_expected_cps': 0.0,
            'tx_expected_pps': 0.0,
            'tx_pps': 32659128.0},
 'latency': {},
 'total': {'ibytes': 17081307008,
           'ierrors': 0,
           'ipackets': 266895424,
           'obytes': 37738605184,
           'oerrors': 0,
           'opackets': 589665743,
           'rx_bps': 7602234880.0,
           'rx_bps_L1': 9977931520.0,
           'rx_pps': 14848104.0,
           'rx_util': 39.91172608,
           'tx_bps': 16721470976.0,
           'tx_bps_L1': 21946931456.0,
           'tx_pps': 32659128.0,
           'tx_util': 87.787725824}}
04/03/2020 13:40:33                         pktgen: {'ibytes': 0,
 'ierrors': 0,
 'ipackets': 0,
 'obytes': 18866145152,
 'oerrors': 0,
 'opackets': 294783535,
 'rx_bps': 0.0,
 'rx_bps_L1': 0,
 'rx_pps': 0.0,
 'rx_util': 0.0,
 'tx_bps': 8360728576.0,
 'tx_bps_L1': 10973456256.0,
 'tx_pps': 16329548.0,
 'tx_util': 43.893825024}
04/03/2020 13:40:33                         pktgen: Tx Port 1 stats: 
tx_port: 1,  tx_bps: 8360728576.000000, tx_pps: 16329548.000000 
04/03/2020 13:40:33                         pktgen: {'ibytes': 17081307008,
 'ierrors': 0,
 'ipackets': 266895424,
 'obytes': 18872460032,
 'oerrors': 0,
 'opackets': 294882208,
 'rx_bps': 7602234880.0,
 'rx_bps_L1': 9977931520.0,
 'rx_pps': 14848104.0,
 'rx_util': 39.91172608,
 'tx_bps': 8360742400.0,
 'tx_bps_L1': 10973475200.000002,
 'tx_pps': 16329580.0,
 'tx_util': 43.893900800000004}
04/03/2020 13:40:33                         pktgen: Rx Port 0 stats: 
rx_port: 0,  rx_bps: 7602234880.000000, rx_pps: 14848104.000000
04/03/2020 13:40:33                         pktgen: throughput: pps_rx 14848104.000000, bps_rx 7602234880.000000
04/03/2020 13:40:33              dut.10.67.xxx.xxx: /home/myf/dpdk_works/dpdk_2005-rc0/query_tool.py -j /home/myf/dpdk_works/dpdk_2005-rc0/telemetry_data_on_traffic.json -f /var/run/some_client
04/03/2020 13:40:36              dut.10.67.xxx.xxx: Get metrics done
04/03/2020 13:40:36              dut.10.67.xxx.xxx: scp -v root@10.67.117.102:/home/myf/dpdk_works/dpdk_2005-rc0/telemetry_data_on_traffic.json /tmp/telemetry_data_on_traffic.json
04/03/2020 13:40:55                         pktgen: begin get port statistic ...
04/03/2020 13:40:55                         pktgen: {'options': {'pcap': <Ether  dst=3c:fd:fe:cf:35:28 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
             'stream_config': {'rate': 100.0,
                               'transmit_mode': 'continuous',
                               'txmode': {}}},
 'pcap_file': <Ether  dst=3c:fd:fe:cf:35:28 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
 'rx_port': 1,
 'tx_port': 0}
04/03/2020 13:40:55                         pktgen: {0: {'ibytes': 37826242560,
     'ierrors': 0,
     'ipackets': 591035063,
     'obytes': 41704956416,
     'oerrors': 0,
     'opackets': 651639958,
     'rx_bps': 7595253760.0,
     'rx_bps_L1': 9968770560.0,
     'rx_pps': 14834480.0,
     'rx_util': 39.87508224,
     'tx_bps': 8335184384.0,
     'tx_bps_L1': 10939931104.0,
     'tx_pps': 16279667.0,
     'tx_util': 43.759724416},
 1: {'ibytes': 0,
     'ierrors': 0,
     'ipackets': 0,
     'obytes': 41698626816,
     'oerrors': 0,
     'opackets': 651541054,
     'rx_bps': 0.0,
     'rx_bps_L1': 0,
     'rx_pps': 0.0,
     'rx_util': 0.0,
     'tx_bps': 8335154176.0,
     'tx_bps_L1': 10939890016.000002,
     'tx_pps': 16279599.0,
     'tx_util': 43.759560064000006},
 'flow_stats': {},
 'global': {'active_flows': 0.0,
            'active_sockets': 0,
            'bw_per_core': 33.3411750793457,
            'cpu_util': 99.99851989746094,
            'cpu_util_raw': 100.0,
            'open_flows': 0.0,
            'platform_factor': 1.0,
            'queue_full': 4636383,
            'rx_bps': 7595253760.0,
            'rx_core_pps': 0.0,
            'rx_cpu_util': 0.0,
            'rx_drop_bps': 9075086336.0,
            'rx_pps': 14834480.0,
            'socket_util': 0.0,
            'total_alloc_error': 0,
            'total_clients': 0,
            'total_servers': 0,
            'tx_bps': 16670340096.0,
            'tx_cps': 0.0,
            'tx_expected_bps': 0.0,
            'tx_expected_cps': 0.0,
            'tx_expected_pps': 0.0,
            'tx_pps': 32559266.0},
 'latency': {},
 'total': {'ibytes': 37826242560,
           'ierrors': 0,
           'ipackets': 591035063,
           'obytes': 83403583232,
           'oerrors': 0,
           'opackets': 1303181012,
           'rx_bps': 7595253760.0,
           'rx_bps_L1': 9968770560.0,
           'rx_pps': 14834480.0,
           'rx_util': 39.87508224,
           'tx_bps': 16670338560.0,
           'tx_bps_L1': 21879821120.0,
           'tx_pps': 32559266.0,
           'tx_util': 87.51928448000001}}
04/03/2020 13:40:55                         pktgen: {'ibytes': 37826242560,
 'ierrors': 0,
 'ipackets': 591035063,
 'obytes': 41704956416,
 'oerrors': 0,
 'opackets': 651639958,
 'rx_bps': 7595253760.0,
 'rx_bps_L1': 9968770560.0,
 'rx_pps': 14834480.0,
 'rx_util': 39.87508224,
 'tx_bps': 8335184384.0,
 'tx_bps_L1': 10939931104.0,
 'tx_pps': 16279667.0,
 'tx_util': 43.759724416}
04/03/2020 13:40:55                         pktgen: Tx Port 0 stats: 
tx_port: 0,  tx_bps: 8335184384.000000, tx_pps: 16279667.000000 
04/03/2020 13:40:55                         pktgen: {'ibytes': 0,
 'ierrors': 0,
 'ipackets': 0,
 'obytes': 41698626816,
 'oerrors': 0,
 'opackets': 651541054,
 'rx_bps': 0.0,
 'rx_bps_L1': 0,
 'rx_pps': 0.0,
 'rx_util': 0.0,
 'tx_bps': 8335154176.0,
 'tx_bps_L1': 10939890016.000002,
 'tx_pps': 16279599.0,
 'tx_util': 43.759560064000006}
04/03/2020 13:40:55                         pktgen: Rx Port 1 stats: 
rx_port: 1,  rx_bps: 0.000000, rx_pps: 0.000000
04/03/2020 13:40:55                         pktgen: {'options': {'pcap': <Ether  dst=3c:fd:fe:cf:35:29 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
             'stream_config': {'rate': 100.0,
                               'transmit_mode': 'continuous',
                               'txmode': {}}},
 'pcap_file': <Ether  dst=3c:fd:fe:cf:35:29 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
 'rx_port': 0,
 'tx_port': 1}
04/03/2020 13:40:55                         pktgen: {0: {'ibytes': 37836494848,
     'ierrors': 0,
     'ipackets': 591195233,
     'obytes': 41715968512,
     'oerrors': 0,
     'opackets': 651812008,
     'rx_bps': 7595253760.0,
     'rx_bps_L1': 9968770560.0,
     'rx_pps': 14834480.0,
     'rx_util': 39.87508224,
     'tx_bps': 8335184384.0,
     'tx_bps_L1': 10939931104.0,
     'tx_pps': 16279667.0,
     'tx_util': 43.759724416},
 1: {'ibytes': 0,
     'ierrors': 0,
     'ipackets': 0,
     'obytes': 41709663488,
     'oerrors': 0,
     'opackets': 651713511,
     'rx_bps': 0.0,
     'rx_bps_L1': 0,
     'rx_pps': 0.0,
     'rx_util': 0.0,
     'tx_bps': 8335154176.0,
     'tx_bps_L1': 10939890016.000002,
     'tx_pps': 16279599.0,
     'tx_util': 43.759560064000006},
 'flow_stats': {},
 'global': {'active_flows': 0.0,
            'active_sockets': 0,
            'bw_per_core': 33.3411750793457,
            'cpu_util': 99.99851989746094,
            'cpu_util_raw': 100.0,
            'open_flows': 0.0,
            'platform_factor': 1.0,
            'queue_full': 4637719,
            'rx_bps': 7595253760.0,
            'rx_core_pps': 0.0,
            'rx_cpu_util': 0.0,
            'rx_drop_bps': 9075086336.0,
            'rx_pps': 14834480.0,
            'socket_util': 0.0,
            'total_alloc_error': 0,
            'total_clients': 0,
            'total_servers': 0,
            'tx_bps': 16670340096.0,
            'tx_cps': 0.0,
            'tx_expected_bps': 0.0,
            'tx_expected_cps': 0.0,
            'tx_expected_pps': 0.0,
            'tx_pps': 32559266.0},
 'latency': {},
 'total': {'ibytes': 37836494848,
           'ierrors': 0,
           'ipackets': 591195233,
           'obytes': 83425632000,
           'oerrors': 0,
           'opackets': 1303525519,
           'rx_bps': 7595253760.0,
           'rx_bps_L1': 9968770560.0,
           'rx_pps': 14834480.0,
           'rx_util': 39.87508224,
           'tx_bps': 16670338560.0,
           'tx_bps_L1': 21879821120.0,
           'tx_pps': 32559266.0,
           'tx_util': 87.51928448000001}}
04/03/2020 13:40:55                         pktgen: {'ibytes': 0,
 'ierrors': 0,
 'ipackets': 0,
 'obytes': 41709663488,
 'oerrors': 0,
 'opackets': 651713511,
 'rx_bps': 0.0,
 'rx_bps_L1': 0,
 'rx_pps': 0.0,
 'rx_util': 0.0,
 'tx_bps': 8335154176.0,
 'tx_bps_L1': 10939890016.000002,
 'tx_pps': 16279599.0,
 'tx_util': 43.759560064000006}
04/03/2020 13:40:55                         pktgen: Tx Port 1 stats: 
tx_port: 1,  tx_bps: 8335154176.000000, tx_pps: 16279599.000000 
04/03/2020 13:40:55                         pktgen: {'ibytes': 37836494848,
 'ierrors': 0,
 'ipackets': 591195233,
 'obytes': 41715968512,
 'oerrors': 0,
 'opackets': 651812008,
 'rx_bps': 7595253760.0,
 'rx_bps_L1': 9968770560.0,
 'rx_pps': 14834480.0,
 'rx_util': 39.87508224,
 'tx_bps': 8335184384.0,
 'tx_bps_L1': 10939931104.0,
 'tx_pps': 16279667.0,
 'tx_util': 43.759724416}
04/03/2020 13:40:55                         pktgen: Rx Port 0 stats: 
rx_port: 0,  rx_bps: 7595253760.000000, rx_pps: 14834480.000000
04/03/2020 13:40:55                         pktgen: throughput: pps_rx 14834480.000000, bps_rx 7595253760.000000
04/03/2020 13:40:55              dut.10.67.xxx.xxx: /home/myf/dpdk_works/dpdk_2005-rc0/query_tool.py -j /home/myf/dpdk_works/dpdk_2005-rc0/telemetry_data_on_traffic.json -f /var/run/some_client
04/03/2020 13:40:57              dut.10.67.xxx.xxx: Get metrics done
04/03/2020 13:40:57              dut.10.67.xxx.xxx: scp -v root@10.67.117.102:/home/myf/dpdk_works/dpdk_2005-rc0/telemetry_data_on_traffic.json /tmp/telemetry_data_on_traffic.json
04/03/2020 13:40:59                         pktgen: traffic completed. 
04/03/2020 13:40:59                         pktgen: [{'options': {'pcap': <Ether  dst=3c:fd:fe:cf:35:28 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
              'stream_config': {'rate': 100.0,
                                'transmit_mode': 'continuous',
                                'txmode': {}}},
  'pcap_file': <Ether  dst=3c:fd:fe:cf:35:28 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
  'rx_port': 1,
  'tx_port': 0},
 {'options': {'pcap': <Ether  dst=3c:fd:fe:cf:35:29 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
              'stream_config': {'rate': 100.0,
                                'transmit_mode': 'continuous',
                                'txmode': {}}},
  'pcap_file': <Ether  dst=3c:fd:fe:cf:35:29 src=00:00:20:00:00:00 type=IPv4 |<IP  frag=0 proto=udp |<UDP  |<Raw  load='XXXXXXXXXXXXXXXXXX' |>>>>,
  'rx_port': 0,
  'tx_port': 1}]
04/03/2020 13:40:59             TestPowerTelemetry: {'callback': <bound method TestPowerTelemetry.telemetry_query_on_traffic of <TestSuite_power_telemetry.TestPowerTelemetry object at 0x7fe91726af60>>,
 'duration': 20,
 'interval': 18,
 'method': 'throughput'}
04/03/2020 13:40:59             TestPowerTelemetry: [(7602234880.0, 14848104.0), (7595253760.0, 14834480.0)]
04/03/2020 13:41:04             TestPowerTelemetry: {'data': [{'port': 4294967295,
           'stats': [{'name': 'empty_poll', 'value': 6666469},
                     {'name': 'full_poll', 'value': 18255913},
                     {'name': 'busy_percent', 'value': 100},
                     {'name': 'rx_good_packets', 'value': 0},
                     {'name': 'tx_good_packets', 'value': 0},
                     {'name': 'rx_good_bytes', 'value': 0},
                     {'name': 'tx_good_bytes', 'value': 0},
                     {'name': 'rx_missed_errors', 'value': 0},
                     {'name': 'rx_errors', 'value': 0},
                     {'name': 'tx_errors', 'value': 0},
                     {'name': 'rx_mbuf_allocation_errors', 'value': 0},
                     {'name': 'rx_q0packets', 'value': 0},
                     {'name': 'rx_q0bytes', 'value': 0},
                     {'name': 'rx_q0errors', 'value': 0},
                     {'name': 'tx_q0packets', 'value': 0},
                     {'name': 'tx_q0bytes', 'value': 0},
                     {'name': 'tx_q1packets', 'value': 0},
                     {'name': 'tx_q1bytes', 'value': 0},
                     {'name': 'rx_unicast_packets', 'value': 0},
                     {'name': 'rx_multicast_packets', 'value': 0},
                     {'name': 'rx_broadcast_packets', 'value': 0},
                     {'name': 'rx_dropped_packets', 'value': 0},
                     {'name': 'rx_unknown_protocol_packets', 'value': 0},
                     {'name': 'tx_unicast_packets', 'value': 0},
                     {'name': 'tx_multicast_packets', 'value': 0},
                     {'name': 'tx_broadcast_packets', 'value': 0},
                     {'name': 'tx_dropped_packets', 'value': 0},
                     {'name': 'tx_link_down_dropped', 'value': 0},
                     {'name': 'rx_crc_errors', 'value': 0},
                     {'name': 'rx_illegal_byte_errors', 'value': 0},
                     {'name': 'rx_error_bytes', 'value': 0},
                     {'name': 'mac_local_errors', 'value': 0},
                     {'name': 'mac_remote_errors', 'value': 0},
                     {'name': 'rx_length_errors', 'value': 0},
                     {'name': 'tx_xon_packets', 'value': 0},
                     {'name': 'rx_xon_packets', 'value': 0},
                     {'name': 'tx_xoff_packets', 'value': 0},
                     {'name': 'rx_xoff_packets', 'value': 0},
                     {'name': 'rx_size_64_packets', 'value': 0},
                     {'name': 'rx_size_65_to_127_packets', 'value': 0},
                     {'name': 'rx_size_128_to_255_packets', 'value': 0},
                     {'name': 'rx_size_256_to_511_packets', 'value': 0},
                     {'name': 'rx_size_512_to_1023_packets', 'value': 0},
                     {'name': 'rx_size_1024_to_1522_packets', 'value': 0},
                     {'name': 'rx_size_1523_to_max_packets', 'value': 0},
                     {'name': 'rx_undersized_errors', 'value': 0},
                     {'name': 'rx_oversize_errors', 'value': 0},
                     {'name': 'rx_mac_short_dropped', 'value': 0},
                     {'name': 'rx_fragmented_errors', 'value': 0},
                     {'name': 'rx_jabber_errors', 'value': 0},
                     {'name': 'tx_size_64_packets', 'value': 0},
                     {'name': 'tx_size_65_to_127_packets', 'value': 0},
                     {'name': 'tx_size_128_to_255_packets', 'value': 0},
                     {'name': 'tx_size_256_to_511_packets', 'value': 0},
                     {'name': 'tx_size_512_to_1023_packets', 'value': 0},
                     {'name': 'tx_size_1024_to_1522_packets', 'value': 0},
                     {'name': 'tx_size_1523_to_max_packets', 'value': 0},
                     {'name': 'rx_flow_director_atr_match_packets', 'value': 0},
                     {'name': 'rx_flow_director_sb_match_packets', 'value': 0},
                     {'name': 'tx_low_power_idle_status', 'value': 0},
                     {'name': 'rx_low_power_idle_status', 'value': 0},
                     {'name': 'tx_low_power_idle_count', 'value': 0},
                     {'name': 'rx_low_power_idle_count', 'value': 0},
                     {'name': 'rx_priority0_xon_packets', 'value': 0},
                     {'name': 'rx_priority1_xon_packets', 'value': 0},
                     {'name': 'rx_priority2_xon_packets', 'value': 0},
                     {'name': 'rx_priority3_xon_packets', 'value': 0},
                     {'name': 'rx_priority4_xon_packets', 'value': 0},
                     {'name': 'rx_priority5_xon_packets', 'value': 0},
                     {'name': 'rx_priority6_xon_packets', 'value': 0},
                     {'name': 'rx_priority7_xon_packets', 'value': 0},
                     {'name': 'rx_priority0_xoff_packets', 'value': 0},
                     {'name': 'rx_priority1_xoff_packets', 'value': 0},
                     {'name': 'rx_priority2_xoff_packets', 'value': 0},
                     {'name': 'rx_priority3_xoff_packets', 'value': 0},
                     {'name': 'rx_priority4_xoff_packets', 'value': 0},
                     {'name': 'rx_priority5_xoff_packets', 'value': 0},
                     {'name': 'rx_priority6_xoff_packets', 'value': 0},
                     {'name': 'rx_priority7_xoff_packets', 'value': 0},
                     {'name': 'tx_priority0_xon_packets', 'value': 0},
                     {'name': 'tx_priority1_xon_packets', 'value': 0},
                     {'name': 'tx_priority2_xon_packets', 'value': 0},
                     {'name': 'tx_priority3_xon_packets', 'value': 0},
                     {'name': 'tx_priority4_xon_packets', 'value': 0},
                     {'name': 'tx_priority5_xon_packets', 'value': 0},
                     {'name': 'tx_priority6_xon_packets', 'value': 0},
                     {'name': 'tx_priority7_xon_packets', 'value': 0},
                     {'name': 'tx_priority0_xoff_packets', 'value': 0},
                     {'name': 'tx_priority1_xoff_packets', 'value': 0},
                     {'name': 'tx_priority2_xoff_packets', 'value': 0},
                     {'name': 'tx_priority3_xoff_packets', 'value': 0},
                     {'name': 'tx_priority4_xoff_packets', 'value': 0},
                     {'name': 'tx_priority5_xoff_packets', 'value': 0},
                     {'name': 'tx_priority6_xoff_packets', 'value': 0},
                     {'name': 'tx_priority7_xoff_packets', 'value': 0},
                     {'name': 'tx_priority0_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority1_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority2_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority3_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority4_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority5_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority6_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority7_xon_to_xoff_packets',
                      'value': 0}]}],
 'status_code': 'Status OK: 200'}
04/03/2020 13:41:04              dut.10.67.xxx.xxx: /home/myf/dpdk_works/dpdk_2005-rc0/query_tool.py -j /home/myf/dpdk_works/dpdk_2005-rc0/telemetry_data.json -f /var/run/some_client
04/03/2020 13:41:06              dut.10.67.xxx.xxx: Get metrics done
04/03/2020 13:41:06              dut.10.67.xxx.xxx: scp -v root@10.67.117.102:/home/myf/dpdk_works/dpdk_2005-rc0/telemetry_data.json /tmp/telemetry_data.json
04/03/2020 13:41:08             TestPowerTelemetry: {'data': [{'port': 4294967295,
           'stats': [{'name': 'empty_poll', 'value': 346192902},
                     {'name': 'full_poll', 'value': 20292925},
                     {'name': 'busy_percent', 'value': 0},
                     {'name': 'rx_good_packets', 'value': 0},
                     {'name': 'tx_good_packets', 'value': 0},
                     {'name': 'rx_good_bytes', 'value': 0},
                     {'name': 'tx_good_bytes', 'value': 0},
                     {'name': 'rx_missed_errors', 'value': 0},
                     {'name': 'rx_errors', 'value': 0},
                     {'name': 'tx_errors', 'value': 0},
                     {'name': 'rx_mbuf_allocation_errors', 'value': 0},
                     {'name': 'rx_q0packets', 'value': 0},
                     {'name': 'rx_q0bytes', 'value': 0},
                     {'name': 'rx_q0errors', 'value': 0},
                     {'name': 'tx_q0packets', 'value': 0},
                     {'name': 'tx_q0bytes', 'value': 0},
                     {'name': 'tx_q1packets', 'value': 0},
                     {'name': 'tx_q1bytes', 'value': 0},
                     {'name': 'rx_unicast_packets', 'value': 0},
                     {'name': 'rx_multicast_packets', 'value': 0},
                     {'name': 'rx_broadcast_packets', 'value': 0},
                     {'name': 'rx_dropped_packets', 'value': 0},
                     {'name': 'rx_unknown_protocol_packets', 'value': 0},
                     {'name': 'tx_unicast_packets', 'value': 0},
                     {'name': 'tx_multicast_packets', 'value': 0},
                     {'name': 'tx_broadcast_packets', 'value': 0},
                     {'name': 'tx_dropped_packets', 'value': 0},
                     {'name': 'tx_link_down_dropped', 'value': 0},
                     {'name': 'rx_crc_errors', 'value': 0},
                     {'name': 'rx_illegal_byte_errors', 'value': 0},
                     {'name': 'rx_error_bytes', 'value': 0},
                     {'name': 'mac_local_errors', 'value': 0},
                     {'name': 'mac_remote_errors', 'value': 0},
                     {'name': 'rx_length_errors', 'value': 0},
                     {'name': 'tx_xon_packets', 'value': 0},
                     {'name': 'rx_xon_packets', 'value': 0},
                     {'name': 'tx_xoff_packets', 'value': 0},
                     {'name': 'rx_xoff_packets', 'value': 0},
                     {'name': 'rx_size_64_packets', 'value': 0},
                     {'name': 'rx_size_65_to_127_packets', 'value': 0},
                     {'name': 'rx_size_128_to_255_packets', 'value': 0},
                     {'name': 'rx_size_256_to_511_packets', 'value': 0},
                     {'name': 'rx_size_512_to_1023_packets', 'value': 0},
                     {'name': 'rx_size_1024_to_1522_packets', 'value': 0},
                     {'name': 'rx_size_1523_to_max_packets', 'value': 0},
                     {'name': 'rx_undersized_errors', 'value': 0},
                     {'name': 'rx_oversize_errors', 'value': 0},
                     {'name': 'rx_mac_short_dropped', 'value': 0},
                     {'name': 'rx_fragmented_errors', 'value': 0},
                     {'name': 'rx_jabber_errors', 'value': 0},
                     {'name': 'tx_size_64_packets', 'value': 0},
                     {'name': 'tx_size_65_to_127_packets', 'value': 0},
                     {'name': 'tx_size_128_to_255_packets', 'value': 0},
                     {'name': 'tx_size_256_to_511_packets', 'value': 0},
                     {'name': 'tx_size_512_to_1023_packets', 'value': 0},
                     {'name': 'tx_size_1024_to_1522_packets', 'value': 0},
                     {'name': 'tx_size_1523_to_max_packets', 'value': 0},
                     {'name': 'rx_flow_director_atr_match_packets', 'value': 0},
                     {'name': 'rx_flow_director_sb_match_packets', 'value': 0},
                     {'name': 'tx_low_power_idle_status', 'value': 0},
                     {'name': 'rx_low_power_idle_status', 'value': 0},
                     {'name': 'tx_low_power_idle_count', 'value': 0},
                     {'name': 'rx_low_power_idle_count', 'value': 0},
                     {'name': 'rx_priority0_xon_packets', 'value': 0},
                     {'name': 'rx_priority1_xon_packets', 'value': 0},
                     {'name': 'rx_priority2_xon_packets', 'value': 0},
                     {'name': 'rx_priority3_xon_packets', 'value': 0},
                     {'name': 'rx_priority4_xon_packets', 'value': 0},
                     {'name': 'rx_priority5_xon_packets', 'value': 0},
                     {'name': 'rx_priority6_xon_packets', 'value': 0},
                     {'name': 'rx_priority7_xon_packets', 'value': 0},
                     {'name': 'rx_priority0_xoff_packets', 'value': 0},
                     {'name': 'rx_priority1_xoff_packets', 'value': 0},
                     {'name': 'rx_priority2_xoff_packets', 'value': 0},
                     {'name': 'rx_priority3_xoff_packets', 'value': 0},
                     {'name': 'rx_priority4_xoff_packets', 'value': 0},
                     {'name': 'rx_priority5_xoff_packets', 'value': 0},
                     {'name': 'rx_priority6_xoff_packets', 'value': 0},
                     {'name': 'rx_priority7_xoff_packets', 'value': 0},
                     {'name': 'tx_priority0_xon_packets', 'value': 0},
                     {'name': 'tx_priority1_xon_packets', 'value': 0},
                     {'name': 'tx_priority2_xon_packets', 'value': 0},
                     {'name': 'tx_priority3_xon_packets', 'value': 0},
                     {'name': 'tx_priority4_xon_packets', 'value': 0},
                     {'name': 'tx_priority5_xon_packets', 'value': 0},
                     {'name': 'tx_priority6_xon_packets', 'value': 0},
                     {'name': 'tx_priority7_xon_packets', 'value': 0},
                     {'name': 'tx_priority0_xoff_packets', 'value': 0},
                     {'name': 'tx_priority1_xoff_packets', 'value': 0},
                     {'name': 'tx_priority2_xoff_packets', 'value': 0},
                     {'name': 'tx_priority3_xoff_packets', 'value': 0},
                     {'name': 'tx_priority4_xoff_packets', 'value': 0},
                     {'name': 'tx_priority5_xoff_packets', 'value': 0},
                     {'name': 'tx_priority6_xoff_packets', 'value': 0},
                     {'name': 'tx_priority7_xoff_packets', 'value': 0},
                     {'name': 'tx_priority0_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority1_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority2_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority3_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority4_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority5_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority6_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority7_xon_to_xoff_packets',
                      'value': 0}]}],
 'status_code': 'Status OK: 200'}
04/03/2020 13:41:08              dut.10.67.xxx.xxx: ^C
04/03/2020 13:41:08              dut.10.67.xxx.xxx: POWER: Power management governor of lcore 1 has been set back to  successfully
POWER: Power management of lcore 1 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 2 has been set back to  successfully
POWER: Power management of lcore 2 has exited from 'userspace' mode and been set back to the original
User forced exit
04/03/2020 13:41:08             TestPowerTelemetry: test busy percent successful !!!
04/03/2020 13:41:08             TestPowerTelemetry: Test Case test_perf_busy_percent Result PASSED:
04/03/2020 13:41:08              dut.10.67.xxx.xxx: kill_all: called by dut and has no prefix list.
04/03/2020 13:41:09             TestPowerTelemetry: Test Case test_perf_telemetry_power_info Begin
04/03/2020 13:41:09              dut.10.67.xxx.xxx: 
04/03/2020 13:41:09                         tester: 
04/03/2020 13:41:09              dut.10.67.xxx.xxx: /home/myf/dpdk_works/dpdk_2005-rc0/examples/l3fwd-power/build/l3fwd-power  -c 0x6 -n 4 --telemetry -- --telemetry -p 0x1 -P --config="(0,0,2)" 
04/03/2020 13:41:10              dut.10.67.xxx.xxx: /home/myf/dpdk_works/dpdk_2005-rc0/examples/l3fwd-power/build/l3fwd-power: unrecognized option '--telemetry'
EAL: Detected 96 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: PCI device 0000:00:04.0 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.1 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.2 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.3 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.4 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.5 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.6 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:00:04.7 on NUMA socket 0
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:1a:00.0 on NUMA socket 0
EAL:   probe driver: 8086:37d2 net_i40e
EAL: PCI device 0000:1a:00.1 on NUMA socket 0
EAL:   probe driver: 8086:37d2 net_i40e
EAL: PCI device 0000:1a:00.2 on NUMA socket 0
EAL:   probe driver: 8086:37d3 net_i40e
EAL: PCI device 0000:1a:00.3 on NUMA socket 0
EAL:   probe driver: 8086:37d3 net_i40e
EAL: PCI device 0000:80:04.0 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.1 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.2 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.3 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.4 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.5 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.6 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:80:04.7 on NUMA socket 1
EAL:   probe driver: 8086:2021 rawdev_ioat
EAL: PCI device 0000:d8:00.0 on NUMA socket 1
EAL:   probe driver: 8086:158b net_i40e
EAL: PCI device 0000:d8:00.1 on NUMA socket 1
EAL:   probe driver: 8086:158b net_i40e
telemetry mode is enabled
Promiscuous mode selected
POWER: Env isn't set yet!
POWER: Attempting to initialise ACPI cpufreq power management...
POWER: Initialized successfully for lcore 1 power management
POWER: Initialized successfully for lcore 2 power management
Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2... Port 0 modified RSS hash function based on hardware support,requested:0x20820 configured:0x820
 Address:3C:FD:FE:CF:35:28, Allocated mbuf pool on socket 0
LPM: Adding route 0x01010100 / 24 (0)
LPM: Adding route 0x02010100 / 24 (1)
LPM: Adding route 0x03010100 / 24 (2)
LPM: Adding route 0x04010100 / 24 (3)
LPM: Adding route 0x05010100 / 24 (4)
LPM: Adding route 0x06010100 / 24 (5)
LPM: Adding route 0x07010100 / 24 (6)
LPM: Adding route 0x08010100 / 24 (7)
txq=1,0,0 txq=2,1,0 

Skipping disabled port 1

Initializing rx queues on lcore 1 ... 
Initializing rx queues on lcore 2 ... rxq=0,0,0 

Checking link status.......done
Port 0 Link Up - speed 25000 Mbps - full-duplex
04/03/2020 13:41:10              dut.10.67.xxx.xxx: /home/myf/dpdk_works/dpdk_2005-rc0/query_tool.py -j /home/myf/dpdk_works/dpdk_2005-rc0/telemetry_data.json -f /var/run/some_client
04/03/2020 13:41:13              dut.10.67.xxx.xxx: Get metrics done
04/03/2020 13:41:13              dut.10.67.xxx.xxx: scp -v root@10.67.117.102:/home/myf/dpdk_works/dpdk_2005-rc0/telemetry_data.json /tmp/telemetry_data.json
04/03/2020 13:41:14             TestPowerTelemetry: {'data': [{'port': 4294967295,
           'stats': [{'name': 'empty_poll', 'value': 0},
                     {'name': 'full_poll', 'value': 0},
                     {'name': 'busy_percent', 'value': 0},
                     {'name': 'rx_good_packets', 'value': 0},
                     {'name': 'tx_good_packets', 'value': 0},
                     {'name': 'rx_good_bytes', 'value': 0},
                     {'name': 'tx_good_bytes', 'value': 0},
                     {'name': 'rx_missed_errors', 'value': 0},
                     {'name': 'rx_errors', 'value': 0},
                     {'name': 'tx_errors', 'value': 0},
                     {'name': 'rx_mbuf_allocation_errors', 'value': 0},
                     {'name': 'rx_q0packets', 'value': 0},
                     {'name': 'rx_q0bytes', 'value': 0},
                     {'name': 'rx_q0errors', 'value': 0},
                     {'name': 'tx_q0packets', 'value': 0},
                     {'name': 'tx_q0bytes', 'value': 0},
                     {'name': 'tx_q1packets', 'value': 0},
                     {'name': 'tx_q1bytes', 'value': 0},
                     {'name': 'rx_unicast_packets', 'value': 0},
                     {'name': 'rx_multicast_packets', 'value': 0},
                     {'name': 'rx_broadcast_packets', 'value': 0},
                     {'name': 'rx_dropped_packets', 'value': 0},
                     {'name': 'rx_unknown_protocol_packets', 'value': 0},
                     {'name': 'tx_unicast_packets', 'value': 0},
                     {'name': 'tx_multicast_packets', 'value': 0},
                     {'name': 'tx_broadcast_packets', 'value': 0},
                     {'name': 'tx_dropped_packets', 'value': 0},
                     {'name': 'tx_link_down_dropped', 'value': 0},
                     {'name': 'rx_crc_errors', 'value': 0},
                     {'name': 'rx_illegal_byte_errors', 'value': 0},
                     {'name': 'rx_error_bytes', 'value': 0},
                     {'name': 'mac_local_errors', 'value': 0},
                     {'name': 'mac_remote_errors', 'value': 0},
                     {'name': 'rx_length_errors', 'value': 0},
                     {'name': 'tx_xon_packets', 'value': 0},
                     {'name': 'rx_xon_packets', 'value': 0},
                     {'name': 'tx_xoff_packets', 'value': 0},
                     {'name': 'rx_xoff_packets', 'value': 0},
                     {'name': 'rx_size_64_packets', 'value': 0},
                     {'name': 'rx_size_65_to_127_packets', 'value': 0},
                     {'name': 'rx_size_128_to_255_packets', 'value': 0},
                     {'name': 'rx_size_256_to_511_packets', 'value': 0},
                     {'name': 'rx_size_512_to_1023_packets', 'value': 0},
                     {'name': 'rx_size_1024_to_1522_packets', 'value': 0},
                     {'name': 'rx_size_1523_to_max_packets', 'value': 0},
                     {'name': 'rx_undersized_errors', 'value': 0},
                     {'name': 'rx_oversize_errors', 'value': 0},
                     {'name': 'rx_mac_short_dropped', 'value': 0},
                     {'name': 'rx_fragmented_errors', 'value': 0},
                     {'name': 'rx_jabber_errors', 'value': 0},
                     {'name': 'tx_size_64_packets', 'value': 0},
                     {'name': 'tx_size_65_to_127_packets', 'value': 0},
                     {'name': 'tx_size_128_to_255_packets', 'value': 0},
                     {'name': 'tx_size_256_to_511_packets', 'value': 0},
                     {'name': 'tx_size_512_to_1023_packets', 'value': 0},
                     {'name': 'tx_size_1024_to_1522_packets', 'value': 0},
                     {'name': 'tx_size_1523_to_max_packets', 'value': 0},
                     {'name': 'rx_flow_director_atr_match_packets', 'value': 0},
                     {'name': 'rx_flow_director_sb_match_packets', 'value': 0},
                     {'name': 'tx_low_power_idle_status', 'value': 0},
                     {'name': 'rx_low_power_idle_status', 'value': 0},
                     {'name': 'tx_low_power_idle_count', 'value': 0},
                     {'name': 'rx_low_power_idle_count', 'value': 0},
                     {'name': 'rx_priority0_xon_packets', 'value': 0},
                     {'name': 'rx_priority1_xon_packets', 'value': 0},
                     {'name': 'rx_priority2_xon_packets', 'value': 0},
                     {'name': 'rx_priority3_xon_packets', 'value': 0},
                     {'name': 'rx_priority4_xon_packets', 'value': 0},
                     {'name': 'rx_priority5_xon_packets', 'value': 0},
                     {'name': 'rx_priority6_xon_packets', 'value': 0},
                     {'name': 'rx_priority7_xon_packets', 'value': 0},
                     {'name': 'rx_priority0_xoff_packets', 'value': 0},
                     {'name': 'rx_priority1_xoff_packets', 'value': 0},
                     {'name': 'rx_priority2_xoff_packets', 'value': 0},
                     {'name': 'rx_priority3_xoff_packets', 'value': 0},
                     {'name': 'rx_priority4_xoff_packets', 'value': 0},
                     {'name': 'rx_priority5_xoff_packets', 'value': 0},
                     {'name': 'rx_priority6_xoff_packets', 'value': 0},
                     {'name': 'rx_priority7_xoff_packets', 'value': 0},
                     {'name': 'tx_priority0_xon_packets', 'value': 0},
                     {'name': 'tx_priority1_xon_packets', 'value': 0},
                     {'name': 'tx_priority2_xon_packets', 'value': 0},
                     {'name': 'tx_priority3_xon_packets', 'value': 0},
                     {'name': 'tx_priority4_xon_packets', 'value': 0},
                     {'name': 'tx_priority5_xon_packets', 'value': 0},
                     {'name': 'tx_priority6_xon_packets', 'value': 0},
                     {'name': 'tx_priority7_xon_packets', 'value': 0},
                     {'name': 'tx_priority0_xoff_packets', 'value': 0},
                     {'name': 'tx_priority1_xoff_packets', 'value': 0},
                     {'name': 'tx_priority2_xoff_packets', 'value': 0},
                     {'name': 'tx_priority3_xoff_packets', 'value': 0},
                     {'name': 'tx_priority4_xoff_packets', 'value': 0},
                     {'name': 'tx_priority5_xoff_packets', 'value': 0},
                     {'name': 'tx_priority6_xoff_packets', 'value': 0},
                     {'name': 'tx_priority7_xoff_packets', 'value': 0},
                     {'name': 'tx_priority0_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority1_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority2_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority3_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority4_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority5_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority6_xon_to_xoff_packets', 'value': 0},
                     {'name': 'tx_priority7_xon_to_xoff_packets',
                      'value': 0}]}],
 'status_code': 'Status OK: 200'}
04/03/2020 13:41:14              dut.10.67.xxx.xxx: ^C
04/03/2020 13:41:14              dut.10.67.xxx.xxx: POWER: Power management governor of lcore 1 has been set back to  successfully
POWER: Power management of lcore 1 has exited from 'userspace' mode and been set back to the original
POWER: Power management governor of lcore 2 has been set back to  successfully
POWER: Power management of lcore 2 has exited from 'userspace' mode and been set back to the original
User forced exit
04/03/2020 13:41:14             TestPowerTelemetry: test telemetry power info successful !!!
04/03/2020 13:41:14             TestPowerTelemetry: Test Case test_perf_telemetry_power_info Result PASSED:
04/03/2020 13:41:14              dut.10.67.xxx.xxx: kill_all: called by dut and has no prefix list.
04/03/2020 13:41:15              dut.10.67.xxx.xxx: kill_all: called by dut and has no prefix list.
04/03/2020 13:41:16                            dts: 
TEST SUITE ENDED: TestPowerTelemetry

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dts] [PATCH V1 0/1] power_telemetry: python3 support and script optimize
@ 2020-03-04  8:27 yufengmx
  2020-03-04  8:25 ` Mo, YufengX
  2020-03-04  8:27 ` [dts] [PATCH V1 1/1] tests/power_telemetry: " yufengmx
  0 siblings, 2 replies; 4+ messages in thread
From: yufengmx @ 2020-03-04  8:27 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx


. python3 support. 

. for dpdk use hard code, change core mask to hard code. 

. set longer traffic duration for stability. 

. use ^C to take the place of killall. 

yufengmx (1):
  tests/power_telemetry: python3 support and script optimize

 tests/TestSuite_power_telemetry.py | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dts] [PATCH V1 1/1] tests/power_telemetry: python3 support and script optimize
  2020-03-04  8:27 [dts] [PATCH V1 0/1] power_telemetry: python3 support and script optimize yufengmx
  2020-03-04  8:25 ` Mo, YufengX
@ 2020-03-04  8:27 ` yufengmx
  2020-03-13  6:29   ` Tu, Lijuan
  1 sibling, 1 reply; 4+ messages in thread
From: yufengmx @ 2020-03-04  8:27 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx


#. python3 support.
#. for dpdk use hard code, change core mask to hard code.
#. set longer traffic duration for stability.
#. use ^C to take the place of killall.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 tests/TestSuite_power_telemetry.py | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/tests/TestSuite_power_telemetry.py b/tests/TestSuite_power_telemetry.py
index 9c2bdbc..90404e3 100644
--- a/tests/TestSuite_power_telemetry.py
+++ b/tests/TestSuite_power_telemetry.py
@@ -63,16 +63,15 @@ class TestPowerTelemetry(TestCase):
         return target_dir
 
     def d_con(self, cmd):
-        _cmd = [cmd, '# ', 10] if isinstance(cmd, (str, unicode)) else cmd
+        _cmd = [cmd, '# ', 10] if isinstance(cmd, str) else cmd
         return self.dut.send_expect(*_cmd)
 
     def d_a_con(self, cmd):
-        _cmd = [cmd, '# ', 10] if isinstance(cmd, (str, unicode)) else cmd
+        _cmd = [cmd, '# ', 10] if isinstance(cmd, str) else cmd
         return self.dut.alt_session.send_expect(*_cmd)
 
     def get_pkt_len(self, pkt_type, frame_size=64):
-        headers_size = sum(map(lambda x: HEADER_SIZE[x],
-                               ['eth', 'ip', pkt_type]))
+        headers_size = sum([HEADER_SIZE[x] for x in ['eth', 'ip', pkt_type]])
         pktlen = frame_size - headers_size
         return pktlen
 
@@ -87,7 +86,7 @@ class TestPowerTelemetry(TestCase):
         pkt_type = values.get('type')
         pkt_layers = values.get('pkt_layers')
         pkt = Packet(pkt_type=pkt_type)
-        for layer in pkt_layers.keys():
+        for layer in list(pkt_layers.keys()):
             pkt.config_layer(layer, pkt_layers[layer])
         return pkt.pktgen.pkt
 
@@ -154,6 +153,7 @@ class TestPowerTelemetry(TestCase):
         self.l3fwd_power = self.prepare_binary('l3fwd-power')
 
     def start_l3fwd_power(self, core_config='1S/2C/1T'):
+        core_mask, core = '0x6', 2
         option = (' '
                   '-c {core_mask} '
                   '-n {mem_channel} '
@@ -162,9 +162,10 @@ class TestPowerTelemetry(TestCase):
                   '--telemetry '
                   '-p 0x1 '
                   '-P '
-                  '--config="(0,0,2)" '
+                  '--config="(0,0,{core})" '
                   ).format(**{
-                      'core_mask': self.get_cores_mask(core_config),
+                      'core_mask': core_mask,
+                      'core': core,
                       'mem_channel': self.dut.get_memory_channels(), })
         prompt = 'L3FWD_POWER: entering main telemetry loop'
         cmd = [' '.join([self.l3fwd_power, option]), prompt, 60]
@@ -174,8 +175,8 @@ class TestPowerTelemetry(TestCase):
     def close_l3fwd_power(self):
         if not self.is_l3fwd_on:
             return
-        cmd = 'killall ' + os.path.basename(self.l3fwd_power)
-        self.d_a_con(cmd)
+        cmd = "^C"
+        self.d_con(cmd)
 
     def create_query_script(self):
         '''
@@ -224,8 +225,8 @@ class TestPowerTelemetry(TestCase):
         """)
         fileName = 'query_tool.py'
         query_script = os.path.join(self.output_path, fileName)
-        with open(query_script, 'wb') as fp:
-            fp.write('#! /usr/bin/env python' + os.linesep + script_content)
+        with open(query_script, 'w') as fp:
+            fp.write('#! /usr/bin/env python' + os.linesep + str(script_content))
         self.dut.session.copy_file_to(query_script, self.target_dir)
         script_file = os.path.join(self.target_dir, fileName)
         cmd = 'chmod 777 {}'.format(script_file)
@@ -251,7 +252,7 @@ class TestPowerTelemetry(TestCase):
         pipe = '/var/run/some_client'
         cmd = "{0} -j {1} -f {2}".format(self.query_tool, json_file, pipe)
         output = self.d_a_con(cmd)
-        msg = 'faile to query metric data'
+        msg = 'failed to query metric data'
         self.verify("Get metrics done" in output, msg)
         dst_file = os.path.join(self.output_path, json_name)
         self.dut.session.copy_file_from(json_file, dst_file)
@@ -392,11 +393,12 @@ class TestPowerTelemetry(TestCase):
         except_content = None
         try:
             self.start_l3fwd_power()
+            duration = 20
             option = {
                 'traffic_opt': {
                     'method': 'throughput',
-                    'duration': 15,
-                    'interval': 10,
+                    'duration': duration,
+                    'interval': duration - 2,
                     'callback': self.telemetry_query_on_traffic, }}
             self.run_traffic(option)
             time.sleep(5)
-- 
2.21.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1 1/1] tests/power_telemetry: python3 support and script optimize
  2020-03-04  8:27 ` [dts] [PATCH V1 1/1] tests/power_telemetry: " yufengmx
@ 2020-03-13  6:29   ` Tu, Lijuan
  0 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-03-13  6:29 UTC (permalink / raw)
  To: Mo, YufengX, dts, Yao, Lei A; +Cc: Mo, YufengX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx
> Sent: Wednesday, March 4, 2020 4:28 PM
> To: dts@dpdk.org; Yao, Lei A <lei.a.yao@intel.com>
> Cc: Mo, YufengX <yufengx.mo@intel.com>
> Subject: [dts] [PATCH V1 1/1] tests/power_telemetry: python3 support and
> script optimize
> 
> 
> #. python3 support.
> #. for dpdk use hard code, change core mask to hard code.
> #. set longer traffic duration for stability.
> #. use ^C to take the place of killall.
> 
> Signed-off-by: yufengmx <yufengx.mo@intel.com>
> ---
>  tests/TestSuite_power_telemetry.py | 30 ++++++++++++++++--------------
>  1 file changed, 16 insertions(+), 14 deletions(-)
> 
> diff --git a/tests/TestSuite_power_telemetry.py
> b/tests/TestSuite_power_telemetry.py
> index 9c2bdbc..90404e3 100644
> --- a/tests/TestSuite_power_telemetry.py
> +++ b/tests/TestSuite_power_telemetry.py
> @@ -63,16 +63,15 @@ class TestPowerTelemetry(TestCase):
>          return target_dir
> 
>      def d_con(self, cmd):
> -        _cmd = [cmd, '# ', 10] if isinstance(cmd, (str, unicode)) else cmd
> +        _cmd = [cmd, '# ', 10] if isinstance(cmd, str) else cmd
>          return self.dut.send_expect(*_cmd)
> 
>      def d_a_con(self, cmd):
> -        _cmd = [cmd, '# ', 10] if isinstance(cmd, (str, unicode)) else cmd
> +        _cmd = [cmd, '# ', 10] if isinstance(cmd, str) else cmd
>          return self.dut.alt_session.send_expect(*_cmd)
> 
>      def get_pkt_len(self, pkt_type, frame_size=64):
> -        headers_size = sum(map(lambda x: HEADER_SIZE[x],
> -                               ['eth', 'ip', pkt_type]))
> +        headers_size = sum([HEADER_SIZE[x] for x in ['eth', 'ip',
> + pkt_type]])
>          pktlen = frame_size - headers_size
>          return pktlen
> 
> @@ -87,7 +86,7 @@ class TestPowerTelemetry(TestCase):
>          pkt_type = values.get('type')
>          pkt_layers = values.get('pkt_layers')
>          pkt = Packet(pkt_type=pkt_type)
> -        for layer in pkt_layers.keys():
> +        for layer in list(pkt_layers.keys()):
>              pkt.config_layer(layer, pkt_layers[layer])
>          return pkt.pktgen.pkt
> 
> @@ -154,6 +153,7 @@ class TestPowerTelemetry(TestCase):
>          self.l3fwd_power = self.prepare_binary('l3fwd-power')
> 
>      def start_l3fwd_power(self, core_config='1S/2C/1T'):
> +        core_mask, core = '0x6', 2
>          option = (' '
>                    '-c {core_mask} '
>                    '-n {mem_channel} '
> @@ -162,9 +162,10 @@ class TestPowerTelemetry(TestCase):
>                    '--telemetry '
>                    '-p 0x1 '
>                    '-P '
> -                  '--config="(0,0,2)" '
> +                  '--config="(0,0,{core})" '
>                    ).format(**{
> -                      'core_mask': self.get_cores_mask(core_config),
> +                      'core_mask': core_mask,
> +                      'core': core,
>                        'mem_channel': self.dut.get_memory_channels(), })
>          prompt = 'L3FWD_POWER: entering main telemetry loop'
>          cmd = [' '.join([self.l3fwd_power, option]), prompt, 60] @@ -174,8
> +175,8 @@ class TestPowerTelemetry(TestCase):
>      def close_l3fwd_power(self):
>          if not self.is_l3fwd_on:
>              return
> -        cmd = 'killall ' + os.path.basename(self.l3fwd_power)
> -        self.d_a_con(cmd)
> +        cmd = "^C"
> +        self.d_con(cmd)
> 
>      def create_query_script(self):
>          '''
> @@ -224,8 +225,8 @@ class TestPowerTelemetry(TestCase):
>          """)
>          fileName = 'query_tool.py'
>          query_script = os.path.join(self.output_path, fileName)
> -        with open(query_script, 'wb') as fp:
> -            fp.write('#! /usr/bin/env python' + os.linesep + script_content)
> +        with open(query_script, 'w') as fp:
> +            fp.write('#! /usr/bin/env python' + os.linesep +
> + str(script_content))
>          self.dut.session.copy_file_to(query_script, self.target_dir)
>          script_file = os.path.join(self.target_dir, fileName)
>          cmd = 'chmod 777 {}'.format(script_file) @@ -251,7 +252,7 @@ class
> TestPowerTelemetry(TestCase):
>          pipe = '/var/run/some_client'
>          cmd = "{0} -j {1} -f {2}".format(self.query_tool, json_file, pipe)
>          output = self.d_a_con(cmd)
> -        msg = 'faile to query metric data'
> +        msg = 'failed to query metric data'
>          self.verify("Get metrics done" in output, msg)
>          dst_file = os.path.join(self.output_path, json_name)
>          self.dut.session.copy_file_from(json_file, dst_file) @@ -392,11 +393,12
> @@ class TestPowerTelemetry(TestCase):
>          except_content = None
>          try:
>              self.start_l3fwd_power()
> +            duration = 20
>              option = {
>                  'traffic_opt': {
>                      'method': 'throughput',
> -                    'duration': 15,
> -                    'interval': 10,
> +                    'duration': duration,
> +                    'interval': duration - 2,
>                      'callback': self.telemetry_query_on_traffic, }}
>              self.run_traffic(option)
>              time.sleep(5)
> --
> 2.21.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-13  6:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04  8:27 [dts] [PATCH V1 0/1] power_telemetry: python3 support and script optimize yufengmx
2020-03-04  8:25 ` Mo, YufengX
2020-03-04  8:27 ` [dts] [PATCH V1 1/1] tests/power_telemetry: " yufengmx
2020-03-13  6:29   ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).