numam-spdk/scripts
Pawel Wodkowski d783ad1f29 setup.sh: fix linux_iter_pci_class_code and linux_iter_pci_dev_id
Another atempt to fix setup.sh On Ubuntu 16.04 that use GNU Awk 4.1.3. 
Eg when subsystem vendor name and subsystem name are empty:

$ lspci -mm -n -D
...
0000:00:05.0 "0880" "8086" "0e28" -r04 "8086" "3582"
0000:00:05.1 "0880" "8086" "0e29" -r04 "" ""
0000:00:05.2 "0880" "8086" "0e2a" -r04 "8086" "3582"
...

tr -d '"' part is brekaing whole awk script. So lets try to escape
vendor and device ID to comapre them as whole string.

Change-Id: Ic41e82c41347c6e0a8246b445f86eddf56780089
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/374462
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-08-17 12:43:29 -04:00
..
ceph test/ceph: move ceph_raw.img to /var/tmp 2017-08-11 12:35:18 -04:00
perf/nvme nvme/fio_test: add nvme performance test scripts 2017-06-20 15:08:34 -04:00
vagrant fix Vagrantfile 2017-08-16 15:46:48 -04:00
autotest_common.sh autotest: enable ASAN by default 2017-08-14 17:06:01 -04:00
build_kmod.sh spdk: add the ioat_kperf test tool to autobuild system 2016-01-22 07:58:13 -07:00
check_format.sh check_format: Make CHANGELOG.md update recommendations 2017-08-04 14:41:57 -04:00
detect_cc.sh detect_cc.sh: further fix CC_TYPE generation 2017-05-11 16:45:24 -07:00
eofnl eofnl: check for DOS-style newlines 2016-11-29 11:15:18 -07:00
fio.py iscsi: Add an iscsi target application 2016-08-04 13:15:33 -07:00
gen_nvme.sh bdev/nvme: Names are now explicitly assigned by the user 2017-03-15 17:42:45 -07:00
genconfig.py genconfig.py: use print() for Python 3 compat 2017-06-02 19:46:47 -04:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh fio: Add a script to prep a system for benchmarks 2017-05-31 04:00:41 -04:00
rpc.py bdev/aio: rename "fname" to "filename" 2017-08-11 19:36:30 -04:00
setup.sh setup.sh: fix linux_iter_pci_class_code and linux_iter_pci_dev_id 2017-08-17 12:43:29 -04:00