diff --git a/python/spdk/rpc/app.py b/python/spdk/rpc/app.py index 8f3a55338..319c3baf3 100644 --- a/python/spdk/rpc/app.py +++ b/python/spdk/rpc/app.py @@ -2,6 +2,7 @@ # Copyright (C) 2017 Intel Corporation. # All rights reserved. + def spdk_kill_instance(client, sig_name): """Send a signal to the SPDK process. diff --git a/python/spdk/rpc/bdev.py b/python/spdk/rpc/bdev.py index 7819233d1..73cb90de6 100644 --- a/python/spdk/rpc/bdev.py +++ b/python/spdk/rpc/bdev.py @@ -2,6 +2,7 @@ # Copyright (C) 2017 Intel Corporation. # All rights reserved. + def bdev_set_options(client, bdev_io_pool_size=None, bdev_io_cache_size=None, bdev_auto_examine=None, small_buf_pool_size=None, large_buf_pool_size=None): """Set parameters for the bdev subsystem. diff --git a/python/spdk/rpc/blobfs.py b/python/spdk/rpc/blobfs.py index d46324df8..bacb943c5 100644 --- a/python/spdk/rpc/blobfs.py +++ b/python/spdk/rpc/blobfs.py @@ -2,6 +2,7 @@ # Copyright (C) 2019 Intel Corporation. # All rights reserved. + def blobfs_detect(client, bdev_name): """Detect whether a blobfs exists on bdev. diff --git a/python/spdk/rpc/env_dpdk.py b/python/spdk/rpc/env_dpdk.py index 9faf267a1..a85c4e8ad 100644 --- a/python/spdk/rpc/env_dpdk.py +++ b/python/spdk/rpc/env_dpdk.py @@ -2,6 +2,7 @@ # Copyright (C) 2019 Intel Corporation. # All rights reserved. + def env_dpdk_get_mem_stats(client): """Dump the applications memory stats to a file. diff --git a/python/spdk/rpc/iscsi.py b/python/spdk/rpc/iscsi.py index 1ef8f14aa..471f62185 100644 --- a/python/spdk/rpc/iscsi.py +++ b/python/spdk/rpc/iscsi.py @@ -2,6 +2,7 @@ # Copyright (C) 2017 Intel Corporation. # All rights reserved. + def iscsi_set_options( client, auth_file=None, diff --git a/python/spdk/rpc/log.py b/python/spdk/rpc/log.py index d2d30790d..5f99aff66 100644 --- a/python/spdk/rpc/log.py +++ b/python/spdk/rpc/log.py @@ -2,6 +2,7 @@ # Copyright (C) 2017 Intel Corporation. # All rights reserved. + def log_set_flag(client, flag): """Set log flag. diff --git a/python/spdk/rpc/lvol.py b/python/spdk/rpc/lvol.py index e2360449b..9d814a2d8 100644 --- a/python/spdk/rpc/lvol.py +++ b/python/spdk/rpc/lvol.py @@ -2,6 +2,7 @@ # Copyright (C) 2017 Intel Corporation. # All rights reserved. + def bdev_lvol_create_lvstore(client, bdev_name, lvs_name, cluster_sz=None, clear_method=None, num_md_pages_per_cluster_ratio=None): """Construct a logical volume store. diff --git a/python/spdk/rpc/nbd.py b/python/spdk/rpc/nbd.py index a4d0c2bf8..73d17d2ad 100644 --- a/python/spdk/rpc/nbd.py +++ b/python/spdk/rpc/nbd.py @@ -2,6 +2,7 @@ # Copyright (C) 2017 Intel Corporation. # All rights reserved. + def nbd_start_disk(client, bdev_name, nbd_device): params = { 'bdev_name': bdev_name diff --git a/python/spdk/rpc/notify.py b/python/spdk/rpc/notify.py index 132287a04..34dfe36c0 100644 --- a/python/spdk/rpc/notify.py +++ b/python/spdk/rpc/notify.py @@ -2,6 +2,7 @@ # Copyright (C) 2018 Intel Corporation. # All rights reserved. + def notify_get_types(client): return client.call("notify_get_types") diff --git a/python/spdk/rpc/nvme.py b/python/spdk/rpc/nvme.py index 504ed95dc..b75b9edbc 100644 --- a/python/spdk/rpc/nvme.py +++ b/python/spdk/rpc/nvme.py @@ -2,6 +2,7 @@ # Copyright (C) 2018 Intel Corporation. # All rights reserved. + def bdev_nvme_send_cmd(client, name, cmd_type, data_direction, cmdbuf, data=None, metadata=None, data_len=None, metadata_len=None, diff --git a/python/spdk/rpc/pmem.py b/python/spdk/rpc/pmem.py index f51792f5f..59a01efbf 100644 --- a/python/spdk/rpc/pmem.py +++ b/python/spdk/rpc/pmem.py @@ -2,6 +2,7 @@ # Copyright (C) 2017 Intel Corporation. # All rights reserved. + def bdev_pmem_create_pool(client, pmem_file, num_blocks, block_size): """Create pmem pool at specified path. Args: diff --git a/python/spdk/rpc/sock.py b/python/spdk/rpc/sock.py index dc1bafddd..4065e2c45 100644 --- a/python/spdk/rpc/sock.py +++ b/python/spdk/rpc/sock.py @@ -2,6 +2,7 @@ # Copyright (C) 2021 Intel Corporation. # All rights reserved. + def sock_impl_get_options(client, impl_name=None): """Get parameters for the socket layer implementation. diff --git a/python/spdk/rpc/subsystem.py b/python/spdk/rpc/subsystem.py index cab7d486d..db4d20df5 100644 --- a/python/spdk/rpc/subsystem.py +++ b/python/spdk/rpc/subsystem.py @@ -2,6 +2,7 @@ # Copyright (C) 2018 Intel Corporation. # All rights reserved. + def framework_get_subsystems(client): return client.call('framework_get_subsystems') diff --git a/python/spdk/rpc/trace.py b/python/spdk/rpc/trace.py index 42a495f77..b37676e05 100644 --- a/python/spdk/rpc/trace.py +++ b/python/spdk/rpc/trace.py @@ -2,6 +2,7 @@ # Copyright (C) 2018 Intel Corporation. # All rights reserved. + def trace_enable_tpoint_group(client, name): """Enable trace on a specific tpoint group. diff --git a/python/spdk/rpc/vfio_user.py b/python/spdk/rpc/vfio_user.py index 5c57aa0e7..161e7af08 100644 --- a/python/spdk/rpc/vfio_user.py +++ b/python/spdk/rpc/vfio_user.py @@ -2,6 +2,7 @@ # Copyright (C) 2022 Intel Corporation. # All rights reserved. + def vfu_tgt_set_base_path(client, path): """Set socket base path. diff --git a/scripts/bpf/trace.py b/scripts/bpf/trace.py index 06293e4ad..81dbd32ab 100755 --- a/scripts/bpf/trace.py +++ b/scripts/bpf/trace.py @@ -4,6 +4,7 @@ # All rights reserved. # + from argparse import ArgumentParser from dataclasses import dataclass, field from itertools import islice