MCPcopy Create free account
hub / github.com/FDio/vpp / get_core_pattern

Function get_core_pattern

test/util.py:161–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160
161def get_core_pattern():
162 if platform.uname().system == "FreeBSD":
163 import sysctl
164
165 corefmt = sysctl.filter("kern.corefile")[0].value
166 elif platform.uname().system == "Linux":
167 with open("/proc/sys/kernel/core_pattern", "r") as f:
168 corefmt = f.read().strip()
169 return corefmt
170
171
172def check_core_path(logger, core_path):

Callers 2

get_core_pathFunction · 0.85
check_core_pathFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected