app/compress-perf: print socket id
authorFiona Trahe <fiona.trahe@intel.com>
Tue, 30 Apr 2019 17:10:14 +0000 (17:10 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 5 Jul 2019 12:52:25 +0000 (14:52 +0200)
Added info about socket id used by compression perf
test process and by the driver

Signed-off-by: Tomasz Cel <tomaszx.cel@intel.com>
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Artur Trybula <arturx.trybula@intel.com>
app/test-compress-perf/main.c

index 5a579ea..7b9ee74 100644 (file)
@@ -534,6 +534,9 @@ main(int argc, char **argv)
        else
                level = test_data->level.list[0];
 
+       printf("App uses socket: %u\n", rte_socket_id());
+       printf("Driver uses socket: %u\n",
+              rte_compressdev_socket_id(test_data->cdev_id));
        printf("Burst size = %u\n", test_data->burst_sz);
        printf("File size = %zu\n", test_data->input_data_sz);