| /dpdk/buildtools/ |
| H A D | symlink-drivers-solibs.py | 5 import os 19 os.chdir(os.environ['MESON_INSTALL_DESTDIR_PREFIX']) 24 pmd_dir = os.path.join(lib_dir, pmd_subdir) 31 for file in glob.glob(os.path.join(pmd_dir, pattern)): 32 to = os.path.join(to_dir, os.path.basename(file)) 43 os.chdir(lib_dir) 44 for file in glob.glob(os.path.join(pmd_subdir, 'librte_*.so*')): 45 to = os.path.basename(file) 46 if os.path.exists(to): 47 os.remove(to) [all …]
|
| H A D | list-dir-globs.py | 6 import os 13 root = os.path.join(os.getenv('MESON_SOURCE_ROOT', '.'), 14 os.getenv('MESON_SUBDIR', '.')) 18 for p in iglob(os.path.join(root, path)): 19 if os.path.isdir(p): 20 print(os.path.relpath(p).replace('\\', '/'))
|
| H A D | get-numa-count.py | 7 import os 10 if os.name == 'posix': 11 if os.path.isdir('/sys/devices/system/node'): 14 print(int(os.path.basename(numa_nodes[-1])[4:]) + 1) 18 elif os.name == 'nt':
|
| H A D | gen-pmdinfo-cfile.py | 5 import os 15 if os.path.exists(name): 18 subprocess.run([ar, "x", os.path.abspath(archive), name], 20 paths.append(os.path.join(temp, name))
|
| H A D | call-sphinx-build.py | 7 import os 8 from os.path import join 16 os.environ['DPDK_VERSION'] = version 27 for root, dirs, files in os.walk(src):
|
| H A D | get-cpu-count.py | 5 import os 7 print(os.cpu_count())
|
| /dpdk/usertools/ |
| H A D | dpdk-telemetry.py | 11 import os 46 return os.path.basename(argv0) 56 return glob.glob(os.path.join(path, SOCKET_NAME + '*')) 65 sock_name = os.path.basename(s) 78 run_dir = os.environ.get('RUNTIME_DIRECTORY') 80 if (os.getuid() == 0): 84 return os.path.join(run_dir, 'dpdk', fp) 97 prefixes.append(os.path.relpath(os.path.dirname(s), start=path)) 110 if os.isatty(sys.stdin.fileno()): 119 if os.path.exists(path) or not prompt: [all …]
|
| H A D | dpdk-hugepages.py | 8 import os 43 return os.path.exists('/sys/devices/system/node') 48 dir = os.path.dirname(path) 49 pg_sizes = (d.split("-")[1] for d in os.listdir(dir)) 83 if not os.path.exists(path): 85 for hdir in os.listdir(path): 98 for hdir in os.listdir(path): 182 os.system(cmd) 188 os.system("umount " + mountpoint)
|
| H A D | dpdk-pmdinfo.py | 11 import os 231 candidate = os.path.join(path, filename) 232 if os.path.exists(candidate): 233 return os.path.abspath(candidate) 482 if not os.path.exists(autoload_path): 486 dirs = os.listdir(autoload_path) 492 dpath = os.path.join(autoload_path, d) 493 if os.path.isdir(dpath): 495 if os.path.isfile(dpath): 519 if not os.path.isfile(dpdk_path): [all …]
|
| H A D | dpdk-devbind.py | 7 import os 13 from os.path import exists, basename 14 from os.path import join as path_join 116 sysfs_mods = [m for m in os.listdir(sysfs_path) 117 if os.path.isdir(os.path.join(sysfs_path, m))] 127 filename = os.path.join("/lib/modules/", release, "modules.builtin") 128 if os.path.exists(filename): 131 loaded_modules += [os.path.splitext(os.path.basename(mod))[0] for mod in f] 178 for base, dirs, _ in os.walk("/sys/bus/pci/devices/%s/" % dev_id): 181 ",".join(os.listdir(os.path.join(base, "net"))) [all …]
|
| H A D | dpdk-telemetry-client.py | 6 import os 52 if os.path.exists(self.file_path): 53 os.unlink(self.file_path)
|
| /dpdk/drivers/raw/ioat/ |
| H A D | dpdk_idxd_cfg.py | 11 import os 12 import os.path 22 with open(os.path.join(self.path, filename)) as f: 28 with open(os.path.join(self.path, filename), "w") as f: 35 if not os.path.exists(drv_dir): 49 for path, dirs, files in os.walk(base_dir): 52 return os.path.join(base_dir, dir) 59 for path, dirs, files in os.walk(pci_dir): 86 wq_dir = SysfsDir(os.path.join(dsa_dir.path, f"wq{dsa_id}.{q}"))
|
| /dpdk/drivers/dma/idxd/ |
| H A D | dpdk_idxd_cfg.py | 11 import os 12 import os.path 22 with open(os.path.join(self.path, filename)) as f: 28 with open(os.path.join(self.path, filename), "w") as f: 35 if not os.path.exists(drv_dir): 49 for path, dirs, files in os.walk(base_dir): 52 return os.path.join(base_dir, dir) 59 for path, dirs, files in os.walk(pci_dir): 86 wq_dir = SysfsDir(os.path.join(dsa_dir.path, f"wq{dsa_id}.{q}"))
|
| /dpdk/app/test-crypto-perf/ |
| H A D | dpdk-graph-crypto-perf.py | 14 import os 23 SCRIPT_PATH = os.path.dirname(__file__) + "/" 42 path = os.path.join(self.graph_path, subdir, "") 43 if not os.path.exists(path): 44 os.makedirs(path) 149 if not os.path.exists(pdf_path): 150 os.makedirs(pdf_path) 151 for _, dirs, _ in os.walk(graph_path): 265 if test_cmd is None or not os.path.isfile(test_cmd): 302 graph_path = os.path.join(output_path, GRAPH_DIR, "") [all …]
|
| /dpdk/buildtools/pkg-config/ |
| H A D | set-static-linker-flags.py | 7 import os 32 if 'MESON_BUILD_ROOT' not in os.environ: 35 for root, dirs, files in os.walk(os.environ['MESON_BUILD_ROOT']): 38 process_pc_file(os.path.join(root, f))
|
| /dpdk/.github/workflows/ |
| H A D | build.yml | 35 - os: ubuntu-20.04 38 - os: ubuntu-20.04 42 - os: ubuntu-20.04 46 - os: ubuntu-20.04 49 - os: ubuntu-20.04 53 - os: ubuntu-20.04 57 - os: ubuntu-20.04 61 - os: ubuntu-20.04 65 - os: ubuntu-20.04 69 - os: ubuntu-20.04 [all …]
|
| /dpdk/drivers/common/mlx5/windows/ |
| H A D | meson.build | 11 res_lib = run_command(python3, '-c', 'import os; print(os.environ["DEVX_LIB_PATH"])', check: false) 12 res_inc = run_command(python3, '-c', 'import os; print(os.environ["DEVX_INC_PATH"])', check: false)
|
| /dpdk/devtools/ |
| H A D | update-patches.py | 5 import os 8 from os.path import abspath, dirname, join 21 for root, dirs, files in os.walk(dpdk_libdir):
|
| H A D | check-meson.py | 10 import os 12 from os.path import relpath, join 20 for root, dirs, files in os.walk(path):
|
| /dpdk/doc/guides/ |
| H A D | conf.py | 8 from os import listdir 9 from os import environ 10 from os.path import basename 11 from os.path import dirname 12 from os.path import join as path_join
|
| /dpdk/app/test-cmdline/ |
| H A D | cmdline_test.py | 7 import os 58 if not os.path.exists(test_app_path):
|
| /dpdk/lib/pcapng/ |
| H A D | rte_pcapng.c | 84 const char *os, const char *hw, in pcapng_section_block() argument 96 if (os) in pcapng_section_block() 97 len += pcapng_optlen(strlen(os)); in pcapng_section_block() 129 if (os) in pcapng_section_block() 131 os, strlen(os)); in pcapng_section_block()
|
| /dpdk/app/test-bbdev/ |
| H A D | test-bbdev.py | 7 import os 61 if not os.path.exists(args.testapp_path):
|
| /dpdk/buildtools/chkincs/ |
| H A D | gen_c_file_for_header.py | 6 from os.path import abspath
|
| /dpdk/drivers/net/ice/ |
| H A D | ice_ethdev.c | 5295 &os->eth.rx_unknown_protocol, in ice_read_stats_registers() 5330 pf->offset_loaded, &os->crc_errors, in ice_read_stats_registers() 5348 pf->offset_loaded, &os->link_xon_rx, in ice_read_stats_registers() 5354 pf->offset_loaded, &os->link_xon_tx, in ice_read_stats_registers() 5361 pf->offset_loaded, &os->rx_size_64, in ice_read_stats_registers() 5365 pf->offset_loaded, &os->rx_size_127, in ice_read_stats_registers() 5369 pf->offset_loaded, &os->rx_size_255, in ice_read_stats_registers() 5373 pf->offset_loaded, &os->rx_size_511, in ice_read_stats_registers() 5385 pf->offset_loaded, &os->rx_size_big, in ice_read_stats_registers() 5397 pf->offset_loaded, &os->rx_jabber, in ice_read_stats_registers() [all …]
|