def kernel_version_ge(major, minor):
    # True if running kernel is >= X.Y
    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/operator `>` -> `!=`