MCPcopy Create free account
hub / github.com/F-Stack/f-stack / main

Function main

dpdk/buildtools/pmdinfogen.py:259–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257
258
259def main():
260 args = parse_args()
261 if args.input.count('-') > 1:
262 raise Exception("'-' input cannot be used multiple times")
263 if args.format == "elf" and "ELFFile" not in globals():
264 raise Exception("elftools module not found")
265
266 output = open_output(args.output)
267 write_header(output)
268 for path in args.input:
269 image = load_image(args.format, path)
270 drivers = load_drivers(image)
271 dump_drivers(drivers, output)
272
273
274if __name__ == "__main__":

Callers 1

pmdinfogen.pyFile · 0.70

Calls 6

open_outputFunction · 0.85
load_imageFunction · 0.85
load_driversFunction · 0.85
dump_driversFunction · 0.85
parse_argsFunction · 0.70
write_headerFunction · 0.70

Tested by

no test coverage detected