

def kernel_version_ge(major, minor):
    version = distutils.version.LooseVersion(os.uname()[2]).version
    if (version[0] > major):
        return True
    if (version[0] < major):
        return False
    if (minor and (version[1] < minor)):
        return False
    return True

dataset/ETHPy150Open iovisor/bcc/tests/python/test_stackid.py kernel_version_ge/original