3911bc344b
Added an option, `--format-lspci` that produces output that can be consumed by `lspci -F`. Additionally, added a simple convenience script that executes lspci with the the output of the RPC. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I41a0f846f32506c28cf6ca3a299ed264f64db1a4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10653 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
7 lines
129 B
Bash
Executable File
7 lines
129 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
scriptdir=$(dirname $0)
|
|
lspci -F <($scriptdir/rpc.py framework_get_pci_devices --format-lspci) "$@"
|